post
https://api.cloud.mbanq.com/v1/generatestatements
Use this API to generate a PDF statement for a savings account over a specified date range. Statement generation is asynchronous — the response returns a jobId that you can use to track the progress.
How It Works
Statement generation follows a three-step process:
- Generate — Call this API to trigger statement generation. A
jobIdis returned with statusACCEPTED. - Check Status — Poll
GET /v1/runreports/jobHistory/{jobId}to check when the job is complete. - Download — Once complete, use the Get Account Document Details API to retrieve the
documentId, then download the PDF using the document download endpoint.
Request Body Fields
| Field | Description |
|---|---|
reportName | The name of the report template to use (e.g., Report current and saving account(Pentaho)). |
parentEntityType | The entity type. Use savings for savings accounts. |
parentEntityId | The ID of the savings account to generate the statement for. |
reportType | Output format. Use PDF. |
docType | Document type. Use statement. |
params.start_date | Start date of the statement period (format: YYYY-MM-DD). |
params.end_date | End date of the statement period (format: YYYY-MM-DD). |
params.saving_no | The savings account number (same as parentEntityId). |
For a full walkthrough, see: Account Statement Guide
