LogoLogo
Connect
Connect
  • 🏡Welcome to LHV Connect API
  • 📺News and Updates
    • 📈Performance and Stats
    • 🔔Notice of Change
  • 🧭Quick Start Guide
  • 🎥Connect Fundamentals
    • Authentication and Certificates
    • Environments
    • Messaging Pattern
    • Service Provider model
    • Technical limitations
    • Encoding and Languages
    • Response Compression
    • Dates and Time Zones
    • Response Codes and Error handling
    • Onboarding
    • Live Proving
    • LHV UK and Estonia integrations
    • FAQ and Tips
  • 📖Service Catalogue
    • 💚Heartbeat
      • Heartbeat - GET
      • Heartbeat Advanced - GET
    • 📩Messages Services
      • Get next message
      • Get list of messages
      • Get list of messages V2
      • Get message by response ID
      • Count number of messages
      • Mark message as processed
      • Mark batch of messages as processed
      • Mark batch of messages as processed V2
      • Messages Metadata
      • Get compressed message for testing
    • 💰Account Information Services
      • Account Balance
      • Account Statement
      • Transaction Notification
        • Incoming Bacs Credit Notification
    • 💸Payment Initiation Services
      • Pain.001.001.09
      • Pain.002.001.10
      • Samples
      • Authentication methods
      • Payment Scheme Selection
      • Payment Return Initiation
      • Payments Service Idempotency
      • Payments Originating Overseas
      • Legacy documents
        • pain.001.001.03 format
    • ✅Confirmation of Payee Services
      • Confirmation of Payee - Requester
      • Confirmation of Payee - Responder
    • 😶‍🌫️VIBAN Services
      • VIBAN Open
      • VIBAN Bulk Open
      • VIBAN Modify
      • VIBAN Info
      • VIBAN Close
      • VIBAN Notification
    • 🔗Indirect Scheme Access
      • Agency Account Synchronization
      • RTF - Routing Table Files message
      • 🧾Payment Collection Services
        • 💷Bacs Direct Debit
          • Bacs Direct Debit Mandate Initiation Request
          • Bacs Direct Debit Mandate Initiation Response
          • Bacs Direct Debit Mandate Initiation Response Confirmation
          • Bacs Direct Debit Mandate Cancellation Request
          • Bacs Direct Debit Mandate Cancellation Response
          • Direct Debit Incoming Collection Notification Request
          • Direct Debit Collection Notification Response
          • Direct Debit Collection Notification Response Confirmation
          • Direct Debit Reversal Notification Request
          • Examples
    • 📨Webhooks
      • Webhook Format and Processing
      • Managing Webhook Configurations
      • Webhook Security
      • Webhook Metadata
      • Full Bodied Webhooks
  • 🗓️Reference
    • Glossary
    • Code Reference Tables
      • Balance Type Codes
      • Credit and Debit Transaction Codes
      • Payment Scheme Codes
      • Direct Debit Scheme Codes
      • Payment Reject Codes
      • Payment Return Codes
      • Bacs Direct Debit Mandate Reject Codes
      • Bacs Direct Debit Reject Codes
      • Bacs Direct Debit Reversal Reason
      • Bank Transaction Codes
      • Transaction Purpose Codes
      • Category Purpose Codes
      • Private Person Identification Codes
      • Organisation Identification Type Codes
      • Payment Priority Codes
      • Charges Bearer Codes
  • ☎️Support
    • Contact
Powered by GitBook
On this page
  • Service description
  • Request
  • Response

Was this helpful?

  1. Service Catalogue
  2. Messages Services

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

OK

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

PreviousMessages MetadataNextAccount Information Services

Last updated 1 day ago

Was this helpful?

📖
📩