LogoLogo
Connect
Connect
  • 🏡Welcome to LHV Connect API
  • 📺News and Updates
    • 📈Performance and Stats
    • 🔔Notice of Change
  • 🧭Quick Start Guide
  • 🎥Connect Fundamentals
    • Authentication and Certificates
    • Environments
    • Messaging Pattern
    • Service Provider model
    • Technical limitations
    • Encoding and Languages
    • Response Compression
    • Dates and Time Zones
    • Response Codes and Error handling
    • Onboarding
    • Live Proving
    • LHV UK and Estonia integrations
    • FAQ and Tips
  • 📖Service Catalogue
    • 💚Heartbeat
      • Heartbeat - GET
      • Heartbeat Advanced - GET
    • 📩Messages Services
      • Get next message
      • Get list of messages
      • Get list of messages V2
      • Get message by response ID
      • Count number of messages
      • Mark message as processed
      • Mark batch of messages as processed
      • Mark batch of messages as processed V2
      • Messages Metadata
      • Get compressed message for testing
    • 💰Account Information Services
      • Account Balance
      • Account Statement
      • Transaction Notification
        • Incoming Bacs Credit Notification
    • 💸Payment Initiation Services
      • Pain.001.001.09
      • Pain.002.001.10
      • Samples
      • Authentication methods
      • Payment Scheme Selection
      • Payment Return Initiation
      • Payments Service Idempotency
      • Payments Originating Overseas
      • Legacy documents
        • pain.001.001.03 format
    • ✅Confirmation of Payee Services
      • Confirmation of Payee - Requester
      • Confirmation of Payee - Responder
    • 😶‍🌫️VIBAN Services
      • VIBAN Open
      • VIBAN Bulk Open
      • VIBAN Modify
      • VIBAN Info
      • VIBAN Close
      • VIBAN Notification
    • 🔗Indirect Scheme Access
      • Agency Account Synchronization
      • RTF - Routing Table Files message
      • 🧾Payment Collection Services
        • 💷Bacs Direct Debit
          • Bacs Direct Debit Mandate Initiation Request
          • Bacs Direct Debit Mandate Initiation Response
          • Bacs Direct Debit Mandate Initiation Response Confirmation
          • Bacs Direct Debit Mandate Cancellation Request
          • Bacs Direct Debit Mandate Cancellation Response
          • Direct Debit Incoming Collection Notification Request
          • Direct Debit Collection Notification Response
          • Direct Debit Collection Notification Response Confirmation
          • Direct Debit Reversal Notification Request
          • Examples
    • 📨Webhooks
      • Webhook Format and Processing
      • Managing Webhook Configurations
      • Webhook Security
      • Webhook Metadata
      • Full Bodied Webhooks
  • 🗓️Reference
    • Glossary
    • Code Reference Tables
      • Balance Type Codes
      • Credit and Debit Transaction Codes
      • Payment Scheme Codes
      • Direct Debit Scheme Codes
      • Payment Reject Codes
      • Payment Return Codes
      • Bacs Direct Debit Mandate Reject Codes
      • Bacs Direct Debit Reject Codes
      • Bacs Direct Debit Reversal Reason
      • Bank Transaction Codes
      • Transaction Purpose Codes
      • Category Purpose Codes
      • Private Person Identification Codes
      • Organisation Identification Type Codes
      • Payment Priority Codes
      • Charges Bearer Codes
  • ☎️Support
    • Contact
Powered by GitBook
On this page
  • Service description
  • Request
  • Response

Was this helpful?

  1. Service Catalogue
  2. Messages Services

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

Name
Value
Description

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"
		}
	]
}

List of message Id's and new statuses

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

Response

Headers

Name
Value
Description

X-Bank-Code

LHVUK, LHVEE

LHV Bank entity

Body

OK

Statuses updated

No body

Bad request

No messages updated

{
    "errors": [
        {
            "errorCode": "BAD_REQUEST",
            "description": "Invalid Message-Request-Id: RES8ab5c77b6dc64dcb8adcf345bcb7284cx"
        }
    ]
}

Error code and description

<Errors>
    <Error>
        <ErrorCode>FORBIDDEN</ErrorCode>
        <Description>User doesn't exist</Description>
    </Error>
</Errors>

PreviousMark batch of messages as processedNextMessages Metadata

Last updated 10 months ago

Was this helpful?

📖
📩