Charges
A Scale Charge can be used to charge a Connected Account and credit the Platform account's wallet. This action may support processing fees and charges from your clients or business partners. Source Connected Account to be charged must have passed KYC and be in state ACTIVE.
GET /api/v1/chargesGET /api/v1/charges/{id}POST /api/v1/charges/create
Get list of charges
GET /api/v1/charges
Get a list of charges created by your Airwallex account. The charges returned will be sorted by creation time.
Currency (3-letter ISO-4217 code)
The start date of created_at in ISO8601 format (inclusive)
Page number, starts from 0.
Number of results per page. Default value is 100, minimum 10, maximum 2000
Charge request_id
Airwallex account unique identifier
Status of the charge, one of: NEW, PENDING, SETTLED,SUSPENDED, FAILED
The end date of created_at in ISO8601 format (inclusive)
A flag which identifies whether there are more results.
Paged results.
Amount of the charge in currency specified in the request
The time this charge was created
Currency (3-letter ISO-4217 code) specified in the request
Fee of the charge in currency specified in the request
Unique identifier for the charge
Reason for the charge instruction specified in the request
User specified reference that will be displayed to the beneficiary specified in the request
Unique request identifier specified in the request
Short reference for support purposes
Airwallex account unique identifier specified in the request
Status of the charge. One of: NEW, PENDING,SETTLED,SUSPENDED, FAILED
The time this charge was updated
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 | Possible errors: |
| 429 | Too many requests |
| 500 | Service unavailable |
$curl --request GET \> --url 'https://api-demo.airwallex.com/api/v1/charges' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "has_more": false,3 "items": [4 {5 "amount": 10000,6 "created_at": "2017-03-22T16:08:02+1100",7 "currency": "AUD",8 "fee": 10,9 "id": "d9af1614-a6a1-4d45-aae7-6858fc6d9ede",10 "reason": "travel",11 "reference": "PMT1936398",12 "request_id": "7f687fe6-dcf4-4462-92fa-80335301d9d2",13 "short_reference_id": "D220926-QZ7BTZE",14 "source": "1936398",15 "status": "NEW",16 "updated_at": "2018-03-22T16:08:02+1100"17 }18 ]19}
Get a charge by ID
GET /api/v1/charges/{id}
Get the details of a charge that has previously been created. Supply the unique charge identifier that was returned at the time your created a new charge and Airwallex will return details of the corresponding charge.
Unique identifier of the charge to retrieve
Amount of the charge in currency specified in the request
The time this charge was created
Currency (3-letter ISO-4217 code) specified in the request
Fee of the charge in currency specified in the request
Unique identifier for the charge
Reason for the charge instruction specified in the request
User specified reference that will be displayed to the beneficiary specified in the request
Unique request identifier specified in the request
Short reference for support purposes
Airwallex account unique identifier specified in the request
Status of the charge. One of: NEW, PENDING,SETTLED,SUSPENDED, FAILED
The time this charge was updated
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 | Possible errors: |
| 429 | Too many requests |
| 500 | Service unavailable |
$curl --request GET \> --url 'https://api-demo.airwallex.com/api/v1/charges/charge_id' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "amount": 10000,3 "created_at": "2017-03-22T16:08:02+1100",4 "currency": "AUD",5 "fee": 10,6 "id": "d9af1614-a6a1-4d45-aae7-6858fc6d9ede",7 "reason": "travel",8 "reference": "PMT1936398",9 "request_id": "7f687fe6-dcf4-4462-92fa-80335301d9d2",10 "short_reference_id": "D220926-QZ7BTZE",11 "source": "1936398",12 "status": "NEW",13 "updated_at": "2018-03-22T16:08:02+1100"14}
Create a new charge
POST /api/v1/charges/create
Create a charge to be applied to a connected account.
Amount of the charge in currency, representing how much to charge
Currency (3-letter ISO-4217 code)
Reason for the charge instruction. One of: wages_salary, donation_charitable_contribution, personal_remittance, transfer_to_own_account, pension, family_support, living_expenses, education_training, travel, investment_proceeds, investment_capital, loan_credit_repayment, taxes, goods_purchased, business_expenses, medical_services, professional_business_services, technical_services, other_services, construction, freight, real_estate
User specified reference that will be displayed to the beneficiary. 1-140 characters long
Unique request identifier. 1-50 characters long
Airwallex account unique identifier
Amount of the charge in currency specified in the request
The time this charge was created
Currency (3-letter ISO-4217 code) specified in the request
Fee of the charge in currency specified in the request
Unique identifier for the charge
Reason for the charge instruction specified in the request
User specified reference that will be displayed to the beneficiary specified in the request
Unique request identifier specified in the request
Short reference for support purposes
Airwallex account unique identifier specified in the request
Status of the charge. One of: NEW, PENDING,SETTLED,SUSPENDED, FAILED
The time this charge was updated
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 | Possible errors: |
| 429 | Too many requests |
| 500 | Service unavailable |
$curl --request POST \> --url 'https://api-demo.airwallex.com/api/v1/charges/create' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json' \> --data '{> "amount": "10000",> "currency": "AUD",> "reason": "travel",> "reference": "PMT1936398",> "request_id": "7f687fe6-dcf4-4462-92fa-80335301d9d2",> "source": "1936398">}'
1{2 "amount": "10000",3 "created_at": "2017-03-22T16:08:02+1100",4 "currency": "AUD",5 "fee": 10,6 "id": "d9af1614-a6a1-4d45-aae7-6858fc6d9ede",7 "reason": "travel",8 "reference": "PMT1936398",9 "request_id": "7f687fe6-dcf4-4462-92fa-80335301d9d2",10 "short_reference_id": "D220926-QZ7BTZE",11 "source": "1936398",12 "status": "NEW",13 "updated_at": "2018-03-22T16:08:02+1100"14}