> For the complete documentation index, see [llms.txt](https://docs.lhv.com/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lhv.com/home/connect/services/messages/get-next-message-1.md).

# Get compressed message for testing

## Service description

This endpoint is designed to allow clients to verify that their systems can handle very large XML message responses (over 10MB uncompressed). It allows testing the compression quickly without the extra effort that would need executing a huge amount of payments to include in an actual Account Statement.

{% hint style="info" %}
⚠️ This endpoint is only available for testing purposes and currently only in Prelive environment.

Final url to call should be GET <https://connect.prelive.lhv.com/messages/test/next?mockLargeMessage=true>
{% endhint %}

With `mockLargeMessage` parameter enabled, the response will contain a mock account statement (CAMT.053) with **dummy transactions**, resulting in an **uncompressed payload of approximately 10.6MB**.

See [Response Compression](https://docs.lhv.com/home/connect/fundamentals/response-compression.md) for details on compression.

## Request <a href="#virtual-iban-open" id="virtual-iban-open"></a>

<mark style="color:green;">`GET`</mark> <https://connect.prelive.lhv.com//messages/test/next>

#### **Path parameters**

<table><thead><tr><th width="213">Name</th><th width="181">Value</th><th>Description</th></tr></thead><tbody><tr><td>mockLargeMessage</td><td>boolean</td><td>If set to <code>true</code>, the response will contain a large mock message for testing purposes.</td></tr></tbody></table>

#### **Headers**

<table><thead><tr><th width="213">Name</th><th width="181">Value</th><th>Description</th></tr></thead><tbody><tr><td>Accept-Encoding</td><td>gzip, deflate, br</td><td>Common compression encoding header</td></tr></tbody></table>

#### **Body**

\-

### **Response**

**Headers**

<table><thead><tr><th width="241">Name</th><th width="186">Value</th><th>Description</th></tr></thead><tbody><tr><td>Content-Type</td><td><code>application/xml</code></td><td>Format of the message body</td></tr><tr><td>X-Bank-Code</td><td><code>LHVUK</code></td><td>LHV Bank entity</td></tr><tr><td>Content-Encoding</td><td>gzip</td><td>Indicating the message is compressed</td></tr></tbody></table>

#### Body

{% tabs %}
{% tab title="200 - next message" %}
{% hint style="success" %}
OK
{% endhint %}

```xml
<?xml version="1.0" encoding="UTF-8"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.053.001.02">
    <BkToCstmrStmt>
        <GrpHdr>
            <MsgId>STATEMENT20250501</MsgId>
            <CreDtTm>2025-05-02T08:00:00</CreDtTm>
        </GrpHdr>
        <Stmt>
            <Id>EE1234567890-20250501</Id>
            <CreDtTm>2025-05-02T08:00:00</CreDtTm>
            <FrToDt>
                <FrDtTm>2025-05-01T00:00:00</FrDtTm>
                <ToDtTm>2025-05-01T23:59:59</ToDtTm>
            </FrToDt>
            <Acct>
                <Id>
                    <IBAN>EE123456789012345678</IBAN>
                </Id>
                <Ccy>EUR</Ccy>
            </Acct>
        ...
        // list of transactions
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lhv.com/home/connect/services/messages/get-next-message-1.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
