Simulate decline
Simulates a declined card transaction. Creates a new DECLINED transaction, or declines an existing PENDING one.
Authorizations
API key as Bearer token
Headers
API version (YYYY-MM-DD)
2025-02-14 "2025-02-14"
Body
Simulate a decline event on a card
Card ID
Amount in USD
x >= 0Existing transaction ID. Omit to create a new declined 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.
Decline reason code. Defaults to INSUFFICIENT_BALANCE.
INSUFFICIENT_BALANCE, INSUFFICIENT_MASTER_BALANCE, CARD_NOT_ACTIVE, CARD_NOT_ACTIVATED, CARD_EXPIRED, CARD_FROZEN, CARD_BLOCKED, CARD_REPORTED_LOST, CARD_REPORTED_STOLEN, ACCOUNT_NOT_ACTIVE, INCORRECT_PIN, INCORRECT_CVV, INVALID_CARD_DETAILS, CONTACTLESS_NOT_SUPPORTED, TERMINAL_ERROR, CASH_SERVICE_NOT_AVAILABLE, WITHDRAWALS_NOT_ALLOWED, ATM_COUNTRY_RESTRICTED, ATM_WITHDRAWAL_LIMIT_EXCEEDED, ATM_WITHDRAWAL_FREQUENCY_EXCEEDED, MERCHANT_CARD_TYPE_MISMATCH, MERCHANT_CATEGORY_CODE_NOT_ALLOWED, TRANSACTION_TYPE_NOT_ALLOWED, NETWORK_DECLINE, SUSPECTED_FRAUD, INTERNAL_ERROR "INSUFFICIENT_BALANCE"
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