---
updatedAt: 2025-11-11T02:13:09.000Z
agentTools:
  projectIndex: https://beamable2.readme.io/llms.txt
---

# post

# OpenAPI definition

```json
{
  "info": {
    "title": "payments basic",
    "version": "1.0",
    "contact": {
      "name": "Beamable Support",
      "url": "https://api.beamable.com",
      "email": "support@beamable.com"
    }
  },
  "servers": [
    {
      "url": "https://api.beamable.com"
    }
  ],
  "paths": {
    "/basic/payments/windows/purchase/track": {
      "post": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentResultResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrackPurchaseRequest"
              }
            }
          }
        },
        "security": [
          {
            "scope": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ItemCreateRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "contentId": {
            "type": "string"
          },
          "properties": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemProperty"
            }
          }
        }
      },
      "TrackPurchaseRequest": {
        "properties": {
          "priceInLocalCurrency": {
            "type": "number"
          },
          "skuName": {
            "type": "string"
          },
          "skuProductId": {
            "type": "string"
          },
          "store": {
            "type": "string"
          },
          "obtainItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemCreateRequest"
            }
          },
          "obtainCurrency": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CurrencyChange"
            }
          },
          "purchaseId": {
            "type": "string"
          },
          "isoCurrencySymbol": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "title": "Track Purchase Request",
        "type": "object",
        "required": [
          "priceInLocalCurrency"
        ]
      },
      "PaymentResultResponse": {
        "properties": {
          "result": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "title": "Payment Result Response",
        "type": "object"
      },
      "CurrencyChange": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "symbol": {
            "type": "string"
          },
          "amount": {
            "type": "integer"
          },
          "originalAmount": {
            "type": "integer"
          }
        },
        "required": [
          "amount"
        ]
      },
      "ItemProperty": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "scope": {
        "type": "apiKey",
        "name": "X-DE-SCOPE",
        "in": "header",
        "description": "Customer and project scope. This should contain the '<customer-id>.<project-id>'."
      }
    }
  },
  "security": [],
  "externalDocs": {
    "description": "Beamable Documentation",
    "url": "https://docs.beamable.com"
  },
  "openapi": "3.0.2",
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```