m2pfintech

Fetch Transactions By Entity ID Between Dates

Fetches paginated transactions for a given entity ID between specified date ranges. Returns a list of TransactionBalanceDto objects containing transaction details and wallet balance snapshot.

GET
/statement/txn-manager/fetchTnxByEntityIdBetween/{entityId}

Path Parameters

entityId*string

Entity ID passed as path variable

Query Parameters

fromDate*string

Start date for the transaction range (format: yyyy-MM-dd)

Match^\d{4}-\d{2}-\d{2}$
toDate*string

End date for the transaction range (format: yyyy-MM-dd)

Match^\d{4}-\d{2}-\d{2}$
pageNumber?integer

Page number for pagination, defaults to 0

Default0
pageSize?integer

Page size for pagination, defaults to 20

Default20

Header Parameters

TENANT*string

Tenant identifier

Content-Type*string

Content type of the request

Default"application/json"

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.m2pfintech.com/statement/txn-manager/fetchTnxByEntityIdBetween/string?fromDate=string&toDate=string" \  -H "TENANT: string" \  -H "Content-Type: application/json"
{
  "result": [
    {
      "transaction": {
        "amount": 2500,
        "balance": 147500,
        "transactionType": "DEBIT",
        "time": "2026-06-20T14:30:00Z",
        "description": "Swiggy Order",
        "txRef": 10001234,
        "txnOrigin": "ECOM",
        "transactionStatus": "SUCCESS",
        "kitNo": "180010188"
      },
      "balance": {
        "entityId": "CUST20260617001",
        "balance": "147500.00",
        "currencyCode": "INR"
      }
    }
  ],
  "exception": null,
  "pagination": {
    "pageNo": 0,
    "pageSize": 20,
    "totalElements": 1,
    "totalPages": 1
  }
}
{
  "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
}