v20

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01970424.3 KB
Payments

Validate Purchase Code

Validates a purchase verification code and returns purchase details including available prices.

post/payments/purchases/validate-code

Request body

full_codestring required

The verification code, given as a query parameter in the purchase URL

return_urlstring

URL to redirect to after purchase completion

Example request

{
  "full_code": "proj_abc123_def456ghi789",
  "return_url": "https://myapp.com/purchase-success"
}

Response

Successful response

stripe_account_id'null' nullable
project_idstring required
project_logo_url'null' nullable
already_bought_non_stackableboolean required
test_modeboolean required
charges_enabledboolean nullable

Example response

{
  "product": {
    "client_metadata": {
      "featureFlag": true,
      "source": "marketing-campaign"
    },
    "client_read_only_metadata": {
      "featureFlag": true,
      "source": "marketing-campaign"
    },
    "server_metadata": {
      "featureFlag": true,
      "source": "marketing-campaign"
    }
  }
}