Get beneficiary form schema
Changed onReturns the form schema containing all fields required to create a beneficiary for the given country, currency, entity type, and transfer method combination. Use this to dynamically render the beneficiary creation form.
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Query parameters
Two-letter ISO 3166-1 alpha-2 country code for the bank location
Three-letter ISO 4217 currency code for the beneficiary account
Whether the beneficiary is an individual or a company
Transfer method: SWIFT for international wire transfers, LOCAL for domestic transfers
Local clearing system for domestic transfers (e.g., NPP, BANK_TRANSFER, BPAY for Australia). Only applicable when transferMethod is LOCAL.
Current values of fields with refresh=true. Used to get dynamic schema updates based on user selections.
{
"beneficiary.bank_details.account_routing_type1": "phone_number"
}Response
OK
Form schema response containing all fields needed to collect beneficiary details
When present, the selected country, currency, recipient type or transfer options are unsupported and fields is empty.
Array of form fields with their display and validation configuration
The transfer method used to generate this schema. When not provided in the request, LOCAL is auto-selected if available.
The local clearing system used to generate this schema, if applicable.
Example response
{
"fields": [
{
"path": "beneficiary.bank_details.account_number",
"enabled": true,
"required": true,
"field": {
"type": "INPUT",
"options": [
{
"flightTime": {
"unit": "day"
}
}
]
}
}
],
"selectedTransferMethod": "LOCAL",
"selectedLocalClearingSystem": "NPP"
}Changes
- breaking
added the pattern
^[A-Z]{2}$to thequeryrequest parameterbankCountryCode
- breaking
- info
removed the pattern
^[A-Z]{2}$from thequeryrequest parameterbankCountryCode
- info