API LibraryBlock Code
Fetch block codes for entity
Returns all active block codes applied to the specified customer entity.
Header Parameters
TENANT*string
Tenant identifier. Required for every request.
Request Body
application/json
entityId*string
The unique entity identifier of the customer.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.m2pfintech.com/statement/block-code/fetchByEntityId" \ -H "TENANT: string" \ -H "Content-Type: application/json" \ -d '{ "entityId": "E2EyUBCmdkpnkv5EB8" }'{
"result": [
{
"blockCode": "BLSFRD",
"reason": "Account blocked due to fraud suspicion",
"inducer": "SYSTEM"
}
],
"exception": null,
"pagination": null
}{
"result": null,
"exception": {
"errorCode": "ERR_400",
"shortMessage": "Bad Request",
"detailMessage": "Invalid or missing required fields in the request payload."
},
"pagination": null
}{
"result": null,
"exception": {
"errorCode": "ERR_404",
"shortMessage": "Not Found",
"detailMessage": "The requested resource was not found."
},
"pagination": null
}{
"result": null,
"exception": {
"errorCode": "ERR_500",
"shortMessage": "Internal Server Error",
"detailMessage": "An unexpected error occurred. Please try again later."
},
"pagination": null
}Fetch block code details by entity POST
Returns detailed block code information, including reason and inducer, for the specified customer entity.
Set block code for entity POST
Applies a block code to the specified customer entity account, restricting account activity based on the given reason and inducer.
