API LibraryBlock Code
Fetch block code details by entity
Returns detailed block code information, including reason and inducer, for 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/fetchDetailsByEntityId" \ -H "TENANT: string" \ -H "Content-Type: application/json" \ -d '{ "entityId": "E2EyUBCmdkpnkv5EB8" }'{
"result": [
{
"blockCode": "BLSFRD",
"reason": "Account blocked due to fraud suspicion",
"inducer": "SYSTEM",
"effectiveDate": "2026-06-17"
}
],
"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
}