Logo
DeltaTrak API Documentation

Get End Date

GET {{baseUrl}}/shipment/:tripNumber/readings?end_date=2023-01-24 21:00

Gets the sensor data recorded for the requested Shipment ID

■ Returns device reading array for single shipment
■ Includes separate array of maritime/sea-rates vessel geo-locations, if exists

 

Body PARAM

Key Datatype Required Description 
qty
number Amount of readings to receive. Default is 15. (Optional)
start_date
string Get readings starting with the specified date in UTC (Optional)
end_date
string Get readings up to specifie date in UTC (Optional)



HEADERS

Key Datatype Required Description 
Authorization
string




RESPONSES

status OK

[ { "date": "2022-11-17T17:56:14.659Z", "temperature": 36, "temperature2": 45, "light": 8, "vibration": null, "latitude": 42.90774795939508, "longitude": -71.1848831176758 }, { "date": "2022-11-17T17:54:38.785Z", "temperature": 28, "temperature2": 37, "light": 4, "vibration": 4, "latitude": 39.35124862285102, "longitude": -75.5632781982422 } ]

Curl
curl -X GET 'https://axeecknwif.execute-api.us-east-1.amazonaws.com/prod//shipment/:tripNumber/readings?end_date=2023-01-24 21:00?qty=15&start_date=2022-11-21 11:00&end_date=2023-01-24 21:00' -H 'Authorization: eyJhbGciOiJub25lIn0.eyJvcmdhbml6YXRpb25JRCI6IjYzNzY0ZjI2MGU0MzM2MDAxMWJlMDFmNSIsInVzZXJJRCI6IjYzOTc3ZTdkYmEyOWY1MDAxODcxN2ZjOCIsImlhdCI6MTY3NTI4MDU3NSwiaXNzIjoidXJuOmZsYXNodHJhazppc3N1ZXIiLCJhdWQiOiJ1cm46dXNlcjphdWRpZW5jZSIsImV4cCI6MTk5MDg1NjU3NX0.'

ENDPOINTS