curl --location '/payments' \
--header 'Idempotency-Key: 17f8930c-21c9-4f8a-96ef-ad3707f5895c' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": "1000.00",
"currency": "XTS",
"requisite": {
"type": "card"
},
"customer": {
"reference": "user_10426",
"ip_address": "203.0.113.42",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120.0.0.0"
}
}'{
"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"
},
"payment_url": "https://pay.casharc.pro/txn_2n1TLgiZFvF7DZuL?token=…",
"status": "processing",
"status_code": "processing",
"created_at": "2026-01-01T00:21:56Z",
"expires_at": "2026-01-01T00:22:56Z",
"finalized_at": null,
"metadata": {}
}
}