GET
/
v2.01
/
countries
/
{CountryCode}
/
authorizations
const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
  clientId: 'your-client-id',
  clientApiKey: 'your-api-key',
})

let myCountry = {
  code: 'FR'
}

const viewCountryAuthorizations = async (countryCode) => {
  return await mangopay.Regulatory.getCountryAuthorizations(countryCode)
    .then((response) => {
      console.info(response)
      return response
    })
    .catch((err) => {
      console.log(err)
      return false
    })
}

viewCountryAuthorizations(myCountry.code)  
{
    "CountryCode":"FR",
    "CountryName":"France",
    "Authorization":{
        "BlockUserCreation":false,
        "BlockBankAccountCreation":false,
        "BlockPayout":false
    },
    "LastUpdate":1463494366
}  

This call returns the restrictions for a specific country.

Path parameters

CountryCode
string
required

Format: Two-letter country code (ISO 3166-1 alpha-2 format)

The code of the country.

Responses

CountryCode
string

Format: Two-letter country code (ISO 3166-1 alpha-2 format)

The code of the country.

CountryName
string

Name of the country.

Authorization
object

Information about the country’s restrictions.

BlockUserCreation
boolean

Whether or not user creation is possible based on the user’s country of residence, address, and nationality.

BlockBankAccountCreation
boolean

Whether or not bank account creation is possible based on the bank’s country of domiciliation.

BlockPayout
boolean

Whether or not payout creation is possible based on the bank’s country of domiciliation.

LastUpdate
timestamp

The date and time when at least one of the country’s authorizations has been last updated.

{
    "CountryCode":"FR",
    "CountryName":"France",
    "Authorization":{
        "BlockUserCreation":false,
        "BlockBankAccountCreation":false,
        "BlockPayout":false
    },
    "LastUpdate":1463494366
}  
const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
  clientId: 'your-client-id',
  clientApiKey: 'your-api-key',
})

let myCountry = {
  code: 'FR'
}

const viewCountryAuthorizations = async (countryCode) => {
  return await mangopay.Regulatory.getCountryAuthorizations(countryCode)
    .then((response) => {
      console.info(response)
      return response
    })
    .catch((err) => {
      console.log(err)
      return false
    })
}

viewCountryAuthorizations(myCountry.code)