Mark batch of messages as processed V2

Service description

The V2 version of this endpoint allows you to manage the processed state of each message, enabling "undeleting." To delete a message, set messageProcessed to true.

Successful call returns a 204 NO CONTENT status.

Messages older than a week marked as processed may be permanently archived. In such cases, undeleting is not possible.

Request

PATCH https://connect.lhv.com/v2/messages/processed

Headers

NameValueDescription

Client-Code

customer value

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.

Client-Country

customer value

For Service Providers only. Should match the value of Client-Code

Body

JSon array

List of message Id's and new statuses

{
	"messages": [
		{
			"messageProcessed": false,
			"messageResponseId": "RES8ab5c77b6dc64dcb8adcf345bcb7284c"
		},
        {
			"messageProcessed": false,
			"messageResponseId": "RES16052c3eecc147a2b4a64043b45cd0da"
		},
        {
			"messageProcessed": false,
			"messageResponseId": "RESad774a99f69e4509a1227013fa372851"
		}
	]
}

Response

Headers

NameValueDescription

X-Bank-Code

LHVUK, LHVEE

LHV Bank entity

Body

OK

Statuses updated

No body

Last updated