---
title: "Generates Statements In Supported Formats Based On Request Parameters."
method: POST
path: "/gw/api/v1/statements"
tags: ["accountManagementReports"]
---

# Generates Statements In Supported Formats Based On Request Parameters.

`POST /gw/api/v1/statements`

<br>**Scope**: `statements.read` OR `statements.write` OR `reports.write`<br>**Security Policy**: `Signed JWT`

## Headers

- `authorization` string, required

## Request body

- StmtRequest
  - `accountId` string, required — account id
  - `accountIds` string[] — array of account id's
  - `startDate` string, required — from date
  - `endDate` string, required — to date
  - `multiAccountFormat` string — possible values are consolidate, concatenate, or customConsolidate
  - `cryptoConsolIfAvailable` boolean — crypto consolidate flag, If request contains any accounts with crypto segment, will turn request into Crypto Consolidated
  - `mimeType` string — output format
  - `language` string — two character ISO language code
  - `gzip` boolean — to gzip the whole response pass true

## Response `200`

Returns a JSON object containing the relevant statement.

- GetStatementsResponse
  - `data` GetStatementsResponseData
    - `dataType` string — the data type of the value after decoding
    - `encoding` string — encoding used for the value
    - `value` string — Base 64 encoded String of byte[]. Byte[] represents compressed data when gzip is true
    - `mimeType` string — mimeType of document after decoding and serializing the value
    - `gzip` boolean — content encoding flag. Represents whether the response is compressed
    - `accept` string — specify response media types that are acceptable

## Other responses

- `400` — Returns a Problem detail instance representing a bad request.
- `401` — Returns a Problem detail instance representing an unauthorized request.
- `402` — Returns a Problem detail instance representing an unauthorized request.
- `403` — Returns a Problem detail instance representing a forbidden request.
- `500` — Returns a Problem detail instance representing an internal server error.

---

[API](https://skmtc.net/interactivebrokers/apis/api-reference.md) · [All operations](https://skmtc.net/interactivebrokers/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/interactivebrokers/api-reference/revisions/67f9f562c2c6/schema)
