# Messages Services

These endpoints are for receiving and processing messages. It is highly recommended to read [Messaging Pattern](/home/connect/fundamentals/messaging.md) first.

{% hint style="info" %}
Recently we have introduced a list of V2 services - currently these can be used for LHV UK messages only. For customers using LHV UK host also to use the services of LHV EE we recommend using the older non-V2 services. V2 services can still be used and could be useful for advanced testing or problem solving purposes.
{% endhint %}

## Services

[Get next message](/home/connect/services/messages/get-next-message.md)

[Get list of messages](/home/connect/services/messages/get-list-of-messages.md)

[Get list of messages V2](/home/connect/services/messages/get-list-of-messages-1.md)

[Get message by response ID](/home/connect/services/messages/get-specific-message.md)

[Get list of requests](/home/connect/services/messages/get-list-of-requests.md)

[Get request by request ID](/home/connect/services/messages/get-request-by-request-id.md)

[Count number of messages](/home/connect/services/messages/count-number-of-messages.md)

[Mark message as processed](/home/connect/services/messages/mark-message-as-processed.md)

[Mark batch of messages as processed](/home/connect/services/messages/mark-batch-of-messages-as-processed.md)

[Mark batch of messages as processed V2](/home/connect/services/messages/mark-batch-of-messages-as-processed-1.md)

[Messages Metadata](/home/connect/services/messages/messages-metadata.md)

[Get compressed message for testing](/home/connect/services/messages/get-next-message-1.md)

## Message Types

The messages provided in any of the Messages Services cover a range of different business services and products. You can see these types in different places like:

* **messageResponseType** field in Json format, for example [Get list of messages](/home/connect/services/messages/get-list-of-messages.md)
* **Message-Response-Type** HTTP header, for example [Get next message](/home/connect/services/messages/get-next-message.md)
* **messageType** field in Webhooks services - [Webhook Format and Processing](/home/connect/services/webhooks/introduction-and-payload-format.md)

List of Message Types:

<table><thead><tr><th width="410">Type</th><th>Description</th></tr></thead><tbody><tr><td>HEARTBEAT</td><td><a data-mention href="/pages/Avq0dXVTj0YPJPIqWivW">/pages/Avq0dXVTj0YPJPIqWivW</a></td></tr><tr><td></td><td><em>Account Information Services</em></td></tr><tr><td>ACCOUNT_BALANCE</td><td><a data-mention href="/pages/ySpEGFhaBxxq0q7g2lWr">/pages/ySpEGFhaBxxq0q7g2lWr</a></td></tr><tr><td>ACCOUNT_STATEMENT</td><td><a data-mention href="/pages/G5QAj0DHQkUnPnyyY2xu">/pages/G5QAj0DHQkUnPnyyY2xu</a></td></tr><tr><td>CREDIT_DEBIT_NOTIFICATION</td><td><a data-mention href="/pages/HBt7DL80zOAE6HTVdKPi">/pages/HBt7DL80zOAE6HTVdKPi</a></td></tr><tr><td>BACS_INCOMING</td><td><a data-mention href="/pages/sgbAqsVue1A7zCvGnS2N">/pages/sgbAqsVue1A7zCvGnS2N</a></td></tr><tr><td></td><td><em>Payment Initiation Services</em></td></tr><tr><td>PAYMENT</td><td><a data-mention href="/pages/M9gH5dOX1IHv5rNOrt1J#payment-initiation-response-message">/pages/M9gH5dOX1IHv5rNOrt1J#payment-initiation-response-message</a></td></tr><tr><td></td><td><em>Viban Services</em></td></tr><tr><td>VIBAN_OPEN</td><td><a data-mention href="/pages/fRQKObFOoTeAXmJL6air">/pages/fRQKObFOoTeAXmJL6air</a></td></tr><tr><td>VIBAN_BULK</td><td><a data-mention href="/pages/TUV1DaUV6FBJSOx0XCsR">/pages/TUV1DaUV6FBJSOx0XCsR</a></td></tr><tr><td>VIBAN_MODIFY</td><td><a data-mention href="/pages/EF8Yc7ODPMXqqgNiyg2I">/pages/EF8Yc7ODPMXqqgNiyg2I</a></td></tr><tr><td>VIBAN_INFO</td><td><a data-mention href="/pages/dFFfKm1DXi4LNmiCrMoZ">/pages/dFFfKm1DXi4LNmiCrMoZ</a></td></tr><tr><td>VIBAN_CLOSE</td><td><a data-mention href="/pages/9wr8IvdJ2g4ut5nxf7a8">/pages/9wr8IvdJ2g4ut5nxf7a8</a></td></tr><tr><td>VIBAN_STATUS_NOTIFICATION</td><td><a data-mention href="/pages/OTENwqkn3if8PBSwUlKI">/pages/OTENwqkn3if8PBSwUlKI</a></td></tr><tr><td></td><td><em>Indirect Scheme Access</em></td></tr><tr><td>AGENT_ACCOUNT_SYNC</td><td><a data-mention href="/pages/pY2oq25LrrQ5Q4sMUnGt">/pages/pY2oq25LrrQ5Q4sMUnGt</a></td></tr><tr><td>AGENT_REPORT</td><td><a data-mention href="/pages/YGx6iZ6R524OSdE0I6Yl">/pages/YGx6iZ6R524OSdE0I6Yl</a></td></tr><tr><td></td><td><em>Payment Collection Services</em></td></tr><tr><td>DIRECT_DEBIT_MANDATE_INITIATION</td><td><a data-mention href="/pages/oZ12BomNbLbV3stkJwol">/pages/oZ12BomNbLbV3stkJwol</a></td></tr><tr><td>DIRECT_DEBIT_MANDATE_CONFIRM</td><td><a data-mention href="/pages/HDMBY1pquheWISvW3OEZ">/pages/HDMBY1pquheWISvW3OEZ</a></td></tr><tr><td>DIRECT_DEBIT_MANDATE_CANCEL</td><td><a data-mention href="/pages/0na3Vcjc5T9watS8mr8P">/pages/0na3Vcjc5T9watS8mr8P</a></td></tr><tr><td>DIRECT_DEBIT_COLLECTION_NOTIFICATION</td><td><a data-mention href="/pages/zflp1dbSMiRSxIA0YPPn">/pages/zflp1dbSMiRSxIA0YPPn</a></td></tr><tr><td>DIRECT_DEBIT_COLLECTION_CONFIRMATION</td><td><a data-mention href="/pages/dpdf4Q8RphOYCVwnBFJ0">/pages/dpdf4Q8RphOYCVwnBFJ0</a></td></tr><tr><td>DIRECT_DEBIT_REVERSAL_NOTIFICATION</td><td><a data-mention href="/pages/HB1hToGmgapDputHGOO5">/pages/HB1hToGmgapDputHGOO5</a></td></tr><tr><td></td><td><em>Conformation of Payee Services</em></td></tr><tr><td>CONFIRMATION_OF_PAYEE</td><td><a data-mention href="/pages/zbHlOB73qB9qjm4oWHgi#response">/pages/zbHlOB73qB9qjm4oWHgi#response</a></td></tr><tr><td>CONFIRMATION_OF_PAYEE_INCOMING</td><td><a data-mention href="/pages/Q8jwufLLfqDXjXEVdlXr">/pages/Q8jwufLLfqDXjXEVdlXr</a></td></tr><tr><td></td><td></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lhv.com/home/connect/services/messages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
