curl --location '/payments/txn_2n1TLgiZFvF7DZuL/confirm' \
--header 'Idempotency-Key: cb05e9b6-c8f5-450b-96fa-24338513335e' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"attachments": [
{
"type": "receipt",
"file_id": "file_2n5nntnYnukEBJRq"
}
]
}'{
"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": {}
}
}