Properties
| Name | Type | Description |
|---|---|---|
| first_name | string | Customer's first name. |
| last_name | string | Customer's last name. |
| string | Customer's email address. | |
| locale | string | Customer's preferred language. |
| discount_code | string | Discount code used in the order. |
| accepts_marketing | string | Whether the customer opted in to marketing (true/false). |
| order_timestamp | string | UNIX timestamp of order. |
| browser_ip | string | IP address of customer when making the purchase. |
| user_agent | string | User agent string of the customer's web browser. |
| invoice_amount | string | Total invoice amount for this purchase. |
| currency_code | string | ISO 4217 currency code used in order invoice. |
| external_reference_id | string | An ID that can be used to track this purchase externally. |
| referrer_id | string | Optional referrer identifier. |
| timestamp | string | UNIX timestamp of API call. |
| accessID | string | API Access ID. |
| signature | string | Calculated signature. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/referralcandy/main/json-schema/referralcandy-post-api-v22-purchase-json-request-schema.json",
"title": "PostApiV22PurchaseJsonRequest",
"x-generated": "2026-10-27",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/_ae-authored/referralcandy-openapi-generated.yml#/components/schemas/PostApiV22PurchaseJsonRequest",
"type": "object",
"properties": {
"first_name": {
"type": "string",
"description": "Customer's first name."
},
"last_name": {
"type": "string",
"description": "Customer's last name."
},
"email": {
"type": "string",
"description": "Customer's email address."
},
"locale": {
"type": "string",
"description": "Customer's preferred language."
},
"discount_code": {
"type": "string",
"description": "Discount code used in the order."
},
"accepts_marketing": {
"type": "string",
"description": "Whether the customer opted in to marketing (true/false)."
},
"order_timestamp": {
"type": "string",
"description": "UNIX timestamp of order."
},
"browser_ip": {
"type": "string",
"description": "IP address of customer when making the purchase."
},
"user_agent": {
"type": "string",
"description": "User agent string of the customer's web browser."
},
"invoice_amount": {
"type": "string",
"description": "Total invoice amount for this purchase."
},
"currency_code": {
"type": "string",
"description": "ISO 4217 currency code used in order invoice."
},
"external_reference_id": {
"type": "string",
"description": "An ID that can be used to track this purchase externally."
},
"referrer_id": {
"type": "string",
"description": "Optional referrer identifier."
},
"timestamp": {
"type": "string",
"description": "UNIX timestamp of API call."
},
"accessID": {
"type": "string",
"description": "API Access ID."
},
"signature": {
"type": "string",
"description": "Calculated signature."
}
},
"required": [
"first_name",
"email",
"discount_code",
"order_timestamp",
"browser_ip",
"user_agent",
"invoice_amount",
"currency_code",
"timestamp",
"accessID",
"signature"
]
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/referralcandy-post-api-v22-purchase-json-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.