Raw schema
{
"type": "object",
"properties": {
"amount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Amount in the currency's MINOR units (e.g. 1000 = $10.00; 0 = card verification). Required."
},
"currency": {
"type": "string",
"description": "3-letter ISO currency code, e.g. 'USD', 'GBP', 'EUR'. Required."
},
"source": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Payment source object. Required. E.g. { type:'token', token:'tok_...' }, { type:'id', id:'src_...' }, or { type:'customer', id:'cus_...' }."
},
"reference": {
"description": "Your reference for the payment (e.g. order id).",
"type": "string"
},
"capture": {
"description": "If true (default for card), capture immediately; if false, authorize only.",
"type": "boolean"
},
"payment_type": {
"description": "Payment type, e.g. 'Regular', 'Recurring', 'MOTO'.",
"type": "string"
},
"description": {
"description": "Description shown on the customer's statement / for your records.",
"type": "string"
},
"customer": {
"description": "Customer object to associate/create, e.g. { id:'cus_...' } or { email, name }.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"processing_channel_id": {
"description": "Processing channel id ('pc_...') to route the payment through.",
"type": "string"
},
"metadata": {
"description": "Arbitrary key/value metadata to attach to the payment.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"idempotency_key": {
"description": "Idempotency key β sent as the Cko-Idempotency-Key header to safely retry.",
"type": "string"
}
},
"required": [
"amount",
"currency",
"source"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}