Adding a beneficiary is a critical step in any payment workflow. With XYB’s Beneficiary APIs, developers can securely collect, verify, and manage recipient details, adapting to local compliance rules across countries and payment types.
Instead of hardcoding forms for every region, you can use our API to dynamically fetch required fields, validate inputs, and keep your front-end flexible.
Workflow Overview
Here’s how you should implement beneficiary creation in your system:
Step
Description
API
1. Identify Customer
Assign or generate an identityReference for the logged-in customer. This will link all beneficiaries to that customer.
Handled by your system
2. Fetch Dynamic Field Requirements
Get the required fields (based on country, currency, payment method) for account creation.
GET /api/v1/fields/{identityReference}/contact-account
3. Build the Beneficiary Form
Dynamically render the form based on the above specs. Some fields may be mandatory, optional, or conditional.
Front-end logic
4. Submit Beneficiary
Send beneficiary data to create them.
POST /api/v1/beneficiary/identity/{identityReference}
5. Handle Dynamic Coordinates (if needed)
For payment types like SWIFT/BSB, collect additional fields via dynamic schema.
POST /api/v1/beneficiary/dynamic/{identityReference}/{idRef}/coordinates
6. (Optional) Verify with OTP
Some beneficiary account types require OTP verification before activation.
GET + POST verification endpoints
7. Ready for Payment
Once verified and stored, the beneficiary and their accounts can be used in any payment request.
Fetch Dynamic Field Specifications
Use this endpoint to get field requirements based on identityReference:
GET /api/v1/fields/{identityReference}/contact-account