Download Account Statement

Use this API to download a document (such as a statement PDF) associated with a specific savings account. This is the final step in the statement generation workflow.

Prerequisites

  • Pass the savingsAccountId as a path parameter.
  • Pass the documentId as a path parameter. Use the Get Account Documents Details endpoint to retrieve the documentId for the generated statement.

Example Request

GET /v1/savingsaccounts/{savingsAccountId}/documents/{documentId}/attachment

Response Format

The response is a binary file stream (application/octet-stream), not a JSON body. Use the response headers to handle the file correctly:

HeaderDescription
Content-DispositionContains the suggested filename (e.g., attachment; filename="statement.pdf").
Content-TypeThe MIME type of the file (e.g., application/pdf).

Statement Generation Workflow

This endpoint is the last step of a three-step process:

  1. Generate Account Statement — trigger the statement job and receive a jobId.
  2. Get Job History — poll the job status and retrieve the documentId on completion.
  3. Get Account Documents Details — retrieve document metadata to confirm the documentId.
  4. Download Account Statement (this endpoint) — download the file using the documentId.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required
Defaults to 12

The Id associated with the account
Example: 12

integer
required
Defaults to 45ac4379-7185-471b-a103-916d25dc648d

The id associated with the document. This is a UUID parameter
Example : 45ac4379-7185-471b-a103-916d25dc648d

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/octet-stream
application/json