Airwallex logo

Reconciliation

Copy for LLMView as Markdown
GET /api/v1/tc/balancesList all Balances
POST /api/v1/tc/balances/requestsRetrieve the Balances in Batch
GET /api/v1/tc/transactionsList all Transactions
POST /api/v1/tc/transactions/requestsRetrieve the Transactions in Batch

List all Balances

GET /api/v1/tc/balances

Get balances by either client_request_id or currency and range of posted_at dates.

Query parameters
client_request_idstring

The client request id.

currencystring

Currency.

from_posted_atstring

The start date of posted_at in ISO8601 format (inclusive).

page_numinteger

Page number, starts from 0.

page_sizeinteger

Number of results per page. Default value is 100.

to_posted_atstring

The end date of posted_at in ISO8601 format (exclusive).

typestring

Balance type, one of ADJUSTMENT, CONVERSION_BUY, CONVERSION_SELL, DEPOSIT, FEE, PAYMENT, PAYMENT_REFUND.

Response body - 200 OK
has_moreboolean

A flag which identifies whether there are more results.

itemsarray

Paged results.

items.amountnumber

The amount.

items.beneficiary_bank_account_namestring

The beneficiary bank account name, only available when transaction type is PAYMENT.

items.beneficiary_bank_account_numberstring

The beneficiary bank account number, only available when transaction type is PAYMENT.

items.client_request_idstring

The original request id by client.

items.closing_balancenumber

The closing balance.

items.created_atstring

The time this transaction was created.

items.currencystring

The currency.

items.debit_credit_flagstring

The debit/credit flag.

DEBIT
CREDIT
items.idstring

The id of this transaction.

items.opening_balancenumber

The opening balance.

items.posted_atstring

The time this transaction posted to balance.

items.reasonstring

The note client add for itself.

items.referencestring

The reference to beneficiary.

items.remitter_namestring

The remitter name, only available when transaction type is DEPOSIT.

items.remitting_bankstring

The remitting bank name, only available when transaction type is DEPOSIT.

items.request_idstring

The client request id if the transaction initiated by client.

items.typestring

The type of this transaction, can be one of PAYMENT, PAYMENT_REFUND, CONVERSION_SELL, CONVERSION_BUY, DEPOSIT, ADJUSTMENT, FEE.

Errors
Error statusDescription
400

Possible errors: field_required, invalid_argument

401

Possible errors: credentials_invalid, credentials_expired

429

Too many requests

500

Service unavailable

GET /api/v1/tc/balances
$curl --request GET \
> --url 'https://api.sandbox.airwallex.com/api/v1/tc/balances' \
> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \
> --header 'Content-Type: application/json'
Response (200 OK)
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}
Was this section helpful?

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.

Query parameters
not_found_as_errorboolean

Return error if any client_request_id doesn't exist.

Request body - Multiple values

Returns an empty JSON object

Response body - 200 OK
has_moreboolean

A flag which identifies whether there are more results.

itemsarray

Paged results.

items.amountnumber

The amount.

items.beneficiary_bank_account_namestring

The beneficiary bank account name, only available when transaction type is PAYMENT.

items.beneficiary_bank_account_numberstring

The beneficiary bank account number, only available when transaction type is PAYMENT.

items.client_request_idstring

The original request id by client.

items.closing_balancenumber

The closing balance.

items.created_atstring

The time this transaction was created.

items.currencystring

The currency.

items.debit_credit_flagstring

The debit/credit flag.

DEBIT
CREDIT
items.idstring

The id of this transaction.

items.opening_balancenumber

The opening balance.

items.posted_atstring

The time this transaction posted to balance.

items.reasonstring

The note client add for itself.

items.referencestring

The reference to beneficiary.

items.remitter_namestring

The remitter name, only available when transaction type is DEPOSIT.

items.remitting_bankstring

The remitting bank name, only available when transaction type is DEPOSIT.

items.request_idstring

The client request id if the transaction initiated by client.

items.typestring

