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":"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)