The location history endpoint provides access to inbound updates for a specific load by using the loadNumber and version in your request. The history includes location updates from various sources, such as ELD integrations (if enabled for assets), manual Checkcalls, EDI & Visibility integrations, or updates from the driver app. These updates help track the load's location, detailing event types, timestamps, and asset information. For guidance on versioning and how to include it in your requests, visit the Versioning page.

Request Parameters

The following parameters are required in the URL:

ParameterTypeRequiredDescription
versionStringYesThe API version you are using (e.g., "v1").
loadNumberStringYesThe unique number assigned to the load for tracking purposes.

Example CURL Request

curl --location 'https://integrations.alvys.com/api/p/v1/visibility/inbound/12345/history' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Replace YOUR_ACCESS_TOKEN with your actual Bearer token and 12345 with the load number you wish to track.

Response Fields

The following fields are included in the response:

FieldTypeDescription
idStringThe unique identifier of the location update.
externalIdStringThe external ID related to the update.
tripNumberStringThe trip number linked to the load.
loadNumberStringThe load number for which the update is recorded.
eventTypeStringThe type of event, typically "Location".
sharedAtString (Date-Time)The date and time when the update was shared.
destinationStringThe destination of the load.
truckNumberStringThe number of the truck transporting the load.
driverNameStringThe name of the driver.
trailerNumberStringThe number of the trailer being used.
stopIdStringThe ID of the stop associated with the location update.
locationIdStringThe ID of the location where the update occurred.
sharedByStringThe entity (user or system) that shared the update.
reasonStringThe reason for the update, if provided. There is defined list on system, depending on integration. E.g.: "NA"- Normal Appointment.
addressObjectThe address details of the location update.
address.streetStringThe street of the location.
address.cityStringThe city of the location.
address.stateStringThe state of the location.
address.zipCodeStringThe postal code of the location.
coordinatesObjectThe geographic coordinates of the location.
coordinates.latitudeStringThe latitude of the location.
coordinates.longitudeStringThe longitude of the location.
statusStringThe status of the update (e.g., "Completed", "Failed").
errorStringAny error message, if the update could not be processed.

Example Response

[
  {
    "id": "9b834b4c77124b8f8f0d97b56b7dabc4",
    "externalId": "EXT-001",
    "tripNumber": "TRIP12345",
    "loadNumber": "LOAD12345",
    "eventType": "Location",
    "sharedAt": "2024-11-11T15:02:49.233Z",
    "destination": "Los Angeles, CA",
    "truckNumber": "TRK98765",
    "driverName": "John Doe",
    "trailerNumber": "TRL12345",
    "stopId": "STOP001",
    "locationId": "LOC001",
    "sharedBy": "TMS System",
    "reason": "NA",//Normal Appointment
    "address": {
      "street": "123 Main St",
      "city": "Los Angeles",
      "state": "CA",
      "zipCode": "90001"
    },
    "coordinates": {
      "latitude": "34.052235",
      "longitude": "-118.243683"
    },
    "status": "Completed",
    "error": ""
  }
]

Rate Limits

All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information on rate limits, please refer to the Rate Limits section.

This page is interactive, allowing you to try a request by completing the fields for the parameters below. As you fill out the parameters, the CURL command on the right side of the page will be automatically updated. Alternatively, you can fork our Public API Postman Collection directly. Make sure to authorize yourself before trying a request.

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!