m2pfintech

Apply a block code to an entity

Applies a specific block code to a customer's credit account, restricting certain operations. Requires specifying the entity, block code type, reason, and the inducer (who is applying the block).

POST
/statement/block-code/setBlockCode

Header Parameters

TENANT*string

Tenant identifier for multi-tenancy support

Request Body

application/json

entityId*string

Unique entity identifier of the customer

reason*string

Human-readable reason for applying the block code

inducer*string

Who is inducing the block

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

Block code to apply to the account

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://uat-m2p-ccms.m2pfintech.com/statement/block-code/setBlockCode" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -d '{    "entityId": "string",    "reason": "string",    "inducer": "SYSTEM",    "blockCode": "BLHRSK"  }'
{
  "result": true,
  "exception": {}
}
{
  "code": "string",
  "message": "string",
  "details": "string"
}
{
  "code": "string",
  "message": "string",
  "details": "string"
}
{
  "code": "string",
  "message": "string",
  "details": "string"
}