Load Market
Concepts

Errors

Format

Every error response produced by the API has the same JSON body:

JSONCode
{ "message": "Driver phone number is not valid", "code": "DRIVER_PHONE_INVALID", "requestId": "9607f3c4-ecc9-4321-a3ff-e67040e85dfe" }
FieldUse it for
codeBranching in your code. Stable - a code is never renamed or reused.
messageLogs and humans. It can be reworded at any time - never parse it.
requestIdSupport. The same value is in the X-Request-Id header of every response, successful or not.

New codes can be added without a new API version. Handle an unknown code by its HTTP status (retry 5xx, fix the request on 4xx).

You can send your own X-Request-Id header (8 to 128 characters of A-Z a-z 0-9 . _ : -) to correlate our logs with yours. It is echoed back. Otherwise the server generates one.

Codes

Authentication and organization

HTTPcodeCauseFix
401MISSING_API_KEYNo x-api-key headerSend your partner key
401INVALID_API_KEYUnknown or revoked partner keyCheck the key. Ask support if it was rotated
400INVALID_CLIENT_KEYx-api-client-key does not match an organization. Only create-tracking and get-all-tracking-items check it. Other endpoints ignore an unknown client keyCopy it again from Settings > API Key
400CLIENT_KEY_REQUIREDThe client key is mandatory here (list endpoint, test mode, an ELD or Hybrid tracking, or your key is not allowlisted for MC/DOT creation)Send x-api-client-key
400ORG_IDENTIFIER_REQUIREDCreate without client key and without mcNum / dotNumSend the client key (preferred) or a number
400ORG_IDENTIFIER_INVALIDCreate without client key: the mcNum / dotNum it uses is not a positive whole numberSend the number as a JSON number, without a prefix such as MC
400ORGANIZATION_NOT_FOUNDNo Load Market organization has this MC / DOT number. On edit-tracking: the tracking's organization no longer existsCheck the number, or use the client key

Request validation

HTTPcodeCauseFix
400INVALID_JSONThe body is not valid JSON, or not a JSON object. Usually the hosting platform rejects invalid JSON before the API sees it: you then get HTTP 400 with an HTML body and no codeSend a JSON object with Content-Type: application/json. Treat any 400 whose body is not JSON as invalid JSON
400DRIVER_PHONE_REQUIREDdriverPhone missing (a phone or Hybrid tracking)Send the driver's phone
400DRIVER_PHONE_INVALIDdriverPhone is not a JSON number, is too short, or is not a valid US or Canadian number (an area code or exchange starting with 0 or 1)Send the driver's 10-digit mobile number as a number: 5555550100
400REF_ID_REQUIREDrefId missing or emptySend your load reference
400REF_ID_INVALIDrefId is not a string, is longer than 200 characters, or is empty or null on edit-trackingSend your load reference as a string. Leave it out of an edit to keep it
400CUSTOM_ID_INVALIDcustomId is not a string or is longer than 200 charactersSend a string
400NOTES_INVALIDnotes is not a string or is longer than 5000 charactersSend a string
400DRIVER_TYPE_INVALIDdriverType is not solo or teamSend one of the two
400METADATA_INVALIDmetadata is not a JSON object or is larger than 20 KBSend a smaller object
400EXP_DATE_REQUIREDNeither expDate nor schedule sentSend one of them
400EXP_DATE_INVALIDexpDate is not a number, is in the past, or is more than 240 hours ahead (24 hours with a test key)Send epoch milliseconds within the next 10 days (24 hours in test mode)
400EXP_DATE_SCHEDULE_CONFLICTBoth expDate and schedule sentSend only one
400SCHEDULE_INVALIDschedule missing start/end, starts in the past, or is shorter than 1 hour or longer than 240 hours (with a test key it must end within the next 24 hours)Fix the window
400LOAD_INSTRUCTIONS_INVALIDloadInstructions is not a string or is longer than 5000 charactersSend a shorter string
400EMAIL_UPDATES_INVALIDemailUpdates breaks a rule (recipients, cadence, times, time zone, flags)See message and the data formats
400STOP_LOCATION_INVALIDA stop has neither a full address nor valid coordinates, stopLocations is not an array of stop objects or has more than 50 stops, or an address field is not a string or is longer than 200 charactersSend streetName, city, stateProvince, zip, country, or coordinates. message names the field
400EXPECTED_ARRIVAL_INVALIDexpectedArrival is not a positive numberSend epoch milliseconds (UTC)
400CREATED_BY_TMS_INVALIDcreatedByTms is incomplete, phoneNumber is not E.164, email is not an email address, a text is longer than 200 characters, or photoURL is not an http / https URLSend all four required fields, phone like +15555550123. message names the field
400TRACKING_ID_REQUIREDtrackingId missing (query parameter, or body field of /test/simulate)Send it
400STOPS_ETA_INVALIDrequestStopsEta is not like 0|1|2Send pipe-separated stop indexes
400LIST_TYPE_INVALIDtype missing or not active / historySend a valid type
400LIST_PARAMS_INVALIDBad fromDate, toDate, limit or cursor, or history parameters with type=activeSee Pagination
400TEST_EVENT_INVALIDUnknown simulate event, missing coords, a carrier.* event on a phone test tracking, or event not allowed from the current statusSee Test mode

