Account Statement API
Welcome to the documentation for the Account Statement API. This API allows users to fetch their account statements within a specified date range.
Base URL
The base URL for this API is {baseURL}/v1/transaction/get_account_statement
.
Endpoint
- Path:
/:account_number
- Method: GET
Authorization
Include the following Authorization header in your HTTP requests using a Bearer token:
Authorization: Bearer YOUR_ACCESS_TOKEN
Query Parameters
fromDate
: The start date of the statement period (format: YYYY-MM-DD).toDate
: The end date of the statement period (format: YYYY-MM-DD).isPdf
: (Optional) Specifies whether the response should be in PDF format. Default isfalse
.
Sample Request
curl -X GET '{baseURL}/v1/transaction/get_account_statement/:account_number?fromDate=2022-03-01&toDate=2024-02-07&isPdf=false' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
-H 'accept: application/json' \
Sample 200 Response
{
"message": "Account statement fetched successfully",
"data": {
"IsSuccessful": true,
"CustomerIDInString": null,
"Message": "<table style='width:600px;'><tr><td style='width:344px;'><img alt='Logo' src='http://52.168.85.231/ManagedServices/Images/Institutions/cache/2.jpg'/></td><td align='middle'><table><tr><td align='middle'>GROOMING MICROFINANCE BANK</td></tr><tr><td align='middle' style='font-size: 12px;'>Lagos</td></tr></table></td></tr></table><br><table style='border:solid 0px #000;font-size: 10.5px;width:100%;font-family: Verdana;'><tr><td valign='top' align='left'><table style='border:solid 0px #000;font-size: 10.5px;font-family: Verdana;'><tr><td>Jolaoso </td></tr><tr><td></td></tr><tr><td></td></tr><tr><td></td></tr></table></td><td nowrap='true' align='right'><table align='right' border='0'style='border:solid 0px #000;font-size: 10.5px;font-family: Verdana;' ><td nowrap='true' colspan='3' style='background-color: #333333; color: #FFFFFF' align='left'>STATEMENT</td></tr><tr><td nowrap='true' align='left'>Statement Period</td><td align='right' colspan='2'>01-Mar-2022 To 07-Feb-2024</td></tr><tr><td nowrap='true' align='left'>Account Number</td><td align='right' colspan='2'>00510011011003213</td></tr><tr><td nowrap='true' align='left'>NUBAN</td><td align='right' colspan='2'>1200032132</td></tr><tr><td nowrap='true' align='left'>Product Name</td><td align='right' colspan='2'>MINT SAVINGS ACCOUNT</td></tr><tr><td nowrap='true' align='left'>Opening Balance</td><td>-</td><td align='right'>1,000,000.00</td></tr><tr><td nowrap='true' align='left' style='text-align: left'>Total Debit Amount</td><td>-</td><td align='right'>35.60</td></tr><tr><td nowrap='true' align='left'>Total Credit Amount</td><td>-</td><td align='right'>1,000,000.00</td></tr><tr><td nowrap='true' valign='top' align='left'>Closing Balance</td><td>-</td><td align='right'>1,000,000.00</td></tr></table></td></tr></table><br><table cellspacing = '4' cellpadding ='5' style='border:solid 0px #000;width:100%;font-size: 10.5px;font-family: Verdana;'><tr><th style='border:solid 0px #000;' align='left'>Transaction Date</th><th style='border:solid 0px #000;' align='left'>Value Date</th><th style='border:solid 0px #000;' width='500px' align='left'>Narration</th><th style='border:solid 0px #000;' align='middle'>Debit</th><th style='border:solid 0px #000;' align='middle'>Credit</th><th style='border:solid 0px #000;' align='middle'>Balance</th></tr><tr><td nowrap='true' style='border:solid 0px #000;' align='left' >12-Dec-2023</td><td nowrap='true' style='border:solid 0px #000;' align='left' >07-Sep-2020</td><td nowrap='true' style='border:solid 0px #000;' align='left' width='500px'>test in</td><td nowrap='true' style='border:solid 0px #000;' align='right' ></td><td nowrap='true' style='border:solid 0px #000;' align='right' >1,000,000.00</td><td nowrap='true' style='border:solid 0px #000;' align='right' >1,000,000.00</td></tr><tr><td nowrap='true' style='border:solid 0px #000;' align='left' >24-Dec-2023</td><td nowrap='true' style='border:solid 0px #000;' align='left' >07-Sep-2020</td><td nowrap='true' style='border:solid 0px #000;' align='left' width='500px'>this is a test transfer</td><td nowrap='true' style='border:solid 0px #000;' align='right' >35.60</td><td nowrap='true' style='border:solid 0px #000;' align='right' ></td><td nowrap='true' style='border:solid 0px #000;' align='right' >999,964.40</td></tr></table><br><br>",
"TransactionTrackingRef": null,
"Page": null
},
"success": true
}