Skip to main content

Get All Beneficiaries

GET /beneficiaries

Description

Retrieve all beneficiaries.

Path Parameters

NameTypeDescription
NoneNo parameters

Request Headers

NameTypeDescription
countryCodestringCountry code (required)
tenantIdstringTenant ID (required)
userIdstringUser ID (required)

Query Parameters

NameTypeDescription
userIdstringUser ID (optional)
isRecentbooleanFlag to filter recent beneficiaries (optional)
typestringType of beneficiaries (optional)
searchstringSearch query for beneficiaries (optional)

Example

GET /beneficiaries?userId=123&isRecent=true&type=personal&search=john
countryCode: US
tenantId: tenant_01
userId: user_123

Response Code: 200 - Successful Description

Successful response.

Response Body

Content Type: application/json

{
"status": true,
"statusCode": 0,
"message": "string",
"data": {},
"errors": [
{
"message": "string",
"descriptiveMessage": "string"
}
]
}

Example

{
"status": true,
"statusCode": 0,
"message": "Request successful",
"data": {
"beneficiaries": [
{
"id": "1",
"name": "John Doe",
"type": "personal",
"isRecent": true
},
{
"id": "2",
"name": "Jane Smith",
"type": "business",
"isRecent": false
}
]
},
"errors": []
}

Method: GET

>http://20.87.230.105/platform/wallets/beneficiaries

Headers

Content-TypeValue
countryCodeUS
tenantIdtenant_01
userIduser_123
apiKey{{apiKey}}

Query Parameters

NameValue
userId123
isRecenttrue
typepersonal
searchjohn

###🔑 Authentication bearer

ParamValueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


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

RESPONSE


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