Idempotency

Codes of the Idempotency-Key header of POST /create-tracking (see the create-tracking reference).

HTTPcodeCauseFix
400IDEMPOTENCY_KEY_INVALIDIdempotency-Key is empty, longer than 255 characters, sent twice, or holds other than visible ASCII without spacesSend one key, for example a UUID
409IDEMPOTENCY_KEY_REUSEDThe key already created a tracking with another request bodyUse a new key for a new tracking. Retry only the same request with the same key
409IDEMPOTENCY_IN_PROGRESSA create with this key is still runningWait for Retry-After seconds and retry with the same key

A retry with the same key and the same request answers the first create's response again, with the header Idempotent-Replayed: true. Nothing is created or billed twice.

Plan and billing

HTTPcodeCauseFix
400NO_ACTIVE_SUBSCRIPTIONThe organization has no active Load Market plan. Rare - organizations without a paid plan are on the Free plan and get TRACKING_LIMIT_REACHED when its requests are used upThe organization admin subscribes on the Billing page
400TRACKING_LIMIT_REACHEDThe plan has fewer tracking requests left than this tracking needs (billingWeight 1, or 2 for more than 5 days)Upgrade the plan or wait for the next billing period
400PAYMENT_FAILEDThe last payment for the organization's plan failed. The plan is kept, but no new tracking item is created until it is paid. Existing tracking items are not affectedThe organization admin updates the payment method on the Billing page of the Load Market web app
403PRO_PLAN_REQUIREDA stop has expectedArrival on a plan without Smart Arrival AlertsRemove expectedArrival or upgrade to PRO
429TEST_LIMIT_REACHEDTest mode: the test key already created 200 test tracking items today (UTC)Wait for Retry-After (next midnight UTC). Deleting test tracking items does not reset the quota
429RATE_LIMITEDTest mode: more than 60 requests in a minute with one test key. On create-tracking also: too many unknown ELD truck numbers for the organization in a short timeWait for Retry-After seconds
403TEST_MODE_ONLY/test/simulate called with a live keyUse your test key

Processing

HTTPcodeCauseFix
400DRIVER_LOOKUP_FAILEDThe driver's account could not be resolved for this phoneCheck the number, retry later, then contact support
400GEOCODING_FAILEDA stop address could not be geocoded (also when the geocoding service is unavailable)Correct the address or send coordinates. Retry a few times if the address is right
400 / 404TRACKING_NOT_FOUNDNo tracking with this id is visible to your key (404 on edit-tracking only). Also from stop-tracking for pending installation or scheduled tracking items, and for ELD tracking items waiting for the carrier - delete them insteadCheck the id and which key created it
400REPORTS_NOT_FOUNDThe tracking does not exist, is not visible to your key, or has no reports yetReports start once the driver shares positions
404ROUTE_NOT_FOUNDUnknown path or HTTP method (under /v1 only once a valid x-api-key was sent)Check the URL and the method
504UPSTREAM_TIMEOUTget-tracking could not be assembled in time, or the ELD truck check of create-tracking took too longRetry with backoff
500INTERNAL_ERRORUnexpected server errorRetry with backoff. Quote requestId to support if it persists

