Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
Charge with Token Request
Amount in smallest currency unit (e.g., cents)
10000
Three-letter currency code
"USD"
Unique customer identifier
"cus_Tfd3Jq1tZxPjYVhRQW2r3"
Saved card token
"tok_4xK2Nm1tYwOiXUgPQV1r2"
Client's receipt identifier
"receipt_abc123"
Webhook URL for payment status updates
"https://yourserver.com/webhook"
Channel identifier (e.g., "web", "ios", "android")
"web"
Payment description
""
Additional key-value pairs (max 50 pairs)
Response
Payment charged successfully
"pay_8Ks3Jq1tZxPjYVhRQW2r5"
SUCCESS, FAILED "SUCCESS"
Transaction ID (returned for successful payments)
"txn_9Ls4Kp2uAxQkZWiSRX3s6"
10000
"USD"
"cus_Tfd3Jq1tZxPjYVhRQW2r3"
"receipt_abc123"
"web"
"CARD"
Card token if card was saved
"tok_4xK2Nm1tYwOiXUgPQV1r2"
Epoch timestamp in milliseconds of when payment was processed
1728128160000
Epoch timestamp in milliseconds of when payment was created
1728128100000