m2pfintech

Fetch transactions for an entity between two dates

Retrieves a paginated list of transactions for a given entityId between the specified fromDate and toDate. Returns each transaction along with the wallet balance snapshot at that point. The controller is in credit-service (TransactionController, base path: txn-manager).

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

Path Parameters

entityId*string

The entity (account) ID for which transactions are fetched

Query Parameters

fromDate*string

Start date in yyyy-MM-dd format

Formatdate
toDate*string

End date in yyyy-MM-dd format

Formatdate
pageNumber?integer

Zero-based page index (default: 0)

Default0
Range0 <= value
pageSize?integer

Number of records per page (default: 20)

Default20
Range1 <= value

Header Parameters

TENANT*string

Tenant identifier for multi-tenancy routing

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://uat-m2p-ccms.m2pfintech.com/Yappay/txn-manager/fetchTnxByEntityIdBetween/string?fromDate=2024-01-01&toDate=2024-01-31" \  -H "TENANT: string"
{
  "result": [
    {
      "txnId": "string",
      "entityId": "string",
      "transactionDate": "2019-08-24T14:15:22Z",
      "amount": 0.1,
      "currency": "INR",
      "transactionType": "string",
      "description": "string",
      "balanceAfterTransaction": 0.1,
      "referenceNo": "string",
      "status": "string"
    }
  ],
  "exception": {
    "code": "string",
    "message": "string",
    "details": "string"
  },
  "pagination": {
    "pageNo": 0,
    "pageSize": 20,
    "totalPages": 5,
    "totalElements": 100,
    "isList": true
  }
}
{
  "status": 400,
  "message": "Invalid request parameters",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "status": 400,
  "message": "Invalid request parameters",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "status": 400,
  "message": "Invalid request parameters",
  "timestamp": "2019-08-24T14:15:22Z"
}