Jump toErrors
Build

Errors

Every error is application/problem+json with a stable code. Branch on the code; quote the traceId to support.

Error formatLink to this section

Errors use application/problem+json. Branch on code, not on title or detail, which are for people. Quote traceId if you contact support. The type link of each error opens its row in the table below.

Error response
{
  "type": "https://www.tenderhub.com.au/developers#errors-rate_limited",
  "title": "Rate limit exceeded",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests for this API key. Retry after the number of seconds in the Retry-After header.",
  "traceId": "00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01"
}

Error codesLink to this section

Each code the API returns, its meaning and the action to take.

Error codes
StatusCodeMeaning and action
400invalid_requestA query parameter is missing, out of range or unknown (for example limit, since, or a category, state or location that is not in the /reference lists), or a supplier search did not send exactly one of abn, name or slug. Correct the request. An unchanged retry fails again.
400invalid_cursorThe cursor is not one this endpoint issued. Use nextCursor exactly as returned, on the same endpoint.
400since_too_oldThe change feeds (awards, opportunities, supplier changes) keep 24 months of history, and since was earlier than that. The detail gives the earliest allowed since (midnight UTC on the same date 24 months ago); start from that value or later. A cursor is never refused for its age, but returns no change older than 24 months. If your last poll or cursor is more than 24 months old, supplier hidden and deleted entries from the gap cannot be delivered, even from the earliest allowed since. To keep your copy accurate, we recommend that you re-verify every supplier you hold with GET /suppliers/{supplierId} (404 means it is no longer published), then resume from the earliest allowed since.
401invalid_keyThe X-Api-Key header is missing, malformed or not a known key. Check the header name and that the whole 59-character key was sent.
401key_revokedThe key has been revoked. Create a new key in Account > API access.
401key_expiredThe key has passed its expiry date. Create a new key in Account > API access.
403scope_missingThe key does not carry the scope this endpoint needs (for the supplier changes feed, any one of awards:read, buyers:read or suppliers:read). Create a key with that scope.
403subscription_requiredYour organisation has no current subscription.
403subscription_expiredYour organisation's subscription has expired. Renew it to restore access.
403plan_feature_requiredYour organisation's plan does not include API access. API access needs a paid Enterprise plan; it is not available during a trial.
404not_foundThe record does not exist or is not available (an unknown or deleted TH- reference, a hidden supplier, an inactive buyer, or an id that is not one the API issued), or the API is not currently enabled.
429rate_limitedThis key sent more than 120 requests this minute, sent more than 30 requests this minute to the buyer and supplier detail and awards endpoints, or already has 4 requests in progress at once. Wait for Retry-After seconds.
429quota_exceededYour organisation used its 20,000 requests for today. Wait for Retry-After seconds (the next midnight AEST).
500internal_errorThe request failed because of a server error. A GET is safe to retry. If the error persists, contact support and quote the traceId from the response.
503service_unavailableThe API cannot complete the request at present: it is processing the maximum number of requests it accepts at once (Retry-After 1, not counted), the request ran longer than the API allows (Retry-After 10; if this recurs on a paged endpoint, request a smaller limit, or for buyer and supplier awards a shorter from and to range), request counting is busy (Retry-After 2), or the supplier name search is unavailable (GET /suppliers?name=, Retry-After 30). Wait for Retry-After seconds, then retry.