Manage beneficiaries
You can perform the following operations on beneficiaries after you have created them.
Update a beneficiary
After a beneficiary is created, you can call Update existing beneficiary API to update the saved beneficiary information. Specify the beneficiary_id in the endpoint URL and parameters you wish to update in your request body. The same schema validation and response body as in Create a new beneficiary API will apply.
The list of parameters that can be updated:
transfer_methodsnicknamebeneficiary.date_of_birthbeneficiary.addressbeneficiary.bank_details- some fields inside
beneficiary.additional_infobusiness_phone_numberbusiness_registration_numberlegal_rep_first_name_in_chineselegal_rep_last_name_in_chineselegal_rep_id_numberlegal_rep_mobile_numberlegal_rep_bank_account_numberpersonal_emailpersonal_id_numberpersonal_id_typepersonal_mobile_number
Example request
Shell1curl --request POST \2--url 'https://api-demo.airwallex.com/api/v1/beneficiaries/update/<beneficiary_id>' \3--header 'Content-Type: application/json' \4--header 'Authorization: Bearer <your_bearer_token>' \5--data '{6 "address": {7 "city": "Seattle",8 "country_code": "US",9 "postcode": "98104",10 "state": "Washington",11 "street_address": "412 5th Avenue"12 },13}'
If you are registered as a platform account, you can call this endpoint on behalf of your connected accounts by specifying the open ID in the x-on-behalf-of header.
Delete a beneficiary
Call Delete existing beneficiary API to delete a beneficiary. Specify the beneficiary_id in the endpoint URL. A successful deletion returns true in the response.
Example request
Shell1curl --request POST \2--url 'https://api-demo.airwallex.com/api/v1/beneficiaries/delete/<beneficiary_id>' \3--header 'Content-Type: application/json' \4--header 'Authorization: Bearer <your_bearer_token>'
If you are registered as a platform account, you can call this endpoint on behalf of your connected accounts by specifying the open ID in the x-on-behalf-of header.