# Heartbeat Advanced - GET

## Service description

Connectivity testing service similar to [Heartbeat](/home/connect/services/heartbeat.md), but will create a response message in the queue that can be read as described in [Messaging Pattern](/home/connect/fundamentals/messaging.md) The response will also contain additional certificate and entity information about the current authenticated user.

## Request <a href="#virtual-iban-open" id="virtual-iban-open"></a>

<mark style="color:green;">`GET`</mark> <https://connect.lhv.com/heartbeat/mq>

#### **Headers**

<table><thead><tr><th width="359">Name</th><th>Value</th></tr></thead><tbody><tr><td>Content-Type</td><td><code>application/xml</code></td></tr><tr><td>Client-Code</td><td><code>customer value</code></td></tr><tr><td>Client-Country</td><td><code>customer value</code></td></tr></tbody></table>

#### **Body**

**-**

### **Response**

**Headers**

<table><thead><tr><th width="274">Name</th><th>Value</th></tr></thead><tbody><tr><td>Content-Type</td><td><code>application/xml</code></td></tr><tr><td>X-Bank-Code</td><td><code>LHVUK, LHVEE</code></td></tr></tbody></table>

#### Body

{% tabs %}
{% tab title="202" %}
{% hint style="success" %}
Accepted
{% endhint %}

```
(no body)
```

{% endtab %}

{% tab title="403" %}
{% hint style="danger" %}
Error code and description
{% endhint %}

<pre><code>&#x3C;Errors>
<strong>    &#x3C;Error>
</strong>        &#x3C;ErrorCode>FORBIDDEN&#x3C;/ErrorCode>
        &#x3C;Description>User doesn't exist&#x3C;/Description>
    &#x3C;/Error>
&#x3C;/Errors>
</code></pre>

{% endtab %}
{% endtabs %}

## Response message

Response message is created and can be requests by the Messages services - [Messages Services](/home/connect/services/messages.md)

### Body

XML

#### Samples

{% tabs %}
{% tab title="Entity and Certificate info" %}
Sample where customer has two active certificates

```xml
<HeartBeatResponse>
    <TimeStamp>2024-05-08T08:52:31.573+01:00</TimeStamp>
    <AuthorizedUser>
        <Name>LHV Bank Limited</Name>
        <Code>13180211</Code>
    </AuthorizedUser>
    <Certificates>
        <Certificate>
            <SerialNumber>10531234</SerialNumber>
            <ValidFrom>2023-07-03T08:26:47.000+00:00</ValidFrom>
            <ValidTo>2026-07-02T08:26:47.000+00:00</ValidTo>
        </Certificate>
        <Certificate>
            <SerialNumber>10535678</SerialNumber>
            <ValidFrom>2021-10-15T08:33:02.000+00:00</ValidFrom>
            <ValidTo>2024-10-14T08:33:02.000+00:00</ValidTo>
        </Certificate>
    </Certificates>
</HeartBeatResponse>

    
```

{% endtab %}
{% endtabs %}


---

# 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/heartbeat/heartbeat-advanced-get.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.
