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

StatusRetry?What your code should do
400NoFix the request. The message names the parameter
401, 403NoCheck the key and the account; retrying won't help
404NoCheck the id; job_not_found means a queued answer expired, or the job isn't one this key can read
409LaterOnly with if_queued=error (no_copy_kept or report_not_ready): ask again after the next check-in
429 rate_limitedYesWait the seconds in Retry-After, then continue where you were
429 queue_fullLaterA no-copy file has too many reads waiting; ask after the next check-in
500, 503Yes, a few timesBack 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."
  }
}
StatusCodeWhenWhat to do
400bad_parameterA 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.
400bad_cursorThe 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.
400key_in_urlA key was sent in the query string.Revoke that key and make a new one. Send keys only in the Authorization header.
401unauthorizedNo 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.
401invalid_keyThe key is wrong or was revoked.Make a new key on the company file's page.
403account_inactiveThe account the key belongs to isn't active.Sign in to see why, or write to support.
404file_not_foundNo company file with that id that this key can read.List /v1/files for the ids your key can read.
404record_not_foundNo record with that QuickBooks id, or it was deleted in QuickBooks.Record ids are QuickBooks' own ListID or TxnID.
404unknown_resourceThe resource name is misspelled.The API reference lists every resource.
404unknown_reportThe report name is misspelled.The API reference lists every report.
404job_not_foundNo 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.
409report_not_readyYou 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.
409no_copy_keptYou 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.
429rate_limitedMore than 60 requests in a minute with one key.Wait the number of seconds in the Retry-After header, then continue.
429queue_fullToo 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.
500mirror_unreadableA stored record couldn't be read back.Write to support with the time of the request.
500server_errorSomething failed on our side.Try again in a minute. If it keeps happening, write to support with the time of the request.
503not_readyThat 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.