m2pfintech
API LibraryCard Controls

Block or lock a credit card

Blocks or locks a credit card for a given entity. Use flag B to block and L to lock the card. Optionally scope the action to a specific kit number.

POST
/business-entity-manager/block

Header Parameters

TENANT*string

Tenant identifier. Required for all requests.

Request Body

application/json

entityId*string

Unique identifier of the entity (account) whose card should be blocked or locked.

flag*string

Action flag. Use B to block the card or L to lock the card.

Value in"B" | "L"
KitNo?string

Kit number of the specific card to block or lock. Leave empty to apply the action to all cards under the entity.

reason?string

Human-readable reason for blocking or locking the card.

Response Body

application/json

*/*

application/json

application/json

curl -X POST "https://api.m2pfintech.com/credit-line-management/business-entity-manager/block" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -d '{    "entityId": "account41108",    "flag": "B",    "KitNo": "",    "reason": "lock for safety"  }'
{
  "result": "Card blocked successfully.",
  "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": "No entity or card found for the provided entityId."
  },
  "pagination": null
}
{
  "result": null,
  "exception": {
    "errorCode": "ERR_500",
    "shortMessage": "Internal Server Error",
    "detailMessage": "An unexpected error occurred. Please try again later."
  },
  "pagination": null
}