List all Balances
GET /api/v1/tc/balances
Get balances by either client_request_id or currency and range of posted_at dates.
The client request id.
Currency.
The start date of posted_at in ISO8601 format (inclusive).
Page number, starts from 0.
Number of results per page. Default value is 100.
The end date of posted_at in ISO8601 format (exclusive).
Balance type, one of ADJUSTMENT, CONVERSION_BUY, CONVERSION_SELL, DEPOSIT, FEE, PAYMENT, PAYMENT_REFUND.
A flag which identifies whether there are more results.
Paged results.
The amount.
The beneficiary bank account name, only available when transaction type is PAYMENT.
The beneficiary bank account number, only available when transaction type is PAYMENT.
The original request id by client.
The closing balance.
The time this transaction was created.
The currency.
The debit/credit flag.
DEBITCREDITThe id of this transaction.
The opening balance.
The time this transaction posted to balance.
The note client add for itself.
The reference to beneficiary.
The remitter name, only available when transaction type is DEPOSIT.
The remitting bank name, only available when transaction type is DEPOSIT.
The client request id if the transaction initiated by client.
The type of this transaction, can be one of PAYMENT, PAYMENT_REFUND, CONVERSION_SELL, CONVERSION_BUY, DEPOSIT, ADJUSTMENT, FEE.
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 | Possible errors: |
| 429 | Too many requests |
| 500 | Service unavailable |
$curl --request GET \> --url 'https://api.sandbox.airwallex.com/api/v1/tc/balances' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "has_more": false,3 "items": [4 {5 "amount": 0,6 "beneficiary_bank_account_name": "zhou xingxing",7 "beneficiary_bank_account_number": "212121212",8 "client_request_id": "a08c0f2f",9 "closing_balance": 200,10 "created_at": "2017-04-01T03:52:34+0000",11 "currency": "AUD",12 "debit_credit_flag": "CREDIT",13 "id": "a08c0f2f-3f26-4443-b5df-fad15582eb94",14 "opening_balance": 100,15 "posted_at": "2017-04-01T03:52:34+0000",16 "reason": "note to myself",17 "reference": "salary from airwallex",18 "remitter_name": "212121212",19 "remitting_bank": "212121212",20 "request_id": "a08c0f2f",21 "type": "PAYMENT_REFUND"22 }23 ]24}
Retrieve the Balances in Batch
POST /api/v1/tc/balances/requests
Get balances by a list of client_request_id, maximum 50 items are allowed per request.
Return error if any client_request_id doesn't exist.
Returns an empty JSON object
A flag which identifies whether there are more results.
Paged results.
The amount.
The beneficiary bank account name, only available when transaction type is PAYMENT.
The beneficiary bank account number, only available when transaction type is PAYMENT.
The original request id by client.
The closing balance.
The time this transaction was created.
The currency.
The debit/credit flag.
DEBITCREDITThe id of this transaction.
The opening balance.
The time this transaction posted to balance.
The note client add for itself.
The reference to beneficiary.
The remitter name, only available when transaction type is DEPOSIT.
The remitting bank name, only available when transaction type is DEPOSIT.
The client request id if the transaction initiated by client.
The type of this transaction, can be one of PAYMENT, PAYMENT_REFUND, CONVERSION_SELL, CONVERSION_BUY, DEPOSIT, ADJUSTMENT, FEE.
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 | Possible errors: |
| 429 | Too many requests |
| 500 | Service unavailable |
$curl --request POST \> --url 'https://api.sandbox.airwallex.com/api/v1/tc/balances/requests' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json' \> --data '[> "<string>">]'
1{2 "has_more": false,3 "items": [4 {5 "amount": 0,6 "beneficiary_bank_account_name": "zhou xingxing",7 "beneficiary_bank_account_number": "212121212",8 "client_request_id": "a08c0f2f",9 "closing_balance": 200,10 "created_at": "2017-04-01T03:52:34+0000",11 "currency": "AUD",12 "debit_credit_flag": "CREDIT",13 "id": "a08c0f2f-3f26-4443-b5df-fad15582eb94",14 "opening_balance": 100,15 "posted_at": "2017-04-01T03:52:34+0000",16 "reason": "note to myself",17 "reference": "salary from airwallex",18 "remitter_name": "212121212",19 "remitting_bank": "212121212",20 "request_id": "a08c0f2f",21 "type": "PAYMENT_REFUND"22 }23 ]24}
List all Transactions
GET /api/v1/tc/transactions
Get transactions by either client_request_id or range of created_at dates.
The client request id.
The start date of posted_at in ISO8601 format (inclusive).
Page number, starts from 0.
Number of results per page. Default value is 100.
The end date of posted_at in ISO8601 format (exclusive).
Transaction type, one of ADJUSTMENT, CONVERSION, DEPOSIT, FEE, PAYMENT.
A flag which identifies whether there are more results.
Paged results.
The credit amount.
The beneficiary bank account name, only available when transaction type is PAYMENT.
The beneficiary bank account number, only available when transaction type is PAYMENT.
The original request id by client.
The time this transaction was created.
The currency.
The id of this transaction.
The note client add for itself.
The reference to beneficiary.
The remitter name, only available when transaction type is DEPOSIT.
The remitting bank name, only available when transaction type is DEPOSIT.
The status of this transaction, can be one of NEW, SETTLED, CANCELED.
The type of this transaction, can be one of PAYMENT, CONVERSION, DEPOSIT, ADJUSTMENT, FEE.
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 | Possible errors: |
| 429 | Too many requests |
| 500 | Service unavailable |
$curl --request GET \> --url 'https://api.sandbox.airwallex.com/api/v1/tc/transactions' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "has_more": false,3 "items": [4 {5 "amount": 0,6 "beneficiary_bank_account_name": "zhou xingxing",7 "beneficiary_bank_account_number": "212121212",8 "client_request_id": "a08c0f2f",9 "created_at": "2017-04-01T03:52:34+0000",10 "currency": "AUD",11 "id": "a08c0f2f-3f26-4443-b5df-fad15582eb94",12 "reason": "note to myself",13 "reference": "salary from airwallex",14 "remitter_name": "212121212",15 "remitting_bank": "212121212",16 "status": "SETTLED",17 "type": "PAYMENT"18 }19 ]20}
Retrieve the Transactions in Batch
POST /api/v1/tc/transactions/requests
Get transactions by a list of client_request_id, maximum 50 items are allowed per request.
Return error if any client_request_id doesn't exist.
Returns an empty JSON object
A flag which identifies whether there are more results.
Paged results.
The credit amount.
The beneficiary bank account name, only available when transaction type is PAYMENT.
The beneficiary bank account number, only available when transaction type is PAYMENT.
The original request id by client.
The time this transaction was created.
The currency.
The id of this transaction.
The note client add for itself.
The reference to beneficiary.
The remitter name, only available when transaction type is DEPOSIT.
The remitting bank name, only available when transaction type is DEPOSIT.
The status of this transaction, can be one of NEW, SETTLED, CANCELED.
The type of this transaction, can be one of PAYMENT, CONVERSION, DEPOSIT, ADJUSTMENT, FEE.
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 | Possible errors: |
| 429 | Too many requests |
| 500 | Service unavailable |
$curl --request POST \> --url 'https://api.sandbox.airwallex.com/api/v1/tc/transactions/requests' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json' \> --data '[> "<string>">]'
1{2 "has_more": false,3 "items": [4 {5 "amount": 0,6 "beneficiary_bank_account_name": "zhou xingxing",7 "beneficiary_bank_account_number": "212121212",8 "client_request_id": "a08c0f2f",9 "created_at": "2017-04-01T03:52:34+0000",10 "currency": "AUD",11 "id": "a08c0f2f-3f26-4443-b5df-fad15582eb94",12 "reason": "note to myself",13 "reference": "salary from airwallex",14 "remitter_name": "212121212",15 "remitting_bank": "212121212",16 "status": "SETTLED",17 "type": "PAYMENT"18 }19 ]20}