List requirements for an international beneficiary
OAuth scope: international_transfers.write
Get the list of requirements needed to create or use an existing beneficiary for the given quote.
This endpoint is still in beta. Please get in touch with our team if you have any question or feedback: here.
The first time you will call this endpoint, you will have to provide:
quote_id
: The ID of the quote you obtained in the previous stepbeneficiary_id
: The ID of the beneficiary if you have one, null otherwisepayload.currency
: The currency of the transfer (e.g., EUR, USD, GBP)
Then, you will receive a response containing the requirements the user must provide to properly configure the beneficiary.
The requirements
field is an array. Each item corresponds to a payment method available for the beneficiary.
The user has to select one of them, and you will have to collect the required information for that payment method.
For instance, let’s say the requirements
looks like that:
Then, if the user selects swift
, then you will have to collect the following information: bank_name
and
bank_address
. If the user selects aba
, then you will have to collect bank_account_identifier
.
When you collect the required information, you may ba asked to call again this endpoint (boolean refresh_requirements_on_change
).
To do so, you will have to provide the same parameters as before, but you will also have to provide the collected information in the payload
field:
payload.type
: The payment method selected by the user (e.g.,swift
,aba
)payload.details
: An object containing the collected information, where eachkey
is the name of the field and thevalue
is the value provided by the user.
For instance:
If the field key has a dot (.) in it, it means that the field is a nested object.
Example: bank.address.street
means that the field is an object with a street
property, you should call our api
with the following payload:
You have to iterate over this endpoint until you have collected all the required information.
Authorizations
Bearer authorization header: Bearer <token>
, where <token>
is the access token received from the authorization server at the end of the OAuth 2.0 flow.
Headers
Required only for Sandbox API requests; to get one, please sign up to the Developer Portal.
Language to be used to display the requirements. Languages supported: en, it, es, de, fr, pt
"en"
Body
Response
Returns the list of requirements for the given beneficiary and quote.
The response is of type object
.