The type of this transaction, can be one of PAYMENT, PAYMENT_REFUND, CONVERSION_SELL, CONVERSION_BUY, DEPOSIT, ADJUSTMENT, FEE.

Errors
Error statusDescription
400

Possible errors: field_required, invalid_argument

401

Possible errors: credentials_invalid, credentials_expired

429

Too many requests

500

Service unavailable

POST /api/v1/tc/balances/requests
$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>"
>]'
Response (200 OK)
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}
Was this section helpful?

List all Transactions

GET /api/v1/tc/transactions

Get transactions by either client_request_id or range of created_at dates.

Query parameters
client_request_idstring

The client request id.

from_created_atstring

The start date of posted_at in ISO8601 format (inclusive).

page_numinteger

Page number, starts from 0.

page_sizeinteger

Number of results per page. Default value is 100.

to_created_atstring

The end date of posted_at in ISO8601 format (exclusive).

typestring

Transaction type, one of ADJUSTMENT, CONVERSION, DEPOSIT, FEE, PAYMENT.

Response body - 200 OK
has_moreboolean

A flag which identifies whether there are more results.

itemsarray

Paged results.

items.amountnumber

The credit amount.

items.beneficiary_bank_account_namestring

The beneficiary bank account name, only available when transaction type is PAYMENT.

items.beneficiary_bank_account_numberstring

The beneficiary bank account number, only available when transaction type is PAYMENT.

items.client_request_idstring

The original request id by client.

items.created_atstring

The time this transaction was created.

items.currencystring

The currency.

items.idstring

The id of this transaction.

items.reasonstring

The note client add for itself.

items.referencestring

The reference to beneficiary.

items.remitter_namestring

The remitter name, only available when transaction type is DEPOSIT.

items.remitting_bankstring

The remitting bank name, only available when transaction type is DEPOSIT.

items.statusstring

The status of this transaction, can be one of NEW, SETTLED, CANCELED.

items.typestring

The type of this transaction, can be one of PAYMENT, CONVERSION, DEPOSIT, ADJUSTMENT, FEE.

Errors
Error statusDescription
400

Possible errors: field_required, invalid_argument

401

Possible errors: credentials_invalid, credentials_expired

429

Too many requests

500

Service unavailable

GET /api/v1/tc/transactions
$curl --request GET \
> --url 'https://api.sandbox.airwallex.com/api/v1/tc/transactions' \
> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \
> --header 'Content-Type: application/json'
Response (200 OK)
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}
Was this section helpful?

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.

Query parameters
not_found_as_errorboolean

Return error if any client_request_id doesn't exist.

Request body - Multiple values

Returns an empty JSON object

Response body - 200 OK
has_moreboolean

A flag which identifies whether there are more results.

itemsarray

Paged results.

items.amountnumber

The credit amount.

items.beneficiary_bank_account_namestring

The beneficiary bank account name, only available when transaction type is PAYMENT.

items.beneficiary_bank_account_numberstring

The beneficiary bank account number, only available when transaction type is PAYMENT.

items.client_request_idstring

The original request id by client.

items.created_atstring

The time this transaction was created.

items.currencystring

The currency.

items.idstring

The id of this transaction.

items.reasonstring

The note client add for itself.

items.referencestring

The reference to beneficiary.

items.remitter_namestring

The remitter name, only available when transaction type is DEPOSIT.

items.remitting_bankstring

The remitting bank name, only available when transaction type is DEPOSIT.

items.statusstring

The status of this transaction, can be one of NEW, SETTLED, CANCELED.

items.typestring

The type of this transaction, can be one of PAYMENT, CONVERSION, DEPOSIT, ADJUSTMENT, FEE.

Errors
Error statusDescription
400

Possible errors: field_required, invalid_argument

401

Possible errors: credentials_invalid, credentials_expired

429

Too many requests

500

Service unavailable

POST /api/v1/tc/transactions/requests
$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>"
>]'
Response (200 OK)
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}
Was this section helpful?