Simulate authorization
Simulates a card authorization event. Creates a new PENDING transaction, or performs incremental authorization on an existing one. Checks the account balance and returns 400 if insufficient funds.
Authorizations
API key as Bearer token
Headers
API version (YYYY-MM-DD)
2025-02-14 "2025-02-14"
Body
Simulate an authorization event on a card
Card ID
Amount in USD
x >= 0Existing transaction ID for incremental authorization. Omit to create a new transaction.
Amount in the original transaction currency. Must be provided together with originalCurrency.
x >= 0Original transaction currency (ISO 4217). Must be provided together with originalAmount.
3Transaction channel. Randomly generated if omitted.
ATM, POS, ECOMMERCE, VISA_DIRECT "ATM"
Digital wallet type (e.g. APPLE_PAY, GOOGLE_PAY). Randomly generated if omitted.
APPLE_PAY, GOOGLE_PAY, MERCHANT_TOKEN "APPLE_PAY"
Merchant details. All fields are optional and will be randomly generated if omitted.
Response
Card transaction resource. The response shape varies by transaction status.
- Pending
- Cleared
- Declined
- Void
Authorized transaction that hasn't settled yet
Card transaction identifier
Account linked to the card
Card used for this transaction
Transaction channel
ATM, POS, ECOMMERCE, VISA_DIRECT "ATM"
Digital wallet used, or null if physical card
APPLE_PAY, GOOGLE_PAY, MERCHANT_TOKEN "APPLE_PAY"
Original transaction currency (merchant local currency)
"USD"
"HKD"
"EUR"
Card currency
"USD"
"HKD"
"EUR"
Merchant details
Chronologically sorted lifecycle events (oldest first). Provides the full audit trail of what happened to this transaction.
ISO 8601 timestamp of when the transaction was initiated
"2024-01-15T10:30:00Z"
ISO 8601 timestamp of creation
"2024-01-15T10:30:00Z"
ISO 8601 timestamp of last update
"2024-01-15T10:35:00Z"
"PENDING"Amount in the original transaction currency
Amount charged to the cardholder
Conversion rate from the original currency to the card currency
x >= 01
0.128205
7.812