m2pfintech
API LibraryBalance And Transactions

Get transaction history for a card

Retrieve paginated transaction history for a specific card identified by kit number. Supports filtering by date range and transaction type.

Results are paginated with a default page size of 20 and maximum of 100 records per page. Page numbering starts at 0.

Each transaction record includes the transaction ID, external reference, type, amount, currency, balance after transaction, status, narration, and timestamp.

GET
/Yappay/transaction-manager/getTransaction/{kitNo}

Authorization

BearerAuth TenantHeader
AuthorizationBearer <token>

JWT Bearer token obtained from the /auth/login endpoint

In: header

TENANT<token>

Tenant identifier provided by M2P (e.g. ENBDTABBY)

In: header

Path Parameters

kitNo*string

Kit number of the card to fetch transaction history for

Query Parameters

pageNo?integer

Page number for pagination (zero-based, default is 0)

Default0
Range0 <= value
pageSize?integer

Number of results per page (default 20, maximum 100)

Default20
Range1 <= value <= 100
fromDate?string

Start date filter in YYYY-MM-DD format. Returns transactions from this date onwards.

Formatdate
toDate?string

End date filter in YYYY-MM-DD format. Returns transactions up to this date.

Formatdate
txnType?string

Filter by transaction type. If not provided, all types are returned.

Value in"CREDIT" | "DEBIT" | "REVERSAL"

Response Body

application/json

curl -X GET "https://api.m2p.com/Yappay/transaction-manager/getTransaction/KIT20260306001234?fromDate=2026-01-01&toDate=2026-03-31"

{
  "status": "success",
  "data": {
    "transactions": [
      {
        "transactionId": "TXN20260306001234",
        "externalTransactionId": "ACME-TXN-001",
        "type": "CREDIT",
        "amount": 5000,
        "currency": "INR",
        "balanceAfter": 20000,
        "status": "COMPLETED",
        "narration": "Salary credit",
        "date": "2026-03-06T10:30:00Z"
      },
      {
        "transactionId": "TXN20260306005678",
        "externalTransactionId": "ACME-TXN-002",
        "type": "DEBIT",
        "amount": 2500,
        "currency": "INR",
        "balanceAfter": 17500,
        "status": "COMPLETED",
        "narration": "Purchase at Amazon",
        "date": "2026-03-06T11:00:00Z"
      }
    ],
    "pagination": {
      "currentPage": 0,
      "totalPages": 5,
      "totalElements": 98,
      "pageSize": 20
    }
  }
}