Path parameters
The unique identifier of the user.
Responses
Returned values: One of the action codes available in the Blocked users article.Code indicating the reason for blocking the user, and steps you can take to get them unblocked. Information about which payment flows are blocked for the user. Whether or not the user is blocked from making pay-ins or sending or receiving transfers.
Whether or not the user is blocked from making payouts or sending or receiving transfers.
The unique identifier of the user.
Inflows blocked
No blocks applied
{
"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 )