{
"DisplayName": "Alex Smith EUR international payout account",
"PayoutMethodType": "InternationalBankTransfer",
"RecipientType": "Business",
"Currency": "EUR",
"Country": "FR",
"Tag": "Created using the Mangopay API Postman collection",
"BusinessRecipient": {
"BusinessName": "Alex Smith Consulting",
"Address": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
}
},
"InternationalBankTransfer": {
"AccountNumber": "FR7630004000031234567890143"
}
}
{
"DisplayName": "Alex Smith GBP local pay-in account",
"PayoutMethodType": "LocalBankTransfer",
"RecipientType": "Individual",
"Currency": "GBP",
"Country": "GB",
"Tag": "Created using the Mangopay API Postman collection",
"RecipientScope": "PAYIN",
"IndividualRecipient": {
"FirstName": "Alex",
"LastName": "Smith",
"Address": {
"AddressLine1": "10 Kingsway",
"City": "London",
"PostalCode": "WC2B 6LH",
"Country": "GB"
}
},
"LocalBankTransfer": {
"GBP": {
"SortCode": "200000",
"AccountNumber": "55779911"
}
}
}
// No response body
Recipients
Validate data for a Recipient
Check that the user’s Recipient data is valid before creation
POST
/
v2.01
/
{ClientId}
/
users
/
{UserId}
/
recipients
/
validate
{
"DisplayName": "Alex Smith EUR international payout account",
"PayoutMethodType": "InternationalBankTransfer",
"RecipientType": "Business",
"Currency": "EUR",
"Country": "FR",
"Tag": "Created using the Mangopay API Postman collection",
"BusinessRecipient": {
"BusinessName": "Alex Smith Consulting",
"Address": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
}
},
"InternationalBankTransfer": {
"AccountNumber": "FR7630004000031234567890143"
}
}
{
"DisplayName": "Alex Smith GBP local pay-in account",
"PayoutMethodType": "LocalBankTransfer",
"RecipientType": "Individual",
"Currency": "GBP",
"Country": "GB",
"Tag": "Created using the Mangopay API Postman collection",
"RecipientScope": "PAYIN",
"IndividualRecipient": {
"FirstName": "Alex",
"LastName": "Smith",
"Address": {
"AddressLine1": "10 Kingsway",
"City": "London",
"PostalCode": "WC2B 6LH",
"Country": "GB"
}
},
"LocalBankTransfer": {
"GBP": {
"SortCode": "200000",
"AccountNumber": "55779911"
}
}
}
// No response body
Path parameters
string
required
The unique identifier of the user.
Body parameters
string
required
Length: 1–50; cannot contain:
&,'/ (pattern:^(?!.*[&,'/]).{1,50}$)A user-friendly name to identify the account. This value cannot be changed once the recipient is created.string
required
Possible values:
InternationalBankTransfer, LocalBankTransferThe payout method of the recipient:InternationalBankTransfer– The account can receive non-local currencies via SWIFT or else uses local rails for local currencies by default.LocalBankTransfer– The account can only receive the corresponding localCurrencyfor theCountry(e.g.EURto a SEPA country,GBPto a UK account,PLNto a Polish IBAN, etc.)
string
required
Possible values:
Individual, BusinessThe recipient type:Individual– An account held by a natural person, requiring theIndividualRecipientproperty.Business– An account held by a legal entity, requiring theBusinessRecipientproperty.
string
required
Possible values:
AED, AUD, CAD, CHF, CNH, CZK, DKK, EUR, GBP, HKD, HUF, ILS, JPY, MXN, NOK, NZD, PLN, RON, SAR, SEK, SGD, TRY, USD, ZARThe currency of the recipient.string
required
Format: Two-letter country code (ISO 3166-1 alpha-2 format)The destination country of the payout method.
string
Possible values:
PAYIN, PAYOUTDefault value: PAYOUTThe scope of the recipient:PAYOUT– Usable for payouts and in pay-in use cases. APAYOUTrecipient can only be created by a user with theUserCategoryOWNERand requires SCA. You need to use the returnedPendingUserAction.RedirectUrlvalue, adding your encodedreturnUrlas a query parameter, to redirect the user to the hosted SCA session so they can complete the necessary steps.PAYIN- Not usable for payouts but only usable for pay-in use cases, such as direct debit and refunds using payouts. APAYINrecipient can be created by a user with theUserCategoryPAYERorOWNER, and does not require SCA.
string
Max. length: 255 (pattern:
^.{0,255}$)Custom data that you can add to this object. This value cannot be changed once the recipient is created.- Individual
- Business
object
required
The account holder if the
RecipientType is Individual.Only one of IndividualRecipient or BusinessRecipient is required.Show properties
Show properties
string
required
Length: 1–255; cannot contain:
()&,.:_/ (Pattern: ^(?!.*[()&,.:_/]).{1,255}$)The first name of the individual account holder.string
required
Length: 1–255; cannot contain:
()&,.:_/ (Pattern: ^(?!.*[()&,.:_/]).{1,255}$)The last name of the individual account holder.object
required
Information about the address.
Show properties
Show properties
string
required
Length: 1–255; cannot contain:
()/ (Pattern: ^(?!.*[()/]).{1,255}$)The first line of the address.string
Length: 1–255; cannot contain:
()/ (Pattern: ^(?!.*[()/]).{1,255}$)The second line of the address.string
required
Length: 1-80; cannot contain:
&,.:_' (pattern: ^(?!.*[&,.:_]).{1,80}$)The city of the address.string
Length: 1–10; cannot contain:
&,.:_'-/ (pattern: ^(?!.*[&,.:_/]).{1,50}$)The region of the address.string
required
Length: 1–10; cannot contain:
()&,.:_'/ (pattern: ^(?!.*[()&,.:_'/]).{1,10}$)The postal code of the address.string
required
Format: Two-letter country code (ISO 3166-1 alpha-2 format)The country of the address.
object
required
The account holder if the
RecipientType is Business.Only one of IndividualRecipient or BusinessRecipient is required.Show properties
Show properties
string
required
Length: 1–255; cannot contain:
(),.:/ (Pattern: ^(?!.*[(),.:/]).{1,255}$)The name of the business account holder.object
required
Information about the address.
Show properties
Show properties
string
required
Length: 1–255; cannot contain:
()/ (Pattern: ^(?!.*[()/]).{1,255}$)The first line of the address.string
Length: 1–255; cannot contain:
()/ (Pattern: ^(?!.*[()/]).{1,255}$)The second line of the address.string
required
Length: 1-80; cannot contain:
&,.:_' (pattern: ^(?!.*[&,.:_]).{1,80}$)The city of the address.string
Length: 1–10; cannot contain:
&,.:_'-/ (pattern: ^(?!.*[&,.:_/]).{1,50}$)The region of the address.string
required
Length: 1–10; cannot contain:
()&,.:_'/ (pattern: ^(?!.*[()&,.:_'/]).{1,10}$)The postal code of the address.string
required
Format: Two-letter country code (ISO 3166-1 alpha-2 format)The country of the address.
- InternationalBankTransfer
- LocalBankTransfer
object
required
The account details if
PayoutMethodType is InternationalBankTransfer.Only one of InternationalBankTransfer or LocalBankTransfer is required.The InternationalBankTransfer depends on the Currency and Country.Hide properties
Hide properties
string
required
Format: The format returned by the schema endpoint depending on the
Currency and CountryThe account number of the account. For IBAN countries, the AccountNumber format is the local IBAN one. For other countries, the format depends on the Country and should be retrieved from the GET View the schema for a Recipient endpoint.string
Format: The format returned by the schema endpoint depending on the
Currency and CountryThe BIC of the account.For countries that don’t use IBAN, the BIC is required. For countries that use IBAN, this field is ignored because the BIC generated automatically from the IBAN and returned in the response.object
required
The account details if
PayoutMethodType is LocalBankTransfer, depending on the Currency.One of:- CAD
- CHF
- CZK
- DKK
- EUR
- GBP
- HUF
- NOK
- PLN
- RON
- SEK
- USD
object
required
Hide properties
Hide properties
string
required
Format: 7–35 digits (pattern:
^\\d{7,35}$)The account number of the Canadian account.string
required
Format: 3 digits (pattern:
^\\d{3}$)The institution number of the Canadian account.string
required
Format: 5 digits (pattern:
^\\d{5}$)The branch code of the Canadian account.string
required
Length: 1–50The bank name of the Canadian account.
object
required
Hide properties
Hide properties
string
required
Format: 8–12 alphanumeric characters (pattern:
^[0-9a-zA-Z]{8,12}$)The account number of the US account.string
required
Format: 9 digits (pattern:
^\\d{9}$)The ABA routing number of the US account.string
Format: 8-12 digits then
FFC then a space then a sting of characters up to 140 total length (pattern: ^(?=.{0,140}$)[0-9]{8,12}/FFC [0-9a-zA-Z/\\-?:().,'+ ]+$)FFC transfer information for the US account.Responses
200
200
No response body – 200 HTTP code indicates the request is valid against the schema
400 - Parameter or data errors
400 - Parameter or data errors
Example 400 error:The following
{
"Id": "1a8bff3c-37a4-4a1a-9219-d00a5fd19865",
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Date": 1779197001,
"Errors": {
"IndividualRecipient.Address.PostalCode": "LENGTH_MORE_THAN_MAX",
"LocalBankTransfer.GBP.AccountNumber": "INVALID_FORMAT. Regex validation: ^\\d{8}$",
"LocalBankTransfer.GBP.SortCode": "INVALID_FORMAT. Regex validation: ^\\d{6}$"
}
}
Errors values may be returned for a given parameter:REQUIRED– Value is required but not present in the request.LENGTH_MORE_THAN_MAX– String length is greater than required length.LENGTH_LESS_THAN_MIN– String length is less than required length.INVALID_FORMAT– Value doe not match expected pattern.NOT_IN_ALLOWED_VALUES– Value is not a validPayoutMethodType,RecipientType,CurrencyorCountry.UNSUPPORTED_COUNTRY– Country not allowed (see country restrictions article for details).UNSUPPORTED_CURRENCY– Currency is a valid ISO 4217 format but not yet supported for Recipients.UNSUPPORTED_PAYOUT_METHOD_FOR_CURRENCY– Payout method is not supported for theCurrencyandCountrycombination.CLIENT_NOT_FOUND–ClientIdmaking the request does not exist.USER_NOT_FOUND–UserIdfor which the request is made does not exist.INVALID_SORT_CODE– Sort code for this account is not valid.INVALID_ACCOUNT_NUMBER– Account number is not valid.INVALID_IBAN– IBAN is not valid.INVALID_BIC– BIC is not valid.IBAN_DOES_NOT_CORRESPOND_TO_ACCOUNT_COUNTRY– IBAN or account number does not match theCountryvalue (for example,CountryisGBbut the IBAN starts withFR).BIC_DOES_NOT_CORRESPOND_TO_ACCOUNT_COUNTRY– Bank identifier does not match theCountryvalue (for example,CountryisJPbut the BIC indicates US). -UNSUPPORTED_IBAN– IBAN is valid but not supported:- If
LocalBankTransfer, the IBAN country is not part of SEPA and the local currency is not EUR. - If
InternationalBankTransfer, the IBAN country is not GB or is not part of SEPA and local currency is not EUR.
- If
INVALID_ACCOUNT_NUMBER_AND_SORT_CODE_COMBINATION– GB sort code and account number combination is not valid.
// No response body
{
"DisplayName": "Alex Smith EUR international payout account",
"PayoutMethodType": "InternationalBankTransfer",
"RecipientType": "Business",
"Currency": "EUR",
"Country": "FR",
"Tag": "Created using the Mangopay API Postman collection",
"BusinessRecipient": {
"BusinessName": "Alex Smith Consulting",
"Address": {
"AddressLine1": "3 rue de la Cité",
"AddressLine2": "Appartement 7",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
}
},
"InternationalBankTransfer": {
"AccountNumber": "FR7630004000031234567890143"
}
}
{
"DisplayName": "Alex Smith GBP local pay-in account",
"PayoutMethodType": "LocalBankTransfer",
"RecipientType": "Individual",
"Currency": "GBP",
"Country": "GB",
"Tag": "Created using the Mangopay API Postman collection",
"RecipientScope": "PAYIN",
"IndividualRecipient": {
"FirstName": "Alex",
"LastName": "Smith",
"Address": {
"AddressLine1": "10 Kingsway",
"City": "London",
"PostalCode": "WC2B 6LH",
"Country": "GB"
}
},
"LocalBankTransfer": {
"GBP": {
"SortCode": "200000",
"AccountNumber": "55779911"
}
}
}
Was this page helpful?