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.
| Status | Code | Meaning and action |
|---|---|---|
| 400 | invalid_request | A 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. |
| 400 | invalid_cursor | The cursor is not one this endpoint issued. Use nextCursor exactly as returned, on the same endpoint. |
| 400 | since_too_old | The 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. |
| 401 | invalid_key | The 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. |
| 401 | key_revoked | The key has been revoked. Create a new key in Account > API access. |
| 401 | key_expired | The key has passed its expiry date. Create a new key in Account > API access. |
| 403 | scope_missing | The 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. |
| 403 | subscription_required | Your organisation has no current subscription. |
| 403 | subscription_expired | Your organisation's subscription has expired. Renew it to restore access. |
| 403 | plan_feature_required | Your organisation's plan does not include API access. API access needs a paid Enterprise plan; it is not available during a trial. |
| 404 | not_found | The 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. |
| 429 | rate_limited | This 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. |
| 429 | quota_exceeded | Your organisation used its 20,000 requests for today. Wait for Retry-After seconds (the next midnight AEST). |
| 500 | internal_error | The 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. |
| 503 | service_unavailable | The 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. |