Generate Account Statement

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:

  1. Generate — Call this API to trigger statement generation. A jobId is returned with status ACCEPTED.
  2. Check Status — Poll GET /v1/runreports/jobHistory/{jobId} to check when the job is complete.
  3. 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

FieldDescription
reportNameThe name of the report template to use (e.g., Report current and saving account(Pentaho)).
parentEntityTypeThe entity type. Use savings for savings accounts.
parentEntityIdThe ID of the savings account to generate the statement for.
reportTypeOutput format. Use PDF.
docTypeDocument type. Use statement.
params.start_dateStart date of the statement period (format: YYYY-MM-DD).
params.end_dateEnd date of the statement period (format: YYYY-MM-DD).
params.saving_noThe savings account number (same as parentEntityId).

For a full walkthrough, see: Account Statement Guide

Body Params
string
required
Defaults to Report current and saving account(Pentaho)

The Report Name which is used for generating the statement. Pattern: '^[a-zA-Z]+$' Example: 'Report current and saving account(Pentaho)'

string
required
Defaults to savings

The statement is generated for a specific entity type. Allowed values are. 1. clients 2. loans 3. savings 4. client_identifiers 5. creditcards Example: clients`

integer
required
Defaults to 1

The Id of the parent entity type. Pattern: '^\d+$' Example: 2

string
enum
required
Defaults to PDF

Specifies the desired format for the generated report. Default Values are in the dropdown.

Allowed:
string
required
Defaults to statement

The type of the document. Example: statement

params
object
required
Headers
string
required
Defaults to z01j3e71zd6zkq908vyf5861a8

The ID of your banking instance visible in the MBANQ Console.

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json