2xx response indicates success. 4xx responses indicate a client error you can fix by changing the request. 5xx responses indicate a Detrack server problem.
Client errors
Validation error response
When validation fails, the response body includes acode, message, and an errors array pointing at the fields that failed:
errors array so you can identify exactly which items in the request failed while the others succeeded.
Handling errors
401/403: check your API key and account permissions. Do not retry.404: verify thedo_number,date, andtypeyou passed. Do not retry.422: read theerrorsarray, fix the request, and try again.429: back off and retry with exponential backoff, respectingRetry-Afterif present. Consider using bulk endpoints.5xx: retry with exponential backoff. Contact Detrack support if the error persists.
