Get Account Ledger
GET{baseUrl}/be/api/v1/account-ledger/{id}
Path Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | Integer | Yes | Account ID whose ledger is requested. |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| userId | Integer | No | Filter ledger entries by user ID. |
| startDate | String (ISO 8601) | No | Filter where date is ≥ this value. |
| endDate | String (ISO 8601) | No | Filter where date is ≤ this value. |
| transactionId | Integer | No | Filter by transaction ID. |
Response
| Field | Type | Description |
|---|---|---|
| id | Integer | Ledger row ID. |
| transactionId | Integer | Internal transaction ID. |
| transactionRefId | Number | Gateway/reference ID. |
| debit | Number | Debit amount. |
| credit | Number | Credit amount. |
| balance | Number | Running balance after the entry. |
| narration | String | Description of the entry. |
| date | String | Timestamp (ISO 8601). |
200 — SUCCESS
{
"data": [
{
"id": 80,
"transactionId": 81,
"transactionRefId": 13432435435242,
"debit": 0,
"credit": 10000.00000000,
"balance": 10658503.00000000,
"narration": "REFUND AMT 100.00 AED",
"date": "2024-10-03T07:23:15.928+00:00"
},
{
"id": 77,
"transactionId": 77,
"transactionRefId": 13432435435242,
"debit": 100.00000000,
"credit": 0,
"balance": 10648503.00000000,
"narration": "POS AT Sains Online PIN+Cashb - London, GBR CARD NO *2962 REF NO 8499816893999692000",
"date": "2024-10-03T07:23:02.284+00:00"
}
]
}