> 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/lhv-uk-and-estonia-integrations.md). Agents can also search and read this documentation through its [MCP server](https://docs.lhv.com/home/~gitbook/mcp).

# LHV UK and Estonia integrations

Describing the integrations and details related to LHV UK and LHV Estonia services

Use your UK Connect connection to access services provided by LHV Bank Limited (LHV UK) and LHV Bank AS (LHV EE).

The services and accounts available to your integration depend on your Connect agreement and configuration. UK and EE services can differ in their request formats, response formats, and processing rules.

### Access and connection

Follow [Onboarding](https://docs.lhv.com/home/connect/fundamentals/authentication) to arrange access and confirm which UK and EE services your integration will use.

Use the sandbox or production connection details provided during onboarding. For certificate setup and server certificate verification, see [Authentication and Certificates](https://docs.lhv.com/home/connect/fundamentals/lhv-certificates).

This portal documents the UK Connect interface and UK services. For EE service specifications, refer to the [LHV EE Connect documentation](https://partners.lhv.ee/en/connect).

### How requests are routed

UK Connect normally determines whether a request should be processed by LHV UK or LHV EE from the request content, typically the account details.

Where the processing entity cannot be determined from the content alone, an explicit routing instruction may be needed. This can apply to certain Agency Banking requests.

#### Specify the processing entity

Use the optional `X-Bank-Code` request header to select the processing entity:

```
X-Bank-Code: LHVUK
```

or:

```
X-Bank-Code: LHVEE
```

When supplied, this header takes precedence over routing derived from the request content. Follow the relevant service specification when deciding whether to include it.

Selecting an entity does not grant access to additional services or accounts. Access remains subject to your Connect agreement and configuration.

### Identify the responding entity

Bank codes identify the entity associated with a response or message:

| Value   | Entity           |
| ------- | ---------------- |
| `LHVUK` | LHV Bank Limited |
| `LHVEE` | LHV Bank AS      |

Depending on the service, this information appears in the `X-Bank-Code` response header or a `bankCode` field in the message or webhook payload.

### EE integration options

UK Connect supports different arrangements for accessing EE messages. Confirm which setup is included in your Connect agreement before configuring message retrieval or webhook subscriptions.

#### Enhanced UK and EE integration

The enhanced integration is a separate item in the Connect agreement.

With this integration enabled, EE-originating messages are stored in UK Connect. Clients can subscribe to notifications for those messages through the UK webhook subscription services.

A message’s origin remains LHV EE even when it is stored in UK Connect. Use the bank code provided by the relevant message or webhook format to identify its origin.

Contact your client relationship manager to arrange access to this integration.

#### Earlier integration

Clients using the earlier integration access EE services through UK Connect, with EE messages retrieved from Connect EE through the existing integration.

EE webhook subscriptions use separate EE subscription services. These services can be accessed through the UK host using:

```
X-Bank-Code: LHVEE
```

Webhook notifications for this setup are delivered by Connect EE. Subscription endpoints, payload formats, and supported options differ from UK webhooks.

See [Managing Webhook Configurations](https://docs.lhv.com/home/connect/services/webhooks/managing-webhook-configurations) and the [EE webhook specification](https://partners.lhv.ee/en/connect/#webhooks) for the applicable instructions

### Service-specific differences

#### Payment files

Submit payments from UK and EE accounts in separate requests. Do not combine payments from both entities in one payment initiation file.

A mixed file is routed according to its first payment block and account. Payments belonging to the other entity are rejected.

Accessing both entities through one connection does not remove this restriction.

#### Dates and times

Timestamp formats can differ between services, entities, and fields. A timestamp in a message envelope may use a different format from a timestamp inside the business XML.

| Area                           | Format considerations                                                                                         |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------- |
| UK timestamps                  | Include a UTC offset where specified, such as `+00:00` or `+01:00`.                                           |
| EE message-envelope timestamps | Can include an offset even when timestamps inside the associated business XML do not.                         |
| EE business XML timestamps     | Some services return timestamps without an offset. Follow the service specification for their interpretation. |
| Fractional seconds             | Precision varies by service and field. Do not assume that every timestamp has exactly three decimal places.   |

Use the supplied offset when interpreting an offset-bearing timestamp. UK and Estonian UTC offsets change with daylight saving time.

For timestamps without an offset, follow the applicable service’s timezone rules.

#### Agency account synchronisation

Agency accounts can be synchronised to LHV UK, LHV EE, or both, depending on the client’s configuration.

See [Agency Account Synchronization](https://partners.lhv.ee/en/connect/#agency-account-synchronization) for bank-code options and request details.

### Historical migration information

On 22 August 2023, UK payment accounts and their related services migrated from LHV Bank AS to LHV Bank Limited.

UK accounts and related services are accessed through UK Connect. The EE Connect host does not provide access to UK accounts.

For current connection requirements, follow the onboarding and service documentation linked above. Review [News and Updates](https://docs.lhv.com/home/connect/news-and-updates) for changes relevant to your integration.


---

# 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/lhv-uk-and-estonia-integrations.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.
