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.

⚠️ 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

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 for details on compression.

Request

GET https://connect.prelive.lhv.com//messages/test/next

Path parameters

Name
Value
Description

mockLargeMessage

boolean

If set to true, the response will contain a large mock message for testing purposes.

Headers

Name
Value
Description

Accept-Encoding

gzip, deflate, br

Common compression encoding header

Body

-

Response

Headers

Name
Value
Description

Content-Type

application/xml

Format of the message body

X-Bank-Code

LHVUK

LHV Bank entity

Content-Encoding

gzip

Indicating the message is compressed

Body

<?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

Last updated

Was this helpful?