Get list of messages
Last updated
Last updated
Use this service to get a list of pending messages. You can use this service to request a number of messages at the same time and actually process them in separate threads.
Use in combination with Mark batch of messages as processed
Use additional filters where needed.
By default 10 messages are returned. The optional limit parameter changes this. See parameters section.
Messages are ordered starting from the oldest.
The same header values are accepted as for GET /messages/next
service - including Filter-Response-Type
and Service Provider options.
GET
https://connect.lhv.com/messages
Name | Value | Description |
---|---|---|
Name | Value | Description |
---|---|---|
JSon with a list of messages metadata - type, timing, reference ID's.
Headers
OK
Name | Value | Description |
---|---|---|
Limit
integer
Number of messages to return.
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-CodeA
Filter-Service-Provider
true / false or 1/0
Add this optional header to select service provider messages only when using Service Provider own value for Client-Code. Values: 1/true (filter is on) or 0/false (filter is off). This can be used by service providers to select only their own company messages in the queue. By default when Client-Code is the service provider itself, it returns the messages of all customers. Has no effect when Client-Code is not service provider.
Filter-Response-Type
CREDIT_DEBIT_NOTIFICATION, PAYMENT etc.
Add this optional header to filter specific service messages. The value can be any Message-Response-Type (e.g., ACCOUNT_STATEMENT, CREDIT_DEBIT_NOTIFICATION, PAYMENT). Using this parameter enables parallel processing of payment responses and debit-credit notifications separately. This allows immediate consumption of payment responses, even if there are thousands of pending notifications in the queue.
Content-Type
application/json
Format of the message body
X-Bank-Code
LHVUK, LHVEE
LHV Bank entity
Client-Code
customer value
When using service provider model - customer entity related to the message
Client-Country
customer value
When using service provider model - customer entity related to the message