Skip to main content

Create Beneficiary Account

POST /beneficiaries

Description

Create a new beneficiary account.

Path Parameters

NameTypeDescription
NoneNo parameters

Request Headers

NameTypeDescription
countryCodestringThe country code (header)
tenantIdstringThe tenant ID (header)
userIdstringThe user ID (header)

Request Body

  • Content Type: application/json
{
"firstName": "string",
"lastName": "string",
"middleName": "string",
"bankName": "string",
"bankCode": "string",
"accountNumber": "string",
"phoneNumber": "string",
"accountId": "string",
"userId": "string",
"beneficiaryTag": "string",
"deleted": true,
"alias": "string"
}

Example

POST /beneficiaries
Content-Type: application/json
countryCode: string
tenantId: string
userId: string

{
"firstName": "John",
"lastName": "Doe",
"middleName": "M",
"bankName": "Sample Bank",
"bankCode": "001",
"accountNumber": "123456789",
"phoneNumber": "9876543210",
"accountId": "acc123",
"userId": "usr456",
"beneficiaryTag": "friend",
"deleted": false,
"alias": "Johnny"
}

Response Code: 200 - OK

Description

Beneficiary created successfully.

Response Fields

FieldTypeDescription
statusbooleanIndicates if the operation was successful
statusCodeintegerStatus code
messagestringResponse message
dataobjectData related to the beneficiary account
errorsarrayList of error messages, if any

Example

{
"status": true,
"statusCode": 0,
"message": "Beneficiary created successfully",
"data": {},
"errors": [
{
"message": "Some error occurred",
"descriptiveMessage": "Detailed error message"
}
]
}

Headers

Content-TypeValue
apiKey{{apiKey}}
countryCodestring
tenantIdstring
userIdstring

Body

{
"firstName": "John",
"lastName": "Doe",
"middleName": "M",
"bankName": "Sample Bank",
"bankCode": "001",
"accountNumber": "123456789",
"phoneNumber": "9876543210",
"accountId": "acc123",
"userId": "usr456",
"beneficiaryTag": "friend",
"deleted": false,
"alias": "Johnny"
}

🔑 Authentication bearer

ParamValueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request POST \ 
--url /beneficiaries \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!