The following endpoint retrieves the fields that one payout rail, beneficiary type and customer type need on a corridor.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
SendcustomerTypeonly in a setup with customersWithout
customerType, the response has nocustomerobject: nocustomerTypeand nocustomer.fields. In a setup with customers, sendcustomerTypeto get the fields of your customer. In a setup without customers, do not sendcustomerType. See Step 4: Register the customer.
- When to call: call this endpoint before you create the beneficiary, the payment account, the customer and the payout.
- The response has one group of field definitions for each of them.
- If you change the payout rail, the beneficiary type or the customer type, call this endpoint again. Another payout rail, beneficiary type or customer type can need other fields.
- Customer type:
customerTypeis the type of your customer:individualorbusiness. WithcustomerType, the response hascustomerTypeandcustomer.fields.customer.fieldshas the fields for a customer of that type. - If the beneficiary type, the customer type or the payout rail is not valid, the API returns
FIELD_INVALID(4000001). - Use case: the customer type and the beneficiary type give the use case:
b2b,b2c,c2borc2c. The first letter is the sender:bfor your business or abusinesscustomer,cfor anindividualcustomer. The second letter is the beneficiary type:bforbusiness,cforindividual. You do not send the use case. See Key terms. - If the payout rail does not support the use case, the API returns
USE_CASE_NOT_SUPPORTED(4050002). - When the API checks the fields: the API does not check all of these fields in every call. See When the API checks the requirements.
- Field definitions: in a field definition,
keyis the field name inside its object. Akeyis never a dotted path. - An object definition lists its child fields in
fields. - An array definition describes its element in
items. pattern,minLengthandmaxLengthare in a field definition only when the corridor adds a string rule.- For a field with
type: enum, call the Fetch Enum Codes API with theenumTypeof the field. The response gives the allowed values. In your request, send thecode. - Payout fields:
payout.fieldshas the fields of the payout, for examplepurposeOfTransaction,purposeDescriptionandnoteToRecipient. When the corridor asks for them, it also hasrelationshipandsourceOfIncome. - Send each field of
payout.fieldsat the top level of the request body of the Create Payout API. That request body has nopayoutobject. - If you send a field that is not in
payout.fields, the API ignores it. The create succeeds, and the API does not store the field. - Documents:
payout.documentslists every supporting document type that a payout on this corridor accepts. - If an item has
required: true, you must send that document in the payout. If an item hasrequired: false, you can send that document. Ifpayout.documentsis an empty array, the payout takes no document. - Upload each document with the Upload Document API.
Field list
This table lists the fields that you send for beneficiaries, payment accounts, customers, payouts and documents. Use it to design your database. Also store the referenceNo from each create response and the full request body that you sent. Each Update API needs the full request body.
The requirements of each corridor tell you which fields apply and which are required. Customer fields apply only in a setup with customers.
How to read the When to send column:
- Per requirements means: send the field when the requirements of the corridor list it.
- A field of type
enumwith no enum type (—) is a fixed API value, for examplebeneficiaryType. The column gives its values. You do not call the Fetch Enum Codes API for it.
| Resource | Field | Type | Enum type | When to send |
|---|---|---|---|---|
| Beneficiary | partnerReferenceNo | string | — | Always |
| Beneficiary | beneficiaryType | enum | — | Always: individual or business |
| Beneficiary | fullName | string | — | For an individual |
| Beneficiary | businessName | string | — | For a business |
| Beneficiary | address | object | — | Per requirements |
| Beneficiary | address.country | string | — | Per requirements |
| Beneficiary | address.line, address.city, address.countrySubdivision, address.postCode | string | — | Per requirements |
| Beneficiary | dateOfBirth | date | — | Per requirements |
| Beneficiary | mobileNumber | string | — | Per requirements |
| Payment account | beneficiaryReferenceNo | string | — | Always |
| Payment account | country, currency | string | — | Always |
| Payment account | payoutRail | string | — | Always |
| Payment account | accountDetails.accountHolderName | string | — | Per requirements |
| Payment account | accountDetails.accountNumber | string | — | Per requirements |
| Payment account | accountDetails.bankCode | string | — | Per requirements |
| Payment account | accountDetails.branchCode, accountDetails.swiftBic, accountDetails.iban, accountDetails.bankName, accountDetails.bankAddress | string | — | Per requirements |
| Customer | partnerReferenceNo | string | — | Always |
| Customer | customerType | enum | — | Always: individual or business |
| Customer | fullName | string | — | For an individual |
| Customer | businessName | string | — | For a business |
| Customer | registrationDocument.type | enum | registration_document_type | Per requirements |
| Customer | registrationDocument.number, registrationDocument.issuingCountry | string | — | Per requirements |
| Customer | registrationDocument.issueDate | date | — | Per requirements |
| Customer | registrationNumber | string | — | For a business |
| Customer | incorporationCountry | string | — | For a business |
| Customer | incorporationDate | date | — | For a business |
| Customer | address | object | — | Always |
| Customer | address.line1, address.city, address.postalCode | string | — | Per requirements |
| Customer | address.country | string | — | Per requirements |
| Customer | dateOfBirth | date | — | Per requirements, for an individual |
| Customer | nationality | string | — | Per requirements, for an individual |
| Customer | mobileNumber | string | — | Per requirements |
| Customer | sourceOfIncome | enum | source_of_income | Per requirements |
| Customer | typeOfBusiness | enum | type_of_business | Per requirements |
| Customer | associates[].fullName, associates[].idNumber | string | — | For a business |
| Customer | associates[].titles | string array | — | For a business |
| Customer | associates[].ownershipPct | number | — | For a ubo associate |
| Customer | associates[].nationality, associates[].mobileNumber, associates[].designation, associates[].executiveEcrn | string | — | Per requirements |
| Customer | associates[].customerType | enum | customer_type | Per requirements |
| Customer | associates[].dateOfBirth | date | — | Per requirements |
| Payout | partnerReferenceNo | string | — | Always |
| Payout | quoteReferenceNo | string | — | Always |
| Payout | paymentAccountReferenceNo | string | — | Always |
| Payout | customerReferenceNo | string | — | In a setup with customers |
| Payout | purposeOfTransaction | enum | purpose_of_transaction | Per requirements |
| Payout | relationship | enum | relationship | Per requirements |
| Payout | sourceOfIncome | enum | source_of_income | Per requirements |
| Payout | purposeDescription, noteToRecipient | string | — | Per requirements |
| Payout | documents[] | string | — | Per requirements: the document referenceNo |
| Document | partnerReferenceNo | string | — | For each upload |
| Document | documentType | enum | document_type | For each upload |
| Document | fileName | string | — | For each upload |
| Document | contentType | enum | — | For each upload: application/pdf, image/jpeg or image/png |
