m2pfintech

Set Card PIN (Deprecated)

Sets the PIN for a card (deprecated; use v2/setPin). Accepts encrypted PIN along with entity and card details. Returns PIN set status.

POST
/credit-line-management/business-entity-manager/setPin

Header Parameters

TENANT*string

Tenant identifier for multi-tenant routing

Request Body

application/json

entityId*string

Entity ID of the cardholder

pin*string

Encrypted PIN

kitNo*string

Card kit number

expiryDate?string

Card expiry date in MMyy format (masked in logs)

dob?string

Date of birth in ddMMyyyy format (masked in logs)

clearPin?string

Clear-text PIN (masked in logs, used internally)

Response Body

application/json

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": "CUST20260617001",    "kitNo": "180010188",    "pin": "encrypted_pin_value",    "expiryDate": "1228",    "dob": "15011990"  }'
{
  "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_401",
    "shortMessage": "Unauthorized",
    "detailMessage": "Missing or invalid TENANT header."
  },
  "pagination": null
}
{
  "result": null,
  "exception": {
    "errorCode": "ERR_500",
    "shortMessage": "Internal Server Error",
    "detailMessage": "An unexpected error occurred. Please try again later."
  },
  "pagination": null
}