Add Beneficiary

Description

This endpoint POST {{baseUrl}}/beneficiaries allows you to add a new beneficiary. The request requires a bearer token for authentication.

Note: To Add Payment details to the Beneficiary see Add beneficiary payment detail

Request Headers

  • Content-Type: application/json

  • Authorization: Bearer <your_token>

import requests
import json

url = "{{baseUrl}}/beneficiaries"
data = {
    "recipient_type": "individual",
    "customer_name": "John Smith",
    "customer_email": "john@yativo.com",
    "country": "Nigeria",
    "customer_address": {
        "address_line_1": "1st episode john doe street",
        "address_line_2": "this can be null",
        "city": "Ikeja",
        "county": "Lagos",
        "postal_code": 900901
    }
}
headers = {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9'
}

response = requests.post(url, headers=headers, data=json.dumps(data))

print(response.json())

Last updated