Load Market
Load Market Tracking API

Drive a test tracking through its lifecycle. Works only with a TEST partner key.


Simulate a driver event

POST
https://api.load-market.com/v1
/test/simulate
x-api-key (header)

Moves a test tracking through its lifecycle as if a real driver did it, then sends one signed webhook for the new state to the webhook URL configured on your TEST key. The response tells you what your endpoint answered.

Works only with a TEST key (a live key gets 403 TEST_MODE_ONLY). Use the same test key that created the tracking.

EventAllowed fromResult
driver.installedpending installation, or scheduled whose driver has no apprequest (driver has the app now). On a scheduled tracking driverHasApp becomes true and the status stays scheduled
driver.acceptedrequestactive
driver.rejectedrequestcancel
locationactiveactive with the new driverCoords (requires coords)
driver.pausedactivestop
driver.resumedstopactive
tracking.finishedactive, stopdone
webhook.pinganyunchanged - resends the current state
driver.flaggedany, except pending installation and scheduledunchanged status. Raises the Potential Fraud Alerts listed in alerts on the simulated driver's phone (an empty list clears them). They show in fraudAlerts while the tracking is active or stop, for an organization on a PRO or VIP plan

ELD and Hybrid test tracking items add the carrier's side (the Start, Stop and Cancel links of the carrier's approval email):

EventAllowed fromResult
carrier.approvedrequestEld waiting for the carrier, scheduledEld, or a hybrid in the driver's app the carrier has not approved (also after carrier.rejected)activeEld (the truck's ELD starts reporting). On scheduledEld the approval is recorded and the status stays until schedule.start, then becomes activeEld. On a hybrid the driver already moved, the status stays
carrier.pausedapproved by the carrierunchanged status - the truck's ELD stops reporting
carrier.resumedpaused by the carrierunchanged status - the truck's ELD reports again
carrier.rejectedany, until the tracking is finished (not twice in a row)ELD only: cancelEld. Hybrid: only the ELD part ends and the status stays, unless the driver declined too (cancelEld)
driver.installedhybrid whose driver has no appdriverHasApp becomes true. A pending one moves into the driver's app with status requestEld, one the carrier already started keeps its status
driver.acceptedhybrid in the driver's app, requestEld or activeEldactiveEld (the phone reports too)
driver.rejectedhybrid in the driver's app, not acceptedunchanged status, or cancelEld when the carrier already cancelled
driver.pausedhybrid activeEld the driver acceptedstopEld - the truck's ELD keeps reporting
driver.resumedstopEldactiveEld
locationactiveEld, or a hybrid stopEldthe new driverCoords. A fix from the truck's ELD (no live phone) has battery, accuracy and locationSource null
tracking.finishedactiveEld, stopElddoneEld
driver.flaggedhybrid in the driver's appas above - only while the driver has accepted the tracking

A scheduled ELD or Hybrid test tracking that the carrier did not approve by schedule.start becomes requestEld (a hybrid also loses its schedule). The carrier.* events answer 400 TEST_EVENT_INVALID on a phone-only test tracking.

An event that is not allowed from the current status returns 400 TEST_EVENT_INVALID.

Simulate a driver event › Request Body

trackingId
​string · required

A tracking created with the same TEST key.

Example: api-test-Zr8pL3nW6yQ1cV5kT9xB
event
​string · enum · required

The carrier.* events apply to ELD and Hybrid test tracking items only. See the transition tables of POST /test/simulate.

Enum values:
driver.installed
driver.accepted
driver.rejected
location
driver.paused
driver.resumed
tracking.finished
webhook.ping

New driver position. Required when event is location, ignored otherwise.

alerts
​string[]

Required when event is driver.flagged, ignored otherwise. The Potential Fraud Alerts codes to raise on the simulated driver's phone. An empty list clears them.

Enum values:
jailbrokenDevice
emulator
vpn
ipOutsideUsCa
gpsOutsideUsCa
Example: ["vpn","ipOutsideUsCa"]

Simulate a driver event › Responses

Event applied. webhook reports the delivery to your test webhook URL.

message
​string · required
​required

The tracking after the event.

​WebhookEvent[] · required

The webhook event the simulated event stands for - the same type - as the webhook item carries it. Empty for location, webhook.ping and driver.flagged, which change only the snapshot.

​WebhookDeliveryResult · required

Outcome of the single webhook attempt made for this simulated event.