Version 4.0.0 of project44's API
Version 4.0.0 of project44's API
The Asset Tracking API offers users a way to enroll an asset for tracking, and conversely, to unenroll an asset from tracking. Prior to enrolling an asset, users must have an endpoint configured to receive the asset location data.
Information about the location of the asset will be pushed to the enrollee until the asset is un-enrolled from tracking. The payload can be JSON or XML, e.g.,
{ "webhookName": "KBX001", "equipmentIdentifier": {"type": "RAIL_CAR_ID", "value": "ABCD1234567"}, "expirationDateTime": "2019-05-01T00:00:00-05:00" }OR
<AssetTrackingSubscription> <webhookName>KBX001</webhookName> <equipmentIdentifier> <type>RAIL_CAR_ID</type> <value>ABCD1234567</value> </equipmentIdentifier> <expirationDateTime>2019-05-01T00:00:00-05:00</expirationDateTime> </AssetTrackingSubscription>
The call will return with an HTTP 200 status if enrollment is successful. Otherwise, it will return an appropriate HTTP error status code and error message.
subscription
Optional time to stop tracking as asset. This is a date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as 2019-12-03T10:15:30+01:00. If not provided, it will be set to six months from the enrollment time.
curl -i -X POST \ https://developers.project44.com/_mock/guides/shippers/visibility/rail/api/api/v4/assets/tracking \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "equipmentIdentifier": { "type": "CONTAINER_ID", "value": "string" }, "expirationDateTime": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "webhookName": "string" }'
Unenroll an asset from tracking. Information about the location of the asset will no longer be pushed. Required Query Parameters
The call will return with an HTTP 200 status if unenrollment is successful. Otherwise, it will return an appropriate HTTP error status code and error message.
curl -i -X DELETE \ 'https://developers.project44.com/_mock/guides/shippers/visibility/rail/api/api/v4/assets/tracking?equipmentIdentifier.type=string&equipmentIdentifier.value=string' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'