# 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 "mention") 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 %}
