Skip to content

Errors

Tracksuite uses conventional HTTP response codes to indicate the success or failure of an API request. In general:

  • Codes in the 2xx range indicate success. On create, summary, and batch query, also read errors: each tracking is accepted or rejected on its own.
  • Codes in the 4xx range indicate the request failed given the information provided. For example, a missing required parameter, an invalid API key, or insufficient units.
  • These responses include message. A failed tracking inside a 200 also includes code, which briefly explains that tracking.
  • Codes in the 5xx range indicate an error on Tracksuite servers. These are rare.
messagestring

Human-readable reason. Present on HTTP errors.

codestring | null

On summary and batch query items. Create errors and HTTP errors do not include it.

referIdstring | null

Business ID of the failed item, when the request used referId.

trackingNumberstring | null

Tracking number of the failed item, when the request used a tracking number.