Purchase
Type: object
Required means required within its containing object, when that object is present. Union/conditional constraints remain defined by the JSON Schema below.
| Field | Type | Presence | Description / constraints |
|---|---|---|---|
agent | string | Optional | Public agent_… reference (not a UUID). pattern: ^agent_[0-7][0-9A-HJKMNP-TV-Z]{25}$ |
amount_cents | anyOf: integer; null | Optional | — |
authorized_cents | integer | Optional | minimum: 0 |
currency | USD | Optional | — |
expires_at | string (date-time) | Optional | — |
id | string | Optional | Public pur_… reference (not a UUID). pattern: ^pur_[0-7][0-9A-HJKMNP-TV-Z]{25}$ |
merchant | string | Optional | — |
status | authorized, completed, canceled, expired | Optional | — |
JSON Schema
json
{
"additionalProperties": true,
"properties": {
"agent": {
"description": "Public agent_… reference (not a UUID)",
"pattern": "^agent_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
"amount_cents": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"authorized_cents": {
"minimum": 0,
"type": "integer"
},
"currency": {
"enum": [
"USD"
],
"type": "string"
},
"expires_at": {
"format": "date-time",
"type": "string"
},
"id": {
"description": "Public pur_… reference (not a UUID)",
"pattern": "^pur_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
"merchant": {
"type": "string"
},
"status": {
"enum": [
"authorized",
"completed",
"canceled",
"expired"
],
"type": "string"
}
},
"type": "object"
}