Simulate transactions on issued cards
You can conduct end-to-end testing of your integration by simulating card transactions on your Airwallex issued cards in the demo environment.
Key test scenarios include:
- Retrieving transactions via Get transactions for a single card API, Get single transaction API, and Get list of financial transactions API.
- Triggering webhook event notifications for issued cards and remote authorization
As a platform account, you can call the simulation APIs on behalf of a connected account using the x-on-behalf-of
header.
About the simulation endpoints
The simulation endpoints, namely Create a transaction for the provided card API and Capture the transaction with the provided id API emulate a dual message:
- Authorize request where funds are reserved on the available balance. Create a transaction for the provided card API creates an authorization transaction to be approved or failed based on the authorization controls of your account. For example, if you set a spending limit of $100 on your account and you attempt to authorize $110, then this payment will fail. This endpoint simulates the production behaviour of our payment networks.
- Capture request where funds equivalent to the authorized amount are deducted from your account balance in your multi-currency Wallet. Capture the transaction with the provided id API captures the transaction if the authorization is approved.
Step 1: Obtain your access token
Use obtain access token API to obtain an access token to call our API endpoints.
Example request
Shell
Example response
JSON