ELD and Hybrid

Only POST /create-tracking answers these, for trackingSource and the eld block. See ELD and Hybrid tracking.

HTTPcodeCauseFix
403ELD_TRACKING_NOT_AVAILABLEELD tracking is not enabled for the organizationAsk Load Market to enable it (office@load-market.com)
400TRACKING_SOURCE_INVALIDtrackingSource is not mobile, eld or hybridSend one of the three
400ELD_DATA_INVALIDThe eld block is missing or has a wrong field, providerId is not one of the carrier's, or an approval email is not allowedFix the field the message names
400ELD_CARRIER_NOT_INTEGRATEDThe carrier has not connected its ELD to Load MarketAsk the carrier to connect at eld.load-market.com, or track by phone
400ELD_CONNECTION_UNAVAILABLEThe carrier's ELD connection is not workingAsk the carrier to reconnect its ELD, or track by phone
400ELD_VEHICLE_NOT_FOUNDThe carrier's ELD does not know truckNumber, or its ELD plan does not include location tracking for that truckCheck the truck number with the carrier, or ask the carrier to enable location tracking for the truck
503ELD_PROVIDER_UNAVAILABLEThe carrier's ELD provider did not answer the truck checkRetry after the seconds in Retry-After

Fallback codes

If an error body was produced without a specific code, it gets one derived from the HTTP status: BAD_REQUEST (400 and any other 4xx not listed), UNAUTHORIZED (401), FORBIDDEN (403), NOT_FOUND (404), RATE_LIMITED (429), UPSTREAM_TIMEOUT (504), INTERNAL_ERROR (other 5xx).

Known v1 quirks

These are kept for compatibility and will only change in a new major version:

  • Not found is 400 on most endpoints. get-tracking, stop-tracking, delete-tracking and get-reports answer 400 for an unknown trackingId, while edit-tracking answers 404. Branch on code (TRACKING_NOT_FOUND, or REPORTS_NOT_FOUND on get-reports), not on the status.
  • get-reports dates are strings. data[].date is an ISO-8601 string. Every other timestamp in a response or webhook body is epoch milliseconds.
  • Unknown paths without a key answer 401. Any path under /v1 checks the key first, so a typo in the path with a missing key reads 401 MISSING_API_KEY rather than 404.
  • 200 with a warning. get-tracking answers 200 when an optional enrichment could not be computed: a missing driver address, or an ETA requested without stops or driver coordinates, is explained in message instead of Ok. A stop whose ETA could not be routed is simply missing from stopLocationsEta.

Retrying

StatusRetry?
400, 401, 403, 404No - fix the request first (except DRIVER_LOOKUP_FAILED and GEOCODING_FAILED, which can be transient: retry a few times with backoff)
409IDEMPOTENCY_IN_PROGRESS yes, after Retry-After, with the same key. IDEMPOTENCY_KEY_REUSED no - use a new key
429Yes, after Retry-After when present
500, 502, 503, 504Yes, with exponential backoff (for example 1 s, 2 s, 4 s, max 5 attempts). When a 503 has Retry-After, wait that long first

Send an Idempotency-Key with every create-tracking and retry with the same key: a create that already went through answers its first response again, so a retry never creates or bills a second tracking item. Without the header a retried create can create two tracking items and use two tracking requests - before retrying a create that timed out, look for it with GET /get-all-tracking-items?type=active and your customId. A 5xx frees the key, and the tracking may still have been written: check the active list for your customId before retrying it.

Last modified on