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

let user = {
  Id: '146476890',
}

const getRegulatoryStatus = async (userId) => {
  return await mangopay.Users.getRegulatory(userId)
    .then((response) => {
      console.info(response)
      return response
    })
    .catch((err) => {
      console.log(err)
      return false
    })
}

getRegulatoryStatus(user.Id)  
{
    "ActionCode": "008701",
    "ScopeBlocked": {
        "Inflows": true,
        "Outflows": false
    },
    "Id": "146476890"
}  

Path parameters

UserId
string
required

The unique identifier of the user.

Responses

{
    "ActionCode": "008701",
    "ScopeBlocked": {
        "Inflows": true,
        "Outflows": false
    },
    "Id": "146476890"
}  
const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
  clientId: 'your-client-id',
  clientApiKey: 'your-api-key',
})

let user = {
  Id: '146476890',
}

const getRegulatoryStatus = async (userId) => {
  return await mangopay.Users.getRegulatory(userId)
    .then((response) => {
      console.info(response)
      return response
    })
    .catch((err) => {
      console.log(err)
      return false
    })
}

getRegulatoryStatus(user.Id)