Load Market
Concepts

Tracking lifecycle

Three ways a tracking starts

KindWhenStarting statusdriverHasApp
RegularThe phone number belongs to a Load Market driver app userrequest - "Pending driver's approval"true
Pending installationThe driver does not have the app yetrequest - "Pending installation"false
ScheduledYou sent schedule instead of expDatescheduled - "Scheduled tracking"depends on the phone
  • Regular: the driver gets a push notification and accepts (active) or rejects (cancel).
  • Pending installation: the driver gets an SMS invitation to install the app. When they install it and sign in with that phone number, the tracking becomes regular (status request) with the same trackingId. Until then there is no position, no publicLink and no webhook. A pending installation tracking item the driver never accepts is removed by the server after its tracking time runs out, and it never appears in history.
  • Scheduled: nothing happens until schedule.start. Then the driver is invited and the tracking continues as regular or pending installation. It expires at schedule.end.

The status.value of a pending installation tracking is request, the same as a regular one - tell them apart with driverHasApp (false means pending installation), not with status.description.

stop-tracking does not apply to pending installation or scheduled tracking items (it answers TRACKING_NOT_FOUND) - use delete-tracking to remove them.

A tracking can also follow the truck's ELD instead of, or together with, the driver's phone (trackingSource eld or hybrid). It starts as requestEld, or scheduledEld with a schedule, and waits for the carrier's approval - see ELD and Hybrid tracking.

Status values

status is always an object: { "value": "active", "description": "Active" }. Branch on value. The description is the text shown in the Load Market web app.

New status values may be added over time. Handle an unknown value gracefully and show status.description.

valuedescriptionMeaning
requestPending driver's approvalThe driver has the app and has not answered yet
requestPending installationThe driver has not installed the app yet
scheduledScheduled trackingWaiting for schedule.start
activeActiveThe driver shares the location
stopPaused by the driverThe driver paused sharing in the app
cancelRejected by driverThe driver declined the request
doneTracking finishedStopped with stop-tracking or in the Load Market web app, or expired

ELD and Hybrid statuses

ELD and Hybrid tracking items have statuses of their own. See ELD and Hybrid tracking for how they change.

valuedescriptionMeaning
requestEldPending ELD admin approvalWaiting for the carrier (a hybrid also for the driver)
scheduledEldScheduled ELDWaiting for schedule.start
activeEldActive ELDThe location is shared
stopEldPaused by the driver (ELD continuing)Hybrid: the driver paused the phone, the truck's ELD keeps reporting
cancelEldRejected by ELD adminThe carrier refused (a hybrid once the driver declined too)
doneEldELD tracking finishedStopped with stop-tracking or in the Load Market web app, or expired

Derived statuses

These can replace active while the condition lasts and switch back to active on their own. Only one status is reported at a time. They never replace activeEld.

valuedescriptionAppears when
notMovingNot movingThe tracking is active, but the truck has not been moving for a while
waitingWaiting for an updateThe tracking is active, but no new position has arrived for a while, for example because the phone is offline or has no coverage
settingsOne of: "Driver's device is in Power Save mode, this might disable GPS tracking." / "Driver's location permission is not set to ALWAYS." / "Driver's location accuracy is not set to PRECISE."The tracking is active, but a phone setting on the driver's device, such as power-save mode, location permission or precise location, may stop tracking. A location permission or precise-location issue is no longer reported once live positions from the driver's phone show that the setting was turned back on, until the phone reports its settings again

These two can appear while the tracking is request, active, stop or stopEld:

valuedescriptionAppears when
noAccountThe driver deleted accountThe driver deleted the Load Market account
uninstallAccountThe driver uninstalled the appThe driver removed the app and has not reinstalled it

After noAccount or uninstallAccount the tracking sends no more webhooks. Ask the driver to reinstall and create a new tracking.

Transitions

pending in the diagram is status request with driverHasApp: false (description "Pending installation"). The ELD and Hybrid transitions are on ELD and Hybrid tracking.

Each transition the driver, the carrier or the schedule makes is also a webhook event: driver.installed (pending to request), tracking.started (schedule.start), driver.accepted, driver.rejected, driver.paused, driver.resumed and tracking.finished.

Driver position

driverCoords is filled only while the tracking is live: stored status active or stop (the derived notMoving, waiting and settings come from active, so they carry a position too), or activeEld or stopEld for ELD and Hybrid. It is null for request, cancel, done, pending installation and scheduled tracking items, and for requestEld, scheduledEld, cancelEld and doneEld - on get-tracking, in webhooks and in list items. History items always have driverCoords: null.

The reason: positions are stored per driver, not per tracking. Outside the live window the driver's newest position can belong to another load. For the same reason driverCoords of a mobile tracking stays null after the driver accepts, until the phone sends its first position for this tracking.

Potential Fraud Alerts (fraudAlerts) follow the same window for the same reason: they describe the driver's phone, not one load.

Expiration and history

  • Every tracking has an expiration date (expDate, or schedule.end), at most 10 days after it starts. When the tracking time runs out, the server finishes the tracking item automatically.
  • done and doneEld tracking items are listed by GET /get-all-tracking-items?type=history and stay readable with get-tracking. History keeps finished tracking items for a limited time only, so sync what you need regularly - see Daily history sync.
  • delete-tracking removes a tracking at any time.
Last modified on