Simulate Postbridge Transaction
Simulate a Postbridge card transaction in Cardcore. Use this in sandbox to test purchases, withdrawals, balance enquiries, refunds, and reversals before live Postbridge messages are available.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The kind of transaction you want to test. Use authorization for an approval check, financial for a money movement, and reversal to undo an earlier transaction.
authorization, financial, reversal "authorization"
The transaction flow to test. For example, purchase means a normal card payment, cash_withdrawal means an ATM withdrawal, balance_inquiry means checking the account balance, and refund means returning money.
purchase, cash_withdrawal, balance_inquiry, refund "purchase"
The transaction amount in standard currency format. For example, send 10.25 for 10 naira and 25 kobo; Cardcore converts it to the Postbridge amount format.
10.25
Where the transaction is coming from. Use pos for a card machine, atm for an ATM, and web for an online payment.
pos, atm, web "pos"
How the card was used. For example, chip means the card chip was used, contactless means tap-to-pay, ecom means online payment, and moto means mail or telephone order.
chip, magstripe, contactless, manual, ecom, moto "chip"
The numeric currency code for the transaction. Use 566 for Nigerian Naira. If you do not send it, the simulator uses 566.
"566"
The existing card you want to test with. If you send this, Cardcore finds the card number, account number, and expiry date for you.
"{{cardId}}"
The card number to test with. Only send this when you are not using cardId.
"5064410000000149"
The card expiry date to test with. Send it as YYMM or YYYYMM. Only required when you are not using cardId.
"2806"
The account number linked to the test card. Only required when you are not using cardId.
"1234567890"
The merchant number to show on the simulated transaction. If you do not send it, the simulator uses a default test merchant.
"000000000000001"
The terminal or card machine number to show on the simulated transaction. If you do not send it, the simulator uses a default test terminal.
"TERM0001"
How the simulator should get a response. Use stub for Cardcore's default approved response. Use forward to send the simulated transaction to your configured webhook and use your webhook's reply.
stub, forward "stub"
For reversals, this is the earlier transaction you want to reverse. If you send it, Cardcore can find the original transaction details for you.
"{{transactionId}}"
For reversals, this is the original transaction's short trace number. Use it with originalRrn if you are not sending originalTransactionId.
"123456"
For reversals, this is the original transaction's retrieval reference number. Use it with originalStan if you are not sending originalTransactionId.
"123456789012"
The date and time to place on the simulated transaction. If you do not send it, the simulator uses the current time.
"2026-03-14T10:00:00.000Z"
Optional field changes for special tests. Use the Postbridge field number as the key and the value you want the simulator to send. For example, field 4 changes the formatted transaction amount.
{ "4": "000000001025" }