Get started

Errors

The shape of every TimeSubmit API error, and each error code with its HTTP status and what it means.

The error shape

An error answers with its HTTP status and the same shape every time. Branch on code, which does not change. message is written for people and names the parameter or field that is wrong.

{
  "error": {
    "code": "invalid_request",
    "message": "paymentTermDays must be a number of days."
  }
}

Error codes

CodeStatusWhen
unauthorised401No key, or one that is unknown, revoked or expired. Every case answers the same.
api_not_included403Your plan does not include the API. Keys work again when it does.
insufficient_scope403The key does not have the scope this operation needs.
read_only403Your organisation is read-only, so writes are refused. Reads still work.
client_limit_reached403Your plan's client limit is reached.
project_limit_reached403Your plan's project limit is reached.
not_on_plan403The request needs a feature your plan does not include, such as purchase orders.
not_found404No record has this id in your organisation. Another organisation's record answers the same. Also the answer to a method and path that is not an operation.
invalid_request400A parameter or a body field breaks a rule; the message names it.
already_exists409The record already exists, such as a second assignment of the same pair.
idempotency_conflict409This Idempotency-Key was used in the last day with a different request.
rate_limited429The key has used its allowance. Retry-After says when to try again.
unreadable_invoice500An old invoice whose lines and total disagree. Contact support.
gone410This version of the API has been retired. Move to the version the versioning page names.

For unauthorised and insufficient_scope, see authentication for keys and scopes. A 429 rate_limited answer carries a Retry-After header: see rate limits.