# Heartbeat - GET

## Service description

This service tests if the general API connection is active and if the connection certificate is correctly configured. It also returns the current system time.

When using Service Provider model you must also provide Client-Code and Client-Country headers - you can use this to validate if expected entity is valid.

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

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

#### **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="200" %}
{% hint style="success" %}
OK
{% endhint %}

```
<HeartBeatResponse>
    <TimeStamp>2024-05-08T08:51:48.279+01:00</TimeStamp>
</HeartBeatResponse>
```

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