Logo
DeltaTrak API Documentation

Send Readings

POST {{baseUrl}}/account/:accountID/shipment/:tripNumber/data

Send readings to the shipment.

■ t1, t2, vibration, light, location and co2 are all optional parameters.

■ proccess parameter is true by default. If sent as false, it will turn off alarms for the readings.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
authorization
string (Required)




RESPONSES

status OK

{ "message": "4 Data Added" }



Curl
curl -X POST 'https://axeecknwif.execute-api.us-east-1.amazonaws.com/prod//account/:accountID/shipment/:tripNumber/data' -H 'authorization: token' -d '{"t1":[{"reading":"2022-10-18T18:32:00","received":"2022-10-18T18:44:11Z","value":23},{"reading":"2022-10-18T18:37:00","received":"2022-10-18T18:44:11Z","value":23},{"reading":"2022-10-18T18:42:00","received":"2022-10-18T18:44:11Z","value":24}],"location":[{"reading":"2022-10-18T18:42:00","received":"2022-10-18T18:44:11Z","lat":37.6509977,"long":-121.0301494}],"process":true}'

ENDPOINTS