# Heartbeat Advanced - GET

## Service description

Connectivity testing service similar to [](https://docs.lhv.com/home/connect/services/heartbeat "mention"), but will create a response message in the queue that can be read as described in [messaging](https://docs.lhv.com/home/connect/fundamentals/messaging "mention") 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](https://docs.lhv.com/home/connect/services/messages "mention")

### 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 %}
