POST request to /payments with the amount, currency, requisite type and customer.Idempotency-Key header so a retried request never creates a duplicate payment.processing:{
"data": {
"id": "txn_2n1TLgiZFvF7DZuL",
"type": "payment",
"requested": {
"amount": "1000.00",
"currency": "XTS"
},
"initialized": {
"amount": "1000.00",
"currency": "XTS"
},
"processed": {
"amount": "0.00",
"currency": "XTS"
},
"refunded": {
"amount": "0.00",
"currency": "XTS"
},
"requisite": {
"type": "card",
"card": "4242424242424242",
"holder": "Test User",
"bank": "Test Bank"
},
"status": "processing",
"status_code": "processing",
"created_at": "2026-01-01T00:21:56Z",
"expires_at": "2026-01-01T00:22:56Z",
"finalized_at": null,
"metadata": {}
}
}id — you'll use it to track the payment.id to see its current status:paid, it's settled:{
"data": {
"id": "txn_2n1TLgiZFvF7DZuL",
"type": "payment",
"requested": {
"amount": "1000.00",
"currency": "XTS"
},
"initialized": {
"amount": "1000.00",
"currency": "XTS"
},
"processed": {
"amount": "1000.00",
"currency": "XTS"
},
"refunded": {
"amount": "0.00",
"currency": "XTS"
},
"requisite": {
"type": "card",
"card": "4242424242424242",
"holder": "Test User",
"bank": "Test Bank"
},
"status": "paid",
"status_code": "paid",
"created_at": "2026-01-01T00:21:56Z",
"expires_at": "2026-01-01T00:22:56Z",
"finalized_at": "2026-01-01T00:34:12Z",
"metadata": {}
}
}