m2pfintech
API LibraryBlock Code

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.

POST
/block-code/setBlockCode

Header Parameters

TENANT*string

Tenant identifier. Required for every request.

Request Body

application/json

entityId*string

The unique entity identifier of the customer.

reason*string

Human-readable reason for applying the block code.

inducer*string

The party initiating the block code action.

Value in"SYSTEM" | "USER" | "PARTNER"
blockCode*string

The block code to apply.

Value in"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
}