POST api/packcenter/getmessages
Get tracking messages for PC placements with possiblity to filter by datetime and defining limit and offset of answer
Request Information
URI Parameters
None.
Body Parameters
Get Messages Request parameters
GetMessagesRequestName | Description | Type | Additional information |
---|---|---|---|
PlacementIds |
Entity Code |
Collection of globally unique identifier |
None. |
From |
Business Unit Id |
date |
None. |
To |
Device Assignment Id |
date |
None. |
Limit |
Limit response message count |
integer |
None. |
Offset |
Offset for response answer |
integer |
None. |
Ids |
List id of Tracking Messages |
Collection of globally unique identifier |
None. |
Last |
Last row only |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "PlacementIds": [ "cc51cb28-8aa0-4359-b10a-fc8619b1f9bb", "4f23daa1-bc13-437b-a473-389cc5237704" ], "From": "2025-04-03T04:45:57.9756485+02:00", "To": "2025-04-03T04:45:57.9756485+02:00", "Limit": 1, "Offset": 2, "Ids": [ "6738bd6b-53d0-4146-9595-c33c44b8be3e", "0d1dbddb-1a53-4306-bf12-96be72f192c7" ], "Last": true }
application/xml, text/xml
Sample:
<GetMessagesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Deufol.CPCNL.API.Classes"> <From>2025-04-03T04:45:57.9756485+02:00</From> <Ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>6738bd6b-53d0-4146-9595-c33c44b8be3e</d2p1:guid> <d2p1:guid>0d1dbddb-1a53-4306-bf12-96be72f192c7</d2p1:guid> </Ids> <Last>true</Last> <Limit>1</Limit> <Offset>2</Offset> <PlacementIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>cc51cb28-8aa0-4359-b10a-fc8619b1f9bb</d2p1:guid> <d2p1:guid>4f23daa1-bc13-437b-a473-389cc5237704</d2p1:guid> </PlacementIds> <To>2025-04-03T04:45:57.9756485+02:00</To> </GetMessagesRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TrackingMessageApiModelName | Description | Type | Additional information |
---|---|---|---|
RecordCount | integer |
None. |
|
Limit | integer |
None. |
|
Offset | integer |
None. |
|
Data | Collection of TrackingMessageApiRecord |
None. |
Response Formats
application/json, text/json
Sample:
{ "RecordCount": 1, "Limit": 2, "Offset": 3, "Data": [ { "Id": "ea8406e0-6956-406e-8319-b1add93ef03c", "DevicePlacementId": "cc6c8df3-90f1-4a8a-a14b-899dae035ad2", "DevicePlacementName": "sample string 3", "DeviceCode": "sample string 4", "RecordDateTime": "2025-04-03T04:45:57.9912821+02:00", "Temperature": 6, "Humidity": 7, "Pressure": 8, "AccelerationX": 9.1, "AccelerationY": 10.1, "AccelerationZ": 11.1, "Latitude": 12.1, "Longitude": 13.1, "BateryStatus": 14.1, "LightSensor": 15.1 }, { "Id": "ea8406e0-6956-406e-8319-b1add93ef03c", "DevicePlacementId": "cc6c8df3-90f1-4a8a-a14b-899dae035ad2", "DevicePlacementName": "sample string 3", "DeviceCode": "sample string 4", "RecordDateTime": "2025-04-03T04:45:57.9912821+02:00", "Temperature": 6, "Humidity": 7, "Pressure": 8, "AccelerationX": 9.1, "AccelerationY": 10.1, "AccelerationZ": 11.1, "Latitude": 12.1, "Longitude": 13.1, "BateryStatus": 14.1, "LightSensor": 15.1 } ] }
application/xml, text/xml
Sample:
<TrackingMessageApiModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Deufol.CPCNL.BLL.Models.ApiModels"> <Data> <TrackingMessageApiRecord> <AccelerationX>9.1</AccelerationX> <AccelerationY>10.1</AccelerationY> <AccelerationZ>11.1</AccelerationZ> <BateryStatus>14.1</BateryStatus> <DeviceCode>sample string 4</DeviceCode> <DevicePlacementId>cc6c8df3-90f1-4a8a-a14b-899dae035ad2</DevicePlacementId> <DevicePlacementName>sample string 3</DevicePlacementName> <Humidity>7</Humidity> <Id>ea8406e0-6956-406e-8319-b1add93ef03c</Id> <Latitude>12.1</Latitude> <LightSensor>15.1</LightSensor> <Longitude>13.1</Longitude> <Pressure>8</Pressure> <RecordDateTime>2025-04-03T04:45:57.9912821+02:00</RecordDateTime> <Temperature>6</Temperature> </TrackingMessageApiRecord> <TrackingMessageApiRecord> <AccelerationX>9.1</AccelerationX> <AccelerationY>10.1</AccelerationY> <AccelerationZ>11.1</AccelerationZ> <BateryStatus>14.1</BateryStatus> <DeviceCode>sample string 4</DeviceCode> <DevicePlacementId>cc6c8df3-90f1-4a8a-a14b-899dae035ad2</DevicePlacementId> <DevicePlacementName>sample string 3</DevicePlacementName> <Humidity>7</Humidity> <Id>ea8406e0-6956-406e-8319-b1add93ef03c</Id> <Latitude>12.1</Latitude> <LightSensor>15.1</LightSensor> <Longitude>13.1</Longitude> <Pressure>8</Pressure> <RecordDateTime>2025-04-03T04:45:57.9912821+02:00</RecordDateTime> <Temperature>6</Temperature> </TrackingMessageApiRecord> </Data> <Limit>2</Limit> <Offset>3</Offset> <RecordCount>1</RecordCount> </TrackingMessageApiModel>