m2pfintech
API LibraryCustomer Management

Fetch Kits by Account Number

Retrieves all card kits linked to a specific bank account number. Returns the account details along with all entities and their kits associated with that account. Supports an optional query parameter to include all cards including inactive and replaced ones.

POST
/kit-manager/fetchKitsByAccountNo

Authorization

tenantAuth
tenant<token>

The DCMS tenant name for multi-tenant isolation. Every API call must include this header to identify the client organization.

In: header

Query Parameters

isAllCardsRequired?boolean

Set to true to include all cards including inactive and replaced cards. Default returns only active cards.

Header Parameters

tenant*string

The DCMS client or tenant name for multi-tenant isolation.

Request Body

application/json

accountNo*string

Bank account number to look up associated kits for.

Response Body

application/json

curl -X POST "https://api.dcms.example.com/v1/kit-manager/fetchKitsByAccountNo" \  -H "tenant: ACME_BANK" \  -H "Content-Type: application/json" \  -d '{    "accountNo": 8000000  }'
{
  "result": {
    "accountNo": 8000000,
    "accountStatus": "ACTIVE",
    "accountType": "SAVING",
    "entity": [
      {
        "entityId": "req11",
        "isPrimary": false,
        "kitInfo": [
          {
            "bin": "608040",
            "cardCategory": "DEBIT",
            "cardNumber": "608040XXXXXX5750",
            "cardStatus": "INACTIVE",
            "cardType": "VIRTUAL",
            "createdDate": "2023-12-19T08:21:11.901+00:00",
            "entityId": "req11",
            "expDate": "2029-07-31T00:00:00.000+00:00",
            "kitNo": "4240171532",
            "networkType": "RUPAY",
            "productId": "2003_VIRTUAL",
            "productName": "2003_VIRTUAL"
          }
        ]
      }
    ]
  },
  "exception": null,
  "pagination": null
}