# Mark message as processed

## Service description

Confirm successful reading and processing of one message by deleting it from your pending list. Use the service in combination with [get-next-message](https://docs.lhv.com/home/connect/services/messages/get-next-message "mention")

You can’t retrieve the next message until you confirm reading the previous one. Once a message is successfully deleted, you can access the next one. If the message is already deleted, never existed, or you lack access, a 404 error will be returned. Note: Unread messages older than 5 days are automatically scheduled for deletion.

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

<mark style="color:red;">`DELETE`</mark> <https://connect.lhv.com/messages/{messageResponseId}>

#### **Headers**

<table><thead><tr><th width="165">Name</th><th width="181">Value</th><th>Description</th></tr></thead><tbody><tr><td>Client-Code</td><td><code>customer value</code></td><td>For Service Providers only. Company registration code of the Service Provider or its customer. When using the Service Provider own value also related customers messages are returned by default - see also Filter-Service-Provider for more options.</td></tr><tr><td>Client-Country</td><td><code>customer value</code></td><td>For Service Providers only. Should match the value of Client-Code</td></tr></tbody></table>

#### **Body**

\-

### **Response**

**Headers**

<table><thead><tr><th width="241">Name</th><th width="186">Value</th><th>Description</th></tr></thead><tbody><tr><td>X-Bank-Code</td><td><code>LHVUK</code>, <code>LHVEE</code></td><td>LHV Bank entity</td></tr></tbody></table>

#### Body

{% tabs %}
{% tab title="200 - deleted" %}
{% hint style="success" %}
OK
{% endhint %}

```
No body
```

{% endtab %}

{% tab title="404 - no message" %}
{% hint style="info" %}
Not found
{% endhint %}

```json
{
    "errors": [
        {
            "errorCode": "NOT_FOUND",
            "description": "Requested resource not found"
        }
    ]
}
```

{% endtab %}

{% tab title="403 - error" %}
{% 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 %}
