GET api/customers/{customerId}/messages?pageSize={pageSize}&page={page}
Get the messages which have been sent to a customer (for all his meters).
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerId |
Customer ID |
string |
Required |
| pageSize |
Page size |
integer |
Default value is 10 |
| page |
Page number to get given the page size. |
integer |
Default value is 1 |
Body Parameters
None.
Response Information
Resource Description
Collection of MessageResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| State | MessageState |
None. |
|
| Category | MessageCategory |
None. |
|
| Priority | MessagePriority |
None. |
|
| Channel | CommunicationType |
None. |
|
| SentDateTime | date |
None. |
|
| Body | string |
None. |
|
| Id | integer |
None. |
|
| StateChanged | date |
None. |
|
| MeterId | string |
None. |
|
| Subject | string |
None. |
|
| Severity | MessagePriority |
None. |
|
| Text | string |
None. |
|
| CommunicationChannel | CommunicationType |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"State": 0,
"Category": 0,
"Priority": 0,
"Channel": 0,
"SentDateTime": "2025-12-26T06:31:29.6075256+00:00",
"Body": "sample string 2",
"Id": 3,
"StateChanged": "2025-12-26T06:31:29.6075256+00:00",
"MeterId": "sample string 4",
"Subject": "sample string 5",
"Severity": 0,
"Text": "sample string 6",
"CommunicationChannel": 0
},
{
"State": 0,
"Category": 0,
"Priority": 0,
"Channel": 0,
"SentDateTime": "2025-12-26T06:31:29.6075256+00:00",
"Body": "sample string 2",
"Id": 3,
"StateChanged": "2025-12-26T06:31:29.6075256+00:00",
"MeterId": "sample string 4",
"Subject": "sample string 5",
"Severity": 0,
"Text": "sample string 6",
"CommunicationChannel": 0
}
]
text/html
Sample:
[{"State":0,"Category":0,"Priority":0,"Channel":0,"SentDateTime":"2025-12-26T06:31:29.6075256+00:00","Body":"sample string 2","Id":3,"StateChanged":"2025-12-26T06:31:29.6075256+00:00","MeterId":"sample string 4","Subject":"sample string 5","Severity":0,"Text":"sample string 6","CommunicationChannel":0},{"State":0,"Category":0,"Priority":0,"Channel":0,"SentDateTime":"2025-12-26T06:31:29.6075256+00:00","Body":"sample string 2","Id":3,"StateChanged":"2025-12-26T06:31:29.6075256+00:00","MeterId":"sample string 4","Subject":"sample string 5","Severity":0,"Text":"sample string 6","CommunicationChannel":0}]