Airwallex logo

Formatting payment instructions

Formatting payment instructions

Under the Create a new payment section in API docs, we have provided a dynamic schema that will return required fields based on some key criteria that we need to determine the destination of the payment and the route it will take to reach that destination. Use this tool to retrieve bank account formats by country and payment method.

curl --request POST \
--url 'https://api-demo.airwallex.com/api/v1/payments/create' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0b20iLCJyb2xlcyI6WyJ1c2VyIl0sImlhdCI6MTQ4ODQxNTI1NywiZXhwIjoxNDg4NDE1MjY3fQ.UHqau03y5kEk5lFbTp7J4a-U6LXsfxIVNEsux85hj-Q' \
--data '{ \
"beneficiary": { \
"additional_info": { \
 "personal_email": "[email protected]" \
}, \
"address": { \
 "city": "Seattle", \
 "country_code": "US", \
 "postcode": "98104", \
 "state": "Washington", \
 "street_address": "412 5th Avenue" \
}, \
"bank_details": { \
 "account_currency": "USD", \
 "account_name": "John Walker", \
 "account_number": "50001121", \
 "account_routing_type1": "aba", \
 "account_routing_value1": "021000021", \
 "bank_country_code": "US", \
 "bank_name": "JP Morgan Chase Bank" \
}, \
"company_name": "ABC University", \
"date_of_birth": "1976-08-26", \
"entity_type": "COMPANY" \
}, \
"payer": { \
"additional_info": { \
 "business_registration_number": "EU300503", \
 "personal_email": "[email protected]" \
}, \
"address": { \
 "city": "Melbourne", \
 "country_code": "CN", \
 "postcode": "3000", \
 "state": "VIC", \
 "street_address": "15 William Street" \
}, \
"company_name": "Complete Concrete Pty Ltd", \
"entity_type": "COMPANY" \
}, \
"payment_amount": "10000", \
"payment_currency": "USD", \
"payment_method": "LOCAL", \
"reason": "travel", \
"reference": "PMT1936398", \
"request_id": "f17d267e-4b72-4b1d-9c3b-d3e1d7145161", \
"source_currency": "CNY" \
}'