API errors and how to fix them
Desktop Books API errors use the HTTP status plus a JSON body with a stable code to match on, a message for people and a hint that says what to change. Match on code, never on the message text, which we may reword. This page says which errors to retry and lists every code.
Retry or fix
| Status | Retry? | What your code should do |
|---|---|---|
400 | No | Fix the request. The message names the parameter |
401, 403 | No | Check the key and the account; retrying won't help |
404 | No | Check the id; job_not_found means a queued answer expired, or the job isn't one this key can read |
409 | Later | Only with if_queued=error (no_copy_kept or report_not_ready): ask again after the next check-in |
429 rate_limited | Yes | Wait the seconds in Retry-After, then continue where you were |
429 queue_full | Later | A no-copy file has too many reads waiting; ask after the next check-in |
500, 503 | Yes, a few times | Back off (for example 30 seconds, then 2 minutes, then 10), and write to support if it keeps happening |
A 202 is not an error
A 202 with "status": "queued" means the answer has to come from the office PC at the next check-in: the file keeps no copy, or you asked for a report with dates that haven't been read yet (the first time only; after that the saved report answers at once and is refreshed when it's more than 6 hours old). Read the job later (No-copy mode); don't treat it as a failure or as an empty list.
Stale data is not an error either
If the office PC stops checking in, requests keep answering 200 from the last check-in, with an older as_of. Compare as_of with the time if your report must be current, and see Freshness and sync for why check-ins stop.
The error format
Errors use the HTTP status and a JSON body with a code you can match on, a message for people and a hint that says what to change:
{
"error": {
"code": "bad_parameter",
"message": "date_from must be a date like 2026-11-20.",
"hint": "Check the date_from parameter."
}
}
| Status | Code | When | What to do |
|---|---|---|---|
| 400 | bad_parameter | A query parameter has the wrong form: a date that isn't YYYY-MM-DD, a limit outside 1 to 500, a status the resource doesn't know. | The message names the parameter. Fix that value. |
| 400 | bad_cursor | The cursor was changed, or came from a list with different filters. | Pass next_cursor back exactly as it came, with the same filters, or start again without a cursor. |
| 400 | key_in_url | A key was sent in the query string. | Revoke that key and make a new one. Send keys only in the Authorization header. |
| 401 | unauthorized | No key was sent, or the Authorization header isn't Bearer or Basic. | Send Authorization: Bearer dbk_..., or Basic auth with the key as the user name. |
| 401 | invalid_key | The key is wrong or was revoked. | Make a new key on the company file's page. |
| 403 | account_inactive | The account the key belongs to isn't active. | Sign in to see why, or write to support. |
| 404 | file_not_found | No company file with that id that this key can read. | List /v1/files for the ids your key can read. |
| 404 | record_not_found | No record with that QuickBooks id, or it was deleted in QuickBooks. | Record ids are QuickBooks' own ListID or TxnID. |
| 404 | unknown_resource | The resource name is misspelled. | The API reference lists every resource. |
| 404 | unknown_report | The report name is misspelled. | The API reference lists every report. |
| 404 | job_not_found | No queued read with that job id, or its answer was already read and deleted. | Ask again; answers are kept until read once or for 10 minutes. |
| 409 | report_not_ready | You sent if_queued=error for a report period QuickBooks hasn't sent yet. It is still asked for at the next check-in. | Run it again after the next check-in, or leave if_queued out and read the job. |
| 409 | no_copy_kept | You sent if_queued=error and the file keeps no copy, so it can only answer at the next check-in. | Leave if_queued out and read the job later, or turn on Keep a copy on the file page. |
| 429 | rate_limited | More than 60 requests in a minute with one key. | Wait the number of seconds in the Retry-After header, then continue. |
| 429 | queue_full | Too many reads are already waiting for a no-copy file's next check-in. | Ask again after the next check-in, or turn on Keep a copy so reads answer at once. |
| 500 | mirror_unreadable | A stored record couldn't be read back. | Write to support with the time of the request. |
| 500 | server_error | Something failed on our side. | Try again in a minute. If it keeps happening, write to support with the time of the request. |
| 503 | not_ready | That part of the service isn't switched on yet. | Try again later. |
Errors from QuickBooks itself
When QuickBooks refuses a read (the company file is open in a mode the Web Connector can't use, a feature isn't turned on), the file's status says so in words and the list keeps the last good data. Sales orders, estimates and the job profitability report come back empty on editions that don't have them. Messages the Web Connector shows on the PC are covered on the Web Connector errors page.