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

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

listCountryAuthorizations()  
[
    {
        "CountryCode":"FI",
        "CountryName":"Finland",
        "Authorization":{
            "BlockUserCreation":false,
            "BlockBankAccountCreation":false,
            "BlockPayout":false
        },
        "LastUpdate":1644574249
    },
    {
        "CountryCode":"FR",
        "CountryName":"France",
        "Authorization":{
            "BlockUserCreation":false,
            "BlockBankAccountCreation":false,
            "BlockPayout":false
        },
        "LastUpdate":1644574249
    }
]  

This call returns the restrictions of all countries.

Responses

[
    {
        "CountryCode":"FI",
        "CountryName":"Finland",
        "Authorization":{
            "BlockUserCreation":false,
            "BlockBankAccountCreation":false,
            "BlockPayout":false
        },
        "LastUpdate":1644574249
    },
    {
        "CountryCode":"FR",
        "CountryName":"France",
        "Authorization":{
            "BlockUserCreation":false,
            "BlockBankAccountCreation":false,
            "BlockPayout":false
        },
        "LastUpdate":1644574249
    }
]  

const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
  clientId: 'your-client-id',
  clientApiKey: 'your-api-key',
})

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

listCountryAuthorizations()