v1
latestOpenAPI 3.0.1MIT2026-07-26336777.7 KBpost/payments/s2s/charge-raw-card
Headers
Idempotency-Keystring
A unique key for making the request idempotent. Must match pattern: ^[a-zA-Z0-9\-_:\.]+$. See Idempotent Requests for more details.
Request body
Example request
{
"amount": 2000,
"currency": "USD",
"receiptId": "order123",
"cardDetails": {
"cardHolderName": "John Doe",
"cardNumber": "4000002500000003",
"expiryMonth": 1,
"expiryYear": 28,
"cvv": "123",
"country": "US",
"postalCode": "2424"
},
"callbackUrl": "https://example.com/callback",
"metadata": {
"orderId": "12345",
"customerNote": "Deliver after 5 PM"
},
"customerId": "cus_Tfd3Jq1tZxPjYVhRQW2r3",
"customerReferenceId": "eTfd3Jq1tZxPjYVhRQW2r3",
"customerDetails": {
"name": "John Doe",
"email": "john.doe@example.com",
"contactNumber": "+919123456789",
"customerAddress": {
"addressLine1": "123 Main St",
"addressLine2": "Apt 1",
"city": "New York",
"state": "NY",
"country": "US",
"postalCode": "2424"
}
}
}Response
Charge raw card response
Example response
{
"intentId": "in_gKAqR0DjLeOihdTE",
"nextActionRedirectionURL": "https://pay.xpaycheckout.com/?id=67f53a6e2097773e4f0112c8",
"errorCode": "insufficient_funds"
}