Set block code for entity
Applies a block code to the specified customer entity account, restricting account activity based on the given reason and inducer.
Header Parameters
Tenant identifier. Required for every request.
Request Body
application/json
The unique entity identifier of the customer.
Human-readable reason for applying the block code.
The party initiating the block code action.
"SYSTEM" | "USER" | "PARTNER"The block code to apply.
"BLHRSK" | "BLCSDA" | "BLCSDK" | "BLDECD" | "BLSFRD" | "BLONFR" | "BLOFFR" | "BLSTTL" | "BLWROF" | "BLTEMP" | "BLKYCE" | "BLNPAS" | "BLPLCY" | "BLDBK1" | "BLDBK2" | "BLDBK3" | "BLDBK4" | "BLDBK5" | "BLDBK6" | "BLDBK7" | "BLRES1" | "BLRES2" | "BLRES3" | "BLRES4" | "BLCNPA" | "BLNTRC" | "BLRTO" | "BLCOLL" | "BLSTL" | "BLANV" | "BLAE" | "BLACC" | "BLENPAS" | "BLAFR" | "BLTWROF" | "BLSTMT" | "BLPDECD" | "BLCSDAP" | "BLVCTM" | "BLACSD" | "BLKNPAREC" | "BLASST"Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.m2pfintech.com/statement/block-code/setBlockCode" \ -H "TENANT: string" \ -H "Content-Type: application/json" \ -d '{ "entityId": "E2EyUBCmdkpnkv5EB8", "reason": "Account blocked due to fraud suspicion", "inducer": "SYSTEM", "blockCode": "BLSFRD" }'{
"result": {
"status": "SUCCESS"
},
"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 codes for entity POST
Returns all active block codes applied to the specified customer entity.
Add or update a Corporate/Program address POST
Creates a new address record or updates an existing one for the given `entityId`. Providing `branchId` links the address to a specific branch. Set `isDefault: true` to mark the primary address for an entity. Multiple addresses of different `addressType` can exist for the same `entityId`.
