Quick Start
Check a transaction status and handle errors in 5 minutes
1 min readUpdated Mar 26, 2026
The minimal path: authenticate, check a transaction status, handle the result.
#1. Authenticate
curl -X POST https://sandbox.api.exirom.com/api/api/v1/auth \
-H "Content-Type: application/json" \
-d '{ "apiKey": "YOUR_API_KEY" }'Response:
{ "token": "eyJhbGci..." }#2. Check transaction status
curl https://sandbox.api.exirom.com/api/api/v1/payments/card/status/{transactionId} \
-H "Authorization: Bearer eyJhbGci..."Response:
{
"transactionId": "txn_abc123",
"transactionStatus": "FAILED",
"declineCode": 1
}#3. Handle the result
transactionStatus | Action |
|---|---|
SUCCEED | Fulfill the order |
FAILED | Check declineCode — retry or prompt customer |
CUSTOMER_VERIFICATION | Redirect customer to challengeUrl for 3DS |
PENDING | Wait for webhook or poll again |
Key rule: HTTP
200does not mean success. A declined payment returns200withtransactionStatus: "FAILED". Always checktransactionStatus.
#Next steps
- Transaction Lifecycle Flow — full state machine
- Error Handling — HTTP errors and payment-level failures
- Decline Codes Reference — complete decline code table
Was this helpful?