m2pfintech
API LibraryCard Controls

Set card PIN

Sets or resets the PIN for the specified card.

POST
/business-entity-manager/setPin

Header Parameters

TENANT*string

Tenant identifier. Required for all requests.

Request Body

application/json

entityId?string

Unique identifier of the entity (customer) requesting the PIN change.

kitNo?string

Kit number of the card for which the PIN is being set or reset.

expiryDate?string

Card expiry date in YYYY-MM format, used for identity verification.

dob?string

Date of birth of the cardholder in YYYY-MM-DD format, used for identity verification.

clearPin?string

Current PIN of the card, required when changing an existing PIN.

pin?string

New PIN to be set for the card.

Response Body

application/json

*/*

application/json

application/json

curl -X POST "https://api.m2pfintech.com/credit-line-management/business-entity-manager/setPin" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -d '{    "entityId": "E2EyUBCmdkpnkv5EB8",    "kitNo": "180010188",    "expiryDate": "2026-12",    "dob": "1990-01-15",    "pin": "1234"  }'
{
  "result": {
    "status": true
  },
  "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 card or entity found for the provided entityId or kitNo."
  },
  "pagination": null
}
{
  "result": null,
  "exception": {
    "errorCode": "ERR_500",
    "shortMessage": "Internal Server Error",
    "detailMessage": "An unexpected error occurred. Please try again later."
  },
  "pagination": null
}