m2pfintech
API LibraryCard Management

Lock, unlock, or permanently block a card

Change the status of a customer card. Supports temporary locking, unlocking a locked card, and permanent blocking.

Lock (L) is a reversible action that temporarily disables the card. The card can be re-enabled by calling this API with Unlock (UL).

Block (BL) is a PERMANENT action. Once a card is blocked, it cannot be reactivated. The customer will need a card replacement through the replaceCard API.

Either entityId or kitNo must be provided to identify the card. The flag field is the only truly mandatory field with controller-level validation.

Always provide a meaningful reason for audit trail purposes.

POST
/Yappay/business-entity-manager/block

Authorization

BearerAuth TenantHeader
AuthorizationBearer <token>

JWT Bearer token obtained from the /auth/login endpoint

In: header

TENANT<token>

Tenant identifier provided by M2P (e.g. ENBDTABBY)

In: header

Request Body

application/json

entityId?string

Customer ID. Required if kitNo is not provided. At least one of entityId or kitNo must be present.

Lengthlength <= 16
kitNo?string

Kit number. Required if entityId is not provided.

Lengthlength <= 20
flag*string

Action flag that determines the operation to perform. L = Lock (temporary, reversible). UL = Unlock (restore a previously locked card). BL = Block (permanent, irreversible, requires card replacement). Additional values include B, U, FL, FB, SU for internal operations.

Lengthlength <= 16
Value in"L" | "UL" | "BL" | "B" | "U" | "FL" | "FB" | "SU"
reason?string

Reason for the action. Optional but strongly recommended for audit purposes.

Lengthlength <= 30

Response Body

application/json

application/json

curl -X POST "https://api.m2p.com/Yappay/business-entity-manager/block" \  -H "Content-Type: application/json" \  -d '{    "entityId": "ABCDEF",    "kitNo": "10000001",    "flag": "L",    "reason": "Test Lock Card 10000001"  }'
{
  "result": true,
  "exception": null,
  "pagination": null
}

{
  "result": null,
  "exception": {
    "detailMessage": "The Entity ABCDEF is Blocked",
    "shortMessage": "Entity is Blocked",
    "errorCode": "Y224",
    "languageCode": "en"
  },
  "pagination": null
}