Skip to main content
GET
/
v2.01
/
countries
/
authorizations
const mangopayInstance = require('mangopay4-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
    }
]  

Documentation Index

Fetch the complete documentation index at: https://docs.mangopay.com/llms.txt

Use this file to discover all available pages before exploring further.

This call returns the restrictions of all countries.

Responses

Array (Authorizations)
array
The list of countries and their restrictions.
[
    {
        "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('mangopay4-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()