Asset Tracking
Enroll an Asset for Tracking
Enroll an asset for tracking endpoint to start permanent tracking of all trips that happen until the asset is unsubscribed.
Requirements
You must have an endpoint configured to receive the asset location data prior to enrolling the asset. Information about the location of the asset will be pushed until the asset is un-enrolled from tracking. Find example payloads in the API Reference documentation.
- Equipment identifier (
CONTAINER_ID
,TRAILER_ID
,RAIL_CAR_ID
) - Webhook identifier
Workflow
- Prepare a
POST
request to /api/v4/assets/tracking.
{ "equipmentIdentifier": { "type": "CONTAINER_ID", "value": "string" }, "webhookName": "string" }
- Send the request.
Fields and Objects
Element | Description | Type | Notes |
---|---|---|---|
equipmentIdentifier | A list of the shipment's identifying information. | array of identifiers | |
equipmentIdentifier.type | The type of shipment identifier. | string | Valid values include: CONTAINER_ID , TRAILER_ID , RAIL_CAR_ID . |
equipmentIdentifier.value | The value of the shipment identifier. | string | |
webhookName | The ID of the registered webhook. | string | This is where the asset tracking information will be sent. |
Expected System Response
You have successfully enrolled the asset when you receive a 200 OK
response.
Errors
If there was a problem with your request, you will receive one of the following error codes
400 Invalid request
401 Invalid or missing credentials
403 User not authorized to perform this operation
See Error Response Codes in the Appendix for more information on the meaning of these error codes.
Unenroll an Assset
Unenroll an asset from tracking endpoint to stop tracking on a shipment. Information about the location of the asset will no longer be pushed.
Requirements
- Equipment identifier (
CONTAINER_ID
,TRAILER_ID
,RAIL_CAR_ID
)
Workflow
- Prepare a
DELETE
request to /api/v4/assets/tracking and include the equipment identifier information. - Send the request.
Fields and Objects
Element | Description | Type | Notes |
---|---|---|---|
equipmentIdentifier | A list of the shipment's identifying information. | array of identifiers | |
equipmentIdentifier.type | The type of shipment identifier. | string | Valid values include: CONTAINER_ID , TRAILER_ID , RAIL_CAR_ID . |
equipmentIdentifier.value | The value of the shipment identifier. | string |
Expected System Response
You have successfully unenrolled the asset when you receive a 200 OK
response.
Errors
If there was a problem with your request, you will receive one of the following error codes
400 Invalid request
401 Invalid or missing credentials
403 User not authorized to perform this operation
See Error Response Codes in the Appendix for more information on the meaning of these error codes.