m2pfintech
API LibraryCustomer

Fetch Customer Details

Retrieves comprehensive customer profile including card details, wallet balances, KYC status, preferences, and account information.

Search Options

You can search by one or more of:

  • Mobile number
  • PAN number
  • Date of birth
  • Entity ID
  • Kit number
  • CIF number

Response Includes

  • Customer personal details (name, DOB, gender, email)
  • All card accounts with status, kit number, masked card number
  • Wallet details with currency and account IDs
  • KYC status and verification method
  • Card preferences (ATM, POS, E-com limits)
  • Trip history (for forex customers)
  • Bank account details
  • Product information
POST
/v1/customers/fetch

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?
pan?string

PAN number

panNumber?string

PAN number (alternate field)

dob?string

Date of birth (format: YYYY-MM-DD)

entityId?string

Customer entity ID

kit_Number?string

Card kit number

Cbs_cifno?string

CIF number

kits?array<string>

Multiple kit numbers

cardNumber?string
tenant?string

Response Body

application/json

application/json

application/json

curl -X POST "https://sandbox-api.m2pprepaid.com/prepaid/customer/v1/customers/fetch" \  -H "X-TENANT-ID: ACME_CORP" \  -H "Content-Type: application/json" \  -d '{    "mobile": {      "value": "9876543210",      "countryCode": 91    },    "pan": "SIYPS9021Y",    "dob": "2001-09-04"  }'
{
  "result": {
    "id": "68d4df9a218558bad8c17354",
    "firstName": "John",
    "lastName": "Doe",
    "email": "john@example.com",
    "pan": "ABCDE1234F",
    "dob": "1990-01-15",
    "gender": "MALE",
    "customerId": "9932482",
    "accounts": [
      {
        "entityId": "617713338570000051250925",
        "card": {
          "kit": "570000052",
          "expiry": "10/27",
          "nameOnCard": "John Doe",
          "cardNumber": "876541XXXXXX0682",
          "kitStatus": {
            "status": "ACTIVE",
            "lastUpdated": "2025-09-25T06:53:54Z"
          }
        },
        "wallets": [
          {
            "accountId": "17587813365590055",
            "wallet": {
              "walletName": "GPRPROG001",
              "walletType": "GPR",
              "walletBaseCurrency": {
                "currencyCodeISO": "INR",
                "currencyCodeNumeric": 356
              }
            }
          }
        ],
        "product": {
          "productId": "HoV35EWlsS",
          "productName": "COOLGPRONLY001",
          "type": "GPR"
        },
        "kycStatus": {
          "status": "MINKYC",
          "kycVerificationMethod": "Bank KYC"
        }
      }
    ],
    "customerType": "NTB",
    "mobile": {
      "value": "9876543210",
      "countryCode": 91
    }
  },
  "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": "Customer does not exists for id",
  "status": 409,
  "detail": "Customer does not exists for given input",
  "message": "error.business",
  "businessCode": "PPCUST_002"
}