v1
latestOpenAPI 3.1.02026-07-2418201.6 MBAccount Statement
This API helps you fetch the list of transactions against a Ledger account
get/v2/ledger/journal/{journal_urn}/account/{account_urn}/statement
Path parameters
journal_urnstring required
Journal URN under which the ledger account was created
account_urnstring required
Ledger Account URN received from Decentro during the time of creating a ledger account
pageinteger required
Number of pages of the statement required. Each page supports upto 10 transactions
Query parameters
fromstring date required
Start date for the statement
tostring date required
End date for the statement
Headers
client_idstring required
Decentro assigned client_id for the company
client_secretstring required
Decentro assigned client_secret for the company
module_secretstring required
Decentro assigned module_secret for the company
Response
200
Example response
{
"decentroTxnId": "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEF",
"status": "SUCCESS",
"responseCode": "S00000",
"message": "Transaction successful",
"data": {
"transactionStatus": "SUCCESS",
"transactionDescription": "Ledger account statement fetched successfully",
"count": {
"total": 2,
"credit": 1,
"debit": 1
},
"statement": [
{
"creationTimestamp": "2022-06-06 21:21:21",
"transactionTimestamp": "2022-06-06 21:21:21",
"lastModificationTimestamp": "2022-06-06 22:22:22",
"purpose": "load ledger account - 2021_08_14T07_01_01",
"transactionUrn": "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEF",
"referenceId": "transaction_1",
"type": "DEBIT",
"amount": 2.5,
"currency": "INR",
"openingBalance": 40.5,
"closingBalance": 42.5,
"payerLedgerAccountUrn": "LA0001",
"payeeLedgerAccountUrn": "LA0002",
"transactionType": "MAIN",
"transferType": "L2L",
"status": "SUCCESS",
"additionalParameters": {
"parameter1": "value1",
"parameter2": "value2"
}
}
]
}
}