Skip to content
API DocsDocs

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

transactionStatusAction
SUCCEEDFulfill the order
FAILEDCheck declineCode — retry or prompt customer
CUSTOMER_VERIFICATIONRedirect customer to challengeUrl for 3DS
PENDINGWait for webhook or poll again

Key rule: HTTP 200 does not mean success. A declined payment returns 200 with transactionStatus: "FAILED". Always check transactionStatus.

#Next steps

Was this helpful?