Skip to main content
POST
JavaScript

Body

application/json
transaction_type
enum<string>
required

Type of transaction to simulate

Available options:
authorization,
reversal,
replacement,
clearing,
clearing_cancellation
card_id
string<uuid>
required

Card ID

amount
string
required

Transaction amount in major units (e.g., "100.50" for $100.50)

currency
string
required

ISO 4217 alphabetic currency code (e.g. USD, EUR, BRL, JPY)

Pattern: ^[A-Z]{3}$
authorization_code
string

Authorization code from previous authorization (required for reversal, replacement, clearing, and clearing_cancellation)

replacement_amount
string

New amount for replacement (required for replacement type)

merchant_name
string

Merchant name (defaults to "TEST MERCHANT")

merchant_code
string

Merchant Category Code (defaults to "5541")

operation
enum<string>

Transaction operation type. Determines the processing code sent to the network. When omitted, defaults to "purchase" for debit transactions.

Available options:
credit_reversal,
credit_transfer,
credit_voucher,
debit_reversal,
debit_transfer,
deposit_by_bill,
international_credit_voucher,
international_purchase,
international_purchase_reversal,
international_withdrawal,
national_withdrawal,
purchase,
purchase_quasi_cash,
refund_purchase,
reversal_international_withdrawal,
reversal_purchase_quasi_cash,
reverse_national_withdrawal,
utilities_payment
3ds
boolean

Require an out-of-band 3DS decision before sending the authorization to the card processor.

Response

The request has succeeded.

status
enum<string>
required

Whether the simulated transaction was approved or denied

Available options:
approved,
denied
authorization_code
string
required

Authorization code generated for the transaction. Use this for reversal/replacement.

authorization_id
integer<int64>
required

Authorization ID from the processing platform

authorization_date_time
string<date-time>
required

Authorization timestamp

settlement_amount
string
required

Settlement amount processed

mode_type
string
required

Transaction mode (DEBIT/CREDIT)

card_mode
string
required

Card mode used

is_domestic_transaction
boolean
required

Whether this is a domestic transaction

denial_code
string

Denial code. Only present when status is "denied".

denial_reason
string

Human-readable reason for denial. Only present when status is "denied".