Skip to main content
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

200

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.
LastUpdate
Unix 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)  
I