Creating a beneficiary

Beneficiaries are the foundation of Waza's B2B global payment APIs and this guide would inform you on how to use our API to create beneficiaries on your account.

This guide provides information on how to create a beneficiary using the POST endpoint /beneficiaries. Beneficiaries are business or individuals who are recipients of B2B payments made on Waza. This guide covers the request object structure, and example requests.

Request Object Parameters

Here's a table listing all the necessary parameters required to make an API call to the Beneficiary API.

ParamRequired?Description
typeYesThe type of beneficiary. It can be Individual or Business.
countryYesThe country code of the beneficiary is obtained from the corridor API. You can find the list of corridors supported by Waza in our section of the documentation containing the Corridors information or our corridors API reference.
addressYesAddress of your beneficiary.
business_nameYesThe business name of your beneficiary.
phoneNoThe phone number of your beneficiary
bankYesAn object containing the bank code, bank name, bank account number, and bank address.
bank.codeYesThis is the SWIFT Code of the beneficiary's bank.
bank.nameYesThis is the name attached to the bank account.
bank.account_numberYesThis is the account number of your beneficiary.
bank.addressYesThis is the address of the beneficiary's bank.
intermediary_bankNo (but should be provided if available)This is an object containing details on the intermediary bank code, name, account number, and bank address.
intermediary_bank.codeNo (but should be provided if available)This is the SWIFT Code of the intermediary bank.
intermediary_bank.nameNo (but should be provided if available)This is the name attached to the intermediary bank account.
intermediary_bank.account_numberNo (but should be provided if available)This is the account number of your intermediary bank.
intermediary_bank.addressNo (but should be provided if available)This is the address of the intermediary bank.
client_referenceYesThis is your unique identifier for the transaction.
currencyYesThe currency code of the currency the beneficiary is receiving.
emailNoThe email address of the beneficiary.
tagNoAny tag you want to associate with this beneficiary.

Sample Request

curl --location 'http://api.sandbox.waza.co/v2/beneficiaries' \
--header 'WAZA-X-KEY: {{API_KEY}}' \
--data-raw '{
    "type": "business",
    "country": "GB",
    "address": "Barking Wharf Square",
    "business_name": "My good business",
    "phone": "+44455545455",
    "bank": {
        "code": "044",
        "name": "Test Bank",
        "account_number": "00413686094",
        "address": "Bank Address"
    },
    "intermediary_bank":{   
    		"code": "000",
        "name": "Test Intermediary Bank",
        "account_number": "0123456782",
        "address": "Intermediary Bank Address"
    },
    "client_reference": "478884739488",
    "currency": "GBP",
    "email": "[email protected]",
    "tag": "sample"
}'

Sample Response

A successful beneficiary creation API call should return a similar response structure as seen below:

{
  "data": {
    "id": "clh9me25a0052qgvostk4m648",
    "type": "business",
    "country": "GB",
    "currency": "GBP",
    "phone": "+447432267533",
    "address": "Barking Wharf Square",
    "email": "[email protected]",
    "business_name": "My good business",
    "first_name": null,
    "last_name": null,
    "created_date": "2023-05-04T21:09:08.830Z",
    "updated_date": "2023-05-04T21:09:08.830Z",
    "client_reference": "4788d84739488",
    "bank": {
      "name": "Test Bank",
      "account_number": "0041d3686094",
      "address": "Bank Address",
      "code": "044"
    },
    "tag": "sample"
  }
}