> 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/fundamentals/faq-and-tips.md).

# FAQ and Tips

Practical guidance for receiving messages, handling responses, and recovering from interrupted requests.

### Why do I keep receiving the same message?

The inbox-style `GET /messages/next` service returns the oldest unprocessed message. Until that message is marked as processed, it can be returned again.

After successfully processing a message, use the applicable operation to mark it as processed.

Repeated delivery can also occur if your system processes a message but the acknowledgement fails. Ensure your integration recognises messages it has already handled and avoids repeating business actions.

See [Messaging Pattern](https://docs.lhv.com/home/connect/fundamentals/messaging) for processing and acknowledgement guidance.

### Can multiple workers retrieve messages?

Concurrency behaviour depends on the endpoint you use.

You can submit requests from multiple threads, but multiple workers calling the inbox-style `GET /messages/next` endpoint can receive the same oldest unprocessed message. Do not assume that concurrent calls distribute different messages between workers.

Coordinate retrieval and processing, and follow the behaviour documented for your selected [Messages Services](https://docs.lhv.com/home/connect/services/messages) endpoint.

### How should I check for new messages?

You can retrieve messages through Messages Services or configure webhooks to notify your integration when messages become available.

Webhooks reduce the need for repeated polling. Depending on the subscription configuration, a notification can include the full message body or identify a message that you retrieve separately.

See [Webhooks](https://docs.lhv.com/home/connect/services/webhooks) for setup and processing guidance.

#### If you use inbox polling

Retrieve and process available messages without adding an unnecessary delay between each message, while respecting applicable request limits.

When `GET /messages/next` returns HTTP `204 No Content`, there are no messages available from that endpoint at that time. Wait before checking again, choosing an interval appropriate to your operational needs and the service guidance.

Use this processing sequence:

1. Retrieve the next message.
2. If the response is `204`, wait before checking again.
3. If retrieval fails, follow the applicable error and retry guidance.
4. If a message is returned, process it safely.
5. Mark it as processed after successful processing.
6. Continue retrieving available messages within applicable limits.

Arrange message handling around your service needs.

### Is the next message the response to my latest request?

Not necessarily. The next available message can relate to an earlier request or an independently generated event, such as a transaction notification.

Inspect the message type and identifiers to determine how it should be handled. Use the request ID, where applicable, to associate a response with its originating request.

One request can also produce several response messages, such as successive payment status updates.

### Does HTTP `202 Accepted` mean my payment succeeded?

No. It confirms acceptance of the request for processing, not successful completion of the payment.

Read the subsequent business status messages and their explanations. Handle rejection statuses such as `RJCT`, and use the payment service specification to determine the payment’s outcome.

### What should I do if a request times out?

A timeout does not establish whether Connect received the request.

Retain the original request details and investigate its outcome. Where idempotency is supported and you supplied a key, reuse the same endpoint, payload, and key when retrying within the guaranteed duplicate-detection window.

Do not generate a new key simply because the original response was lost. A new key can allow a separate submission of the same business operation.

See [Messaging Pattern](https://docs.lhv.com/home/connect/fundamentals/messaging) for retry and reconciliation guidance.

### What does an idempotency-key error mean?

The `X-Idempotency-Key` header is optional. When supplied:

| Response                           | Meaning                                                                                                          |
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| HTTP `400 Bad Request` for the key | The value is not a valid UUID.                                                                                   |
| HTTP `409 Conflict` for the key    | The authenticated user has already used that key. Uniqueness is checked across endpoints, regardless of payload. |

A duplicate-key response does not confirm that the underlying banking operation succeeded. Establish the original request’s outcome from its response messages and processing status.

Duplicate detection is guaranteed for 24 hours. This is not an expiry time: after that period, the request may still be rejected or may be accepted and processed again.

See [Messaging Pattern](https://docs.lhv.com/home/connect/fundamentals/messaging) for the full rules.

### Can I receive EE messages through UK webhooks?

With the enhanced UK and EE integration included in your Connect agreement, EE-originating messages are stored in UK Connect and can be subscribed to through UK webhook subscription services.

Other integration setups use separate EE subscription services, which can also be accessed through the UK host.

See [Accessing UK and EE services through UK Connect](https://docs.lhv.com/home/connect/fundamentals/lhv-uk-and-estonia-integrations) for the differences between these setups.

### Where can I check service availability?

Visit the [LHV Status Page](https://status.lhv.ee/) for information and announcements about service availability and interruptions.

If you need support with a specific request, provide the relevant request and response identifiers, timestamp, environment, and error details. Do not include private keys.


---

# 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/fundamentals/faq-and-tips.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.
