Bulk Validate Beneficiary
The API validates the beneficiary details information (across multiple schemas). Upon receiving a beneficiary request, verify its validity and return any unsuccessful fields as issues in the response.
GET
/payments/beneficiaries/validate
Body Parameters Request
items
array
object
List of items to validate
items[]
object
items[].entity_type
string
INDIVIDUAL, BUSINESS
The type of entity of the beneficiary
items[].bank_details
object
Set of attributes mapping to the beneficary bank details (as specified in the relevant schema)
Yes
items[].bank_details.account_country
string
/^[A-Z]{2,2}$/
The 2 letter ISO country code the beneficiary bank is located in
Yes
items[].bank_details.account_currency
string
/^[A-Z]{3,3}$/
The 3 letter ISO currency code the beneficiary bank accepts
Yes
items[].entity
object
Set of attributes mapping to the beneficary entity (as specified in the relevant schema)
Yes
Body Parameters Response
valid
array
object
List of items that are valid
valid[]
object
Echo of the item sent in
valid[].entity_type
string
INDIVIDUAL, BUSINESS
The entity type this beneficiary was validated as
valid[].currency
string
/^[A-Z]{3}$/
The 3 letter ISO currency code used to validate this item
valid[].country
string
/^[A-Z]{2}$/
The 2 letter ISO country code used to validate this item
invalid
array
object
List of items that did not validate
invalid[]
object
Echo of the item sent in
invalid[].entity_type
string
INDIVIDUAL, BUSINESS
The entity type this beenficiary was validated as
invalid[].currency
string
/^[A-Z]{3}$/
The 3 letter ISO currency code used to validate this item
invalid[].country
string
/^[A-Z]{2}$/
The 2 letter ISO country code used to validate this item
invalid[].issues
array
object
an array of issues found in this item's payload
invalid[].issues[]
object
invalid[].issues[].field
string
The json path to the field that has the issue
invalid[].issues[].message
string
The issue encountered
totals
object
Aggregated totals of this validation
totals.valid
integer
number of items that have a valid payload
totals.count
integer
total number of items processes
totals.schemas
integer
total number of schemas used to validate
totals.invalid
integer
number of items that are invalid and have issues
Request Example
Response Examples
Last updated