m2pfintech
API LibraryCustomer Fetch

Fetch All Cards for Customer

Retrieves all cards (active, inactive, blocked) associated with a customer. Supports lookup by mobile number, kit number, entity ID, or issued-by hierarchy.

POST
/v1/customers/support/fetch-cards

Authorization

bearerAuth tenantId
AuthorizationBearer <token>

JWT Bearer token from the Authentication API

In: header

X-TENANT-ID<token>

Your unique tenant identifier assigned during onboarding

In: header

Header Parameters

X-TENANT-ID*string

Your unique tenant identifier

Request Body

application/json

mobile?
issuedBy?string

Hierarchy/branch that issued the card

kitNo?string

Card kit number to filter by

entityId?string

Customer entity ID

tenant?string

Tenant identifier

Response Body

application/json

application/json

application/json

curl -X POST "https://sandbox-api.m2pprepaid.com/prepaid/customer/v1/customers/support/fetch-cards" \  -H "X-TENANT-ID: ACME_CORP" \  -H "Content-Type: application/json" \  -d '{    "mobile": {      "value": "9876543210",      "countryCode": 91    }  }'
{
  "result": [
    {
      "kitNo": "320000001",
      "cardStatus": "ACTIVE",
      "cardType": "PHYSICAL",
      "productType": "GPR"
    },
    {
      "kitNo": "320000002",
      "cardStatus": "BLOCKED",
      "cardType": "VIRTUAL",
      "productType": "GPR"
    }
  ],
  "pagination": null
}
{
  "type": "https://www.m2pfintech.com/problem/problem-with-message",
  "title": "Bad Request",
  "status": 400,
  "detail": "Unable to convert http message",
  "message": "error.http.400"
}
{
  "type": "https://www.m2pfintech.com/problem/problem-with-message",
  "title": "Invalid request",
  "status": 409,
  "detail": "Invalid request",
  "message": "error.business",
  "businessCode": "PPCUST_010"
}