Get list of messages V2

Service description

Version 2 of the Get list of messages service differs by supporting pagination.

V2 version supports only LHV UK messages where x-bank-code = LHVUK. It does not include the messages from LHV EE where x-bank-code = LHVEE.

With these limitations the service could be more suitable for specific use cases like integrations testing and problem solving.

Request

GET https://connect.lhv.com/v2/messages

Parameters

NameValueDescription

pageSize

integer

Number of messages to return on one page

pageNumber

integer

Page number

includeProcessed

true/false

Optional. Also includes messages that are already processed by the Customer

responseType

string

Optional. Filter specific service messages. The value can be any Message-Response-Type (e.g., ACCOUNT_STATEMENT, CREDIT_DEBIT_NOTIFICATION, PAYMENT). Similar to Filter-Response-Type header for V1 service.

serviceProvider

true/false

Optional. Filter only Service Provider messages. Similar to Filter-Service-Provider header for V1 service.

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-CodeA

Body

JSon with a list of messages metadata - type, timing, reference ID's.

Response

Headers

NameValueDescription

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

Body

OK

{
    "pageNumber": 1,
    "pageSize": 100,
    "totalPages": 2,
    "totalElements": 109,
    "messages": [
        {
            "messageResponseId": "RES27dc481c24af499d8cab27ec8099a4d2",
            "messageRequestId": "REQ06d2e575a6c94061b7235ca160350680",
            "messageResponseType": "ACCOUNT_STATEMENT",
            "clientCode": "123123123",
            "clientCountry": "GB",
            "messageCreatedTime": "2024-05-23T16:51:30.939+01:00",
            "bankCode": "LHVUK"
        },
        {
            "messageResponseId": "RESc8ea0a0a395c4f19b4eab32e8a8c0b04",
            "messageResponseType": "CREDIT_DEBIT_NOTIFICATION",
            "clientCode": "123123123",
            "clientCountry": "GB",
            "messageCreatedTime": "2024-05-23T16:54:13.477+01:00",
            "bankCode": "LHVUK"
        },
		....
        {
            "messageResponseId": "RESdf66d9bf1142439388f7ce47d3a02505",
            "messageRequestId": "REQb6057056347e47ef96729d76f265b292",
            "messageResponseType": "PAYMENT",
            "clientCode": "123123123",
            "clientCountry": "GB",
            "messageCreatedTime": "2024-05-24T07:42:07.538+01:00",
            "bankCode": "LHVUK"
        }
    ]
}

Last updated