Skip to content
Desktop Accounting API

Error codes

Every error response has the same shape, and every code below is stable: its meaning never changes, and new codes only get added. The docsUrl field in an error body links straight to the matching section on this page.

{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_MODAL_DIALOG_OPEN",
"message": "QuickBooks Desktop has a dialog window open, so it could not accept the request.",
"userFacingMessage": "QuickBooks Desktop has a window open that needs attention. Close any open QuickBooks dialog on the computer that runs QuickBooks, then try again.",
"httpStatusCode": 503,
"integrationCode": "0x80040414",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "A modal dialog blocks every integrated application until someone closes it.",
"fixes": [{ "actor": "end_user", "action": "Close the open dialog in QuickBooks Desktop on the host computer." }],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_modal_dialog_open",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

Read Error handling for what each field means and how to route errors in your code. The short version:

  • Branch on code, not on message. Messages can get more specific over time.
  • Show userFacingMessage to your customer. It never contains keys, billing details or internal identifiers.
  • Retry only when retryable is true (also sent as the Daapi-Should-Retry header). Never resend a write whose outcome is unknown or pending.
  • Quote requestId when you contact support. Paste it into the Request ID box of the dashboard request log to open the request in whichever of your projects it belongs to.

This page is generated from the same error catalog the API uses at runtime, so it always matches the codes the API sends. The catalog is also published as JSON at /docs/errors.json, with every code, retry rule, cause, fix, documented details key, the qbXML status mapping and the diagnosis causes, for tools and SDKs.

78 codes in 9 types. Jump to a code:

Retry guidance

Every code carries one of four retry rules:

  • Retry the same request (retry_same_request). Repeating the identical request (same Idempotency-Key for writes) can succeed. SDKs retry it automatically with backoff.
  • Read the request instead of resending (poll_request). The request keeps running. Poll GET /v1/requests/{id}?waitSeconds=60; never resend it.
  • Never resend; check QuickBooks first (never_resend_check_first). Never resend automatically. Check in QuickBooks whether the change exists before trying again.
  • Change the request or the setup first (change_request_or_environment). Repeating the same request fails the same way. Change the request, or have the end user or developer apply a fix first.

Invalid request error INVALID_REQUEST_ERROR

The request is invalid. Fix it before sending it again.

INVALID_JSON

HTTP status
400
Retry
Change the request or the setup first
Outcome
not_applied

Message. The request body is not valid JSON.

Cause. The body could not be parsed as JSON, or the Content-Type header does not match the body.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Send a UTF-8 JSON body with Content-Type: application/json.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "INVALID_JSON",
"message": "The request body is not valid JSON.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 400,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The body could not be parsed as JSON, or the Content-Type header does not match the body.",
"fixes": [
{
"actor": "developer",
"action": "Send a UTF-8 JSON body with Content-Type: application/json."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#invalid_json",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

INVALID_PARAMETER

HTTP status
400
Retry
Change the request or the setup first
Outcome
not_applied

Message. A request parameter is invalid.

Cause. A field, query parameter or header failed validation. param names the field.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Correct the field named in param using the constraints in the API reference.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "INVALID_PARAMETER",
"message": "A request parameter is invalid.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 400,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "A field, query parameter or header failed validation. `param` names the field.",
"fixes": [
{
"actor": "developer",
"action": "Correct the field named in `param` using the constraints in the API reference."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#invalid_parameter",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

UNKNOWN_PARAMETER

HTTP status
400
Retry
Change the request or the setup first
Outcome
not_applied

Message. The request contains a field this operation does not accept.

Cause. Request bodies are strict. A misspelled or unsupported field is rejected instead of being ignored.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Remove or rename the field named in param.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "UNKNOWN_PARAMETER",
"message": "The request contains a field this operation does not accept.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 400,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "Request bodies are strict. A misspelled or unsupported field is rejected instead of being ignored.",
"fixes": [
{
"actor": "developer",
"action": "Remove or rename the field named in `param`."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#unknown_parameter",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

UNKNOWN_HEADER

HTTP status
400
Retry
Change the request or the setup first
Outcome
not_applied

Message. The request contains an unknown Daapi-* header.

Cause. Unknown Daapi-* headers are rejected so that a typo does not silently fall back to a default.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Check the header name named in param against the header reference.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "UNKNOWN_HEADER",
"message": "The request contains an unknown Daapi-* header.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 400,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "Unknown Daapi-* headers are rejected so that a typo does not silently fall back to a default.",
"fixes": [
{
"actor": "developer",
"action": "Check the header name named in `param` against the header reference."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#unknown_header",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

DECIMAL_PRECISION_EXCEEDED

HTTP status
400
Retry
Change the request or the setup first
Outcome
not_applied

Message. A decimal value has more decimal places than QuickBooks stores for this field.

Cause. QuickBooks stores amounts with 2 decimal places and prices and quantities with 5. Values are never rounded silently.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Round the value named in param before sending it.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "DECIMAL_PRECISION_EXCEEDED",
"message": "A decimal value has more decimal places than QuickBooks stores for this field.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 400,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks stores amounts with 2 decimal places and prices and quantities with 5. Values are never rounded silently.",
"fixes": [
{
"actor": "developer",
"action": "Round the value named in `param` before sending it."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#decimal_precision_exceeded",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

STRING_TOO_LONG

HTTP status
400
Retry
Change the request or the setup first
Outcome
not_applied

Message. A text value is longer than QuickBooks allows for this field.

Cause. Each QuickBooks text field has a maximum length.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Shorten the value named in param to the documented maximum length.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "STRING_TOO_LONG",
"message": "A text value is longer than QuickBooks allows for this field.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 400,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "Each QuickBooks text field has a maximum length.",
"fixes": [
{
"actor": "developer",
"action": "Shorten the value named in `param` to the documented maximum length."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#string_too_long",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

UNSUPPORTED_CHARACTER

HTTP status
400
Retry
Change the request or the setup first
Outcome
not_applied

Message. A text value contains a character QuickBooks cannot store.

Cause. US editions of QuickBooks Desktop store text in the Windows-1252 code page. Characters outside it (emoji, Greek or Asian scripts, fullwidth forms such as &, control characters) are rejected rather than silently changed. Accented Latin letters, €, µ, the no-break space, curly quotes and dashes are stored as sent; decomposed accents are normalized to their composed form first.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Replace the character reported in details in the field named in param; details.suggestion names a replacement when there is an obvious one.

Details

  • details.codePoint: Unicode code point of the first rejected character.
  • details.character: The character itself, or null for control characters.
  • details.index: Its position in the value (0-based, in characters).
  • details.suggestion: A replacement QuickBooks can store, or null.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "UNSUPPORTED_CHARACTER",
"message": "A text value contains a character QuickBooks cannot store.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 400,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "US editions of QuickBooks Desktop store text in the Windows-1252 code page. Characters outside it (emoji, Greek or Asian scripts, fullwidth forms such as &, control characters) are rejected rather than silently changed. Accented Latin letters, €, µ, the no-break space, curly quotes and dashes are stored as sent; decomposed accents are normalized to their composed form first.",
"fixes": [
{
"actor": "developer",
"action": "Replace the character reported in `details` in the field named in `param`; `details.suggestion` names a replacement when there is an obvious one."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#unsupported_character",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"codePoint": "...",
"character": "...",
"index": "...",
"suggestion": "..."
}
}
}

FIELD_NOT_CLEARABLE

HTTP status
400
Retry
Change the request or the setup first
Outcome
not_applied

Message. This field cannot be cleared with null.

Cause. QuickBooks only supports clearing some fields. Fields that support it are marked x-daapi-clearable in the reference.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Omit the field to leave it unchanged, or send a replacement value.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "FIELD_NOT_CLEARABLE",
"message": "This field cannot be cleared with null.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 400,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks only supports clearing some fields. Fields that support it are marked x-daapi-clearable in the reference.",
"fixes": [
{
"actor": "developer",
"action": "Omit the field to leave it unchanged, or send a replacement value."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#field_not_clearable",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

END_USER_ID_MISSING

HTTP status
400
Retry
Change the request or the setup first
Outcome
not_applied

Message. QuickBooks Desktop operations require the Daapi-End-User-Id header.

Cause. The request did not say which end user, and therefore which QuickBooks company file, it is for.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Send Daapi-End-User-Id with the end user's ID (eu_...).
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "END_USER_ID_MISSING",
"message": "QuickBooks Desktop operations require the Daapi-End-User-Id header.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 400,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The request did not say which end user, and therefore which QuickBooks company file, it is for.",
"fixes": [
{
"actor": "developer",
"action": "Send Daapi-End-User-Id with the end user's ID (eu_...)."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#end_user_id_missing",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

PAYLOAD_TOO_LARGE

HTTP status
413
Retry
Change the request or the setup first
Outcome
not_applied

Message. The request body is larger than 20 MiB.

Cause. Request bodies are capped at 20 MiB.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Split the work into several smaller requests.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "PAYLOAD_TOO_LARGE",
"message": "The request body is larger than 20 MiB.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 413,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "Request bodies are capped at 20 MiB.",
"fixes": [
{
"actor": "developer",
"action": "Split the work into several smaller requests."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#payload_too_large",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

IDEMPOTENCY_KEY_INVALID

HTTP status
400
Retry
Change the request or the setup first
Outcome
not_applied

Message. The Idempotency-Key header must be 1–255 printable ASCII characters.

Cause. The Idempotency-Key value is empty, too long or contains characters outside printable ASCII.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Use a UUID or another value of 1–255 printable ASCII characters.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "IDEMPOTENCY_KEY_INVALID",
"message": "The Idempotency-Key header must be 1–255 printable ASCII characters.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 400,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The Idempotency-Key value is empty, too long or contains characters outside printable ASCII.",
"fixes": [
{
"actor": "developer",
"action": "Use a UUID or another value of 1–255 printable ASCII characters."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#idempotency_key_invalid",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

IDEMPOTENCY_KEY_REUSED

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applied

Message. This Idempotency-Key was already used with a different request.

Cause. A key identifies one logical request. The method, path, end user or body differs from the first use of this key.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Generate a new key for each logical request and reuse it only for retries of that request.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "IDEMPOTENCY_KEY_REUSED",
"message": "This Idempotency-Key was already used with a different request.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 422,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "A key identifies one logical request. The method, path, end user or body differs from the first use of this key.",
"fixes": [
{
"actor": "developer",
"action": "Generate a new key for each logical request and reuse it only for retries of that request."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#idempotency_key_reused",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

CURSOR_INVALID

HTTP status
400
Retry
Change the request or the setup first
Outcome
not_applicable

Message. The cursor is malformed, out of date or belongs to another end user.

Cause. Only the most recent cursor of a list can be used, and only for the end user and query that produced it. Every page returns a new cursor; resending one repeats its page at most twice.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Use the nextCursor from the latest page, or start the list again without a cursor.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "CURSOR_INVALID",
"message": "The cursor is malformed, out of date or belongs to another end user.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 400,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "Only the most recent cursor of a list can be used, and only for the end user and query that produced it. Every page returns a new cursor; resending one repeats its page at most twice.",
"fixes": [
{
"actor": "developer",
"action": "Use the nextCursor from the latest page, or start the list again without a cursor."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#cursor_invalid",
"retryable": false,
"outcome": "not_applicable",
"param": null,
"details": {}
}
}

CURSOR_PARAMS_MISMATCH

HTTP status
400
Retry
Change the request or the setup first
Outcome
not_applicable

Message. Filter parameters cannot change while paging with a cursor.

Cause. Filters are fixed when a list starts and the cursor remembers them. A continue request may resend exactly the same filters; a changed, added or dropped filter would describe a different list.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Send cursor (and optionally limit) alone, or with exactly the filters of the first request. To change a filter, start the list again without a cursor.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "CURSOR_PARAMS_MISMATCH",
"message": "Filter parameters cannot change while paging with a cursor.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 400,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "Filters are fixed when a list starts and the cursor remembers them. A continue request may resend exactly the same filters; a changed, added or dropped filter would describe a different list.",
"fixes": [
{
"actor": "developer",
"action": "Send cursor (and optionally limit) alone, or with exactly the filters of the first request. To change a filter, start the list again without a cursor."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#cursor_params_mismatch",
"retryable": false,
"outcome": "not_applicable",
"param": null,
"details": {}
}
}

CURSOR_EXPIRED

HTTP status
410
Retry
Change the request or the setup first
Outcome
not_applicable

Message. The cursor expired because QuickBooks discarded the underlying query.

Cause. A cursor lives only as long as the QuickBooks session that holds its query. details.reason says why it ended.

What the end user sees. The list took too long to load and has to start again. Please try again.

How to fix it

  • You (developer): Restart the query with the same filters and the watermark from the last completed sync. Upsert records by ID to handle repeats. Do not advance the watermark to the last record of an unfinished traversal, because unread records can be older. Save the next watermark only after all pages finish.

Details

  • details.reason: idle_timeout, session_ended, quickbooks_restarted or evicted.
  • details.pagesServed: Pages returned before the cursor expired.
  • details.recordsServed: Records returned before the cursor expired.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "CURSOR_EXPIRED",
"message": "The cursor expired because QuickBooks discarded the underlying query.",
"userFacingMessage": "The list took too long to load and has to start again. Please try again.",
"httpStatusCode": 410,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "A cursor lives only as long as the QuickBooks session that holds its query. `details.reason` says why it ended.",
"fixes": [
{
"actor": "developer",
"action": "Restart the query with the same filters and the watermark from the last completed sync. Upsert records by ID to handle repeats. Do not advance the watermark to the last record of an unfinished traversal, because unread records can be older. Save the next watermark only after all pages finish."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#cursor_expired",
"retryable": false,
"outcome": "not_applicable",
"param": null,
"details": {
"reason": "...",
"pagesServed": "...",
"recordsServed": "..."
}
}
}

RESOURCE_MISSING

HTTP status
404
Retry
Change the request or the setup first
Outcome
not_applied

Message. No such object exists in this project.

Cause. The ID does not exist, was deleted, or belongs to another project.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Check the ID and that the secret key belongs to the project that owns the object.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "RESOURCE_MISSING",
"message": "No such object exists in this project.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 404,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The ID does not exist, was deleted, or belongs to another project.",
"fixes": [
{
"actor": "developer",
"action": "Check the ID and that the secret key belongs to the project that owns the object."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#resource_missing",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

ROUTE_NOT_FOUND

HTTP status
404
Retry
Change the request or the setup first
Outcome
not_applied

Message. No endpoint matches this method and path.

Cause. The API has no endpoint for this method and path: the path is misspelled, is missing the /v1 prefix, or uses a method the endpoint does not accept. Paths under /v1 are authenticated before routing, so a request there without a valid key gets an authentication error instead.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Check the method and path against the API reference at https://www.desktopaccountingapi.com/docs/api/reference/.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "ROUTE_NOT_FOUND",
"message": "No endpoint matches this method and path.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 404,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The API has no endpoint for this method and path: the path is misspelled, is missing the /v1 prefix, or uses a method the endpoint does not accept. Paths under /v1 are authenticated before routing, so a request there without a valid key gets an authentication error instead.",
"fixes": [
{
"actor": "developer",
"action": "Check the method and path against the API reference at https://www.desktopaccountingapi.com/docs/api/reference/."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#route_not_found",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

REQUEST_NOT_CANCELABLE

HTTP status
409
Retry
Change the request or the setup first
Outcome
not_applied

Message. The request was already sent to QuickBooks and cannot be canceled.

Cause. Cancellation is possible only before a request is handed to the Web Connector.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Wait for the request to finish with GET /v1/requests/{id}.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "REQUEST_NOT_CANCELABLE",
"message": "The request was already sent to QuickBooks and cannot be canceled.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 409,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "Cancellation is possible only before a request is handed to the Web Connector.",
"fixes": [
{
"actor": "developer",
"action": "Wait for the request to finish with GET /v1/requests/{id}."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#request_not_cancelable",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

COMPANY_FILE_RESET_BUSY

HTTP status
409
Retry
Retry the same request
Outcome
not_applied

Message. The company file identity cannot be reset while requests are in flight. Wait for in-flight requests to finish, then retry.

Cause. An identity reset (POST /v1/end-users/{id}/reset-company-file with mode identity) waits until no request is in flight: a request already sent to QuickBooks finishes, and its usage is recorded, against the company file it was sent to. Nothing was reset.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Wait for in-flight requests to finish (GET /v1/requests?status=sent, or their webhooks), then retry the reset. Queued requests that were not sent yet are canceled when the reset goes through.

Details

  • details.reason: requests_in_flight (a request was sent to QuickBooks and has not finished) or request_states_not_recorded (finished requests are still being recorded; retry in a few seconds). An open set.
  • details.inFlight: Requests in flight when the reset was refused.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "COMPANY_FILE_RESET_BUSY",
"message": "The company file identity cannot be reset while requests are in flight. Wait for in-flight requests to finish, then retry.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 409,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "An identity reset (POST /v1/end-users/{id}/reset-company-file with mode identity) waits until no request is in flight: a request already sent to QuickBooks finishes, and its usage is recorded, against the company file it was sent to. Nothing was reset.",
"fixes": [
{
"actor": "developer",
"action": "Wait for in-flight requests to finish (GET /v1/requests?status=sent, or their webhooks), then retry the reset. Queued requests that were not sent yet are canceled when the reset goes through."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#company_file_reset_busy",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {
"reason": "...",
"inFlight": "..."
}
}
}

PASSTHROUGH_INVALID_QBXML

HTTP status
400
Retry
Change the request or the setup first
Outcome
not_applied

Message. The passthrough body cannot be converted to a valid qbXML message set.

Cause. Passthrough accepts qbXML request elements (names ending in Rq) as JSON or as a QBXMLMsgsRq XML fragment.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Send one or more request elements such as CustomerQueryRq; see details for the position of the problem.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "PASSTHROUGH_INVALID_QBXML",
"message": "The passthrough body cannot be converted to a valid qbXML message set.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 400,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "Passthrough accepts qbXML request elements (names ending in Rq) as JSON or as a QBXMLMsgsRq XML fragment.",
"fixes": [
{
"actor": "developer",
"action": "Send one or more request elements such as CustomerQueryRq; see `details` for the position of the problem."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#passthrough_invalid_qbxml",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

QBD_FIELD_UNSUPPORTED_BY_VERSION

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applied

Message. The connected QuickBooks version does not support this field or operation.

Cause. The field or operation was introduced in a newer qbXML version than the connected QuickBooks supports. details.minimumQbxmlVersion gives the version needed.

What the end user sees. This feature needs a newer version of QuickBooks Desktop. Please contact the application provider.

How to fix it

  • You (developer): Omit the field for this end user, or check the connection's qbxmlVersion before sending it.
  • End user: Update QuickBooks Desktop to a release that supports the feature.

Details

  • details.minimumQbxmlVersion: qbXML version that introduced the field or operation.
  • details.qbxmlVersion: qbXML version of the connected QuickBooks.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "QBD_FIELD_UNSUPPORTED_BY_VERSION",
"message": "The connected QuickBooks version does not support this field or operation.",
"userFacingMessage": "This feature needs a newer version of QuickBooks Desktop. Please contact the application provider.",
"httpStatusCode": 422,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The field or operation was introduced in a newer qbXML version than the connected QuickBooks supports. `details.minimumQbxmlVersion` gives the version needed.",
"fixes": [
{
"actor": "developer",
"action": "Omit the field for this end user, or check the connection's qbxmlVersion before sending it."
},
{
"actor": "end_user",
"action": "Update QuickBooks Desktop to a release that supports the feature."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_field_unsupported_by_version",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"minimumQbxmlVersion": "...",
"qbxmlVersion": "..."
}
}
}

QBD_REGION_UNSUPPORTED

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applied

Message. The connected QuickBooks Desktop is not a US edition.

Cause. Desktop Accounting API supports US editions of QuickBooks Desktop. Canadian, UK and Australian editions use different schemas.

What the end user sees. This version of QuickBooks Desktop is not supported. Only US editions can be connected.

How to fix it

  • You (developer): Use passthrough for non-US editions at your own risk, or connect a US edition.

Details

  • details.country: Country code QuickBooks reported for the company file.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "QBD_REGION_UNSUPPORTED",
"message": "The connected QuickBooks Desktop is not a US edition.",
"userFacingMessage": "This version of QuickBooks Desktop is not supported. Only US editions can be connected.",
"httpStatusCode": 422,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "Desktop Accounting API supports US editions of QuickBooks Desktop. Canadian, UK and Australian editions use different schemas.",
"fixes": [
{
"actor": "developer",
"action": "Use passthrough for non-US editions at your own risk, or connect a US edition."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_region_unsupported",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"country": "..."
}
}
}

WEBHOOK_ENDPOINT_LIMIT_REACHED

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applied

Message. This project already has the maximum number of webhook endpoints.

Cause. A project can register up to 20 webhook endpoints.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Delete an endpoint you no longer use, or subscribe one endpoint to more event types.

Details

  • details.limit: Maximum endpoints per project.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "WEBHOOK_ENDPOINT_LIMIT_REACHED",
"message": "This project already has the maximum number of webhook endpoints.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 422,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "A project can register up to 20 webhook endpoints.",
"fixes": [
{
"actor": "developer",
"action": "Delete an endpoint you no longer use, or subscribe one endpoint to more event types."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#webhook_endpoint_limit_reached",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"limit": "..."
}
}
}

CHANGE_FEED_SUBSCRIPTION_LIMIT_REACHED

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applied

Message. This project already has the maximum number of change feed subscriptions.

Cause. A project can have up to 10 change feed subscriptions.

What the end user sees. This action could not be completed. Please contact the application provider.

How to fix it

  • You (developer): Add the resources to an existing subscription, or delete a subscription you no longer use.

Details

  • details.limit: Maximum change feed subscriptions per project.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "CHANGE_FEED_SUBSCRIPTION_LIMIT_REACHED",
"message": "This project already has the maximum number of change feed subscriptions.",
"userFacingMessage": "This action could not be completed. Please contact the application provider.",
"httpStatusCode": 422,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "A project can have up to 10 change feed subscriptions.",
"fixes": [
{
"actor": "developer",
"action": "Add the resources to an existing subscription, or delete a subscription you no longer use."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#change_feed_subscription_limit_reached",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"limit": "..."
}
}
}

WEB_CONNECTOR_INSTALL_LIMIT_REACHED

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applied

Message. This connection already has the maximum number of active Web Connector installs.

Cause. A connection can have up to 5 active Web Connector installs (computers). An auth session with installMode: "add" adds one more. A connector file the end user downloaded holds its slot until its setup completes, or until its setup link expires or is canceled.

What the end user sees. This computer cannot be added to the connection right now. Please contact the application provider.

How to fix it

  • You (developer): Remove an install that no longer runs the connection (POST /v1/end-users/{id}/connection/installs/{installId}/remove), then create the auth session again.
  • You (developer): To move the connection to a new computer instead, create the auth session with installMode: "replace".

Details

  • details.limit: Maximum active installs per connection.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "WEB_CONNECTOR_INSTALL_LIMIT_REACHED",
"message": "This connection already has the maximum number of active Web Connector installs.",
"userFacingMessage": "This computer cannot be added to the connection right now. Please contact the application provider.",
"httpStatusCode": 422,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "A connection can have up to 5 active Web Connector installs (computers). An auth session with `installMode: \"add\"` adds one more. A connector file the end user downloaded holds its slot until its setup completes, or until its setup link expires or is canceled.",
"fixes": [
{
"actor": "developer",
"action": "Remove an install that no longer runs the connection (POST /v1/end-users/{id}/connection/installs/{installId}/remove), then create the auth session again."
},
{
"actor": "developer",
"action": "To move the connection to a new computer instead, create the auth session with `installMode: \"replace\"`."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#web_connector_install_limit_reached",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"limit": "..."
}
}
}

QBD_OPERATION_UNSUPPORTED

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applied

Message. QuickBooks Desktop offers no way to perform this operation through its integration interface.

Cause. This is a documented incompatibility: the QuickBooks Desktop SDK (qbXML) has no request for this operation, so no integration can perform it. details.alternatives lists what to do instead.

What the end user sees. This action is not available for QuickBooks Desktop. Please contact the application provider.

How to fix it

  • You (developer): Use one of the alternatives in details.alternatives, for example deleting the transaction instead of voiding it.
  • End user: Perform the action in the QuickBooks Desktop window.

Details

  • details.operationId: The unsupported operation.
  • details.alternatives: What to do instead.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "QBD_OPERATION_UNSUPPORTED",
"message": "QuickBooks Desktop offers no way to perform this operation through its integration interface.",
"userFacingMessage": "This action is not available for QuickBooks Desktop. Please contact the application provider.",
"httpStatusCode": 422,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "This is a documented incompatibility: the QuickBooks Desktop SDK (qbXML) has no request for this operation, so no integration can perform it. `details.alternatives` lists what to do instead.",
"fixes": [
{
"actor": "developer",
"action": "Use one of the alternatives in details.alternatives, for example deleting the transaction instead of voiding it."
},
{
"actor": "end_user",
"action": "Perform the action in the QuickBooks Desktop window."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_operation_unsupported",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"operationId": "...",
"alternatives": "..."
}
}
}

SAMPLE_COMPANY_UNSUPPORTED

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applied

Message. The sample company has no recorded answer for this request.

Cause. The sample company answers from recordings of real QuickBooks Desktop, and only the requests those recordings cover. This request, or the part of it named in details.element, has no recording, so it is refused. Nothing changes. The message names the element and, for many refusals, says what works.

What the end user sees. The sample company does not support this action. Please contact the application provider.

How to fix it

  • You (developer): The message often says what works. To test anything else, connect a real company file.

Details

  • details.reason: operation (the request type), filter (a filter or option), filter_combination (filters recorded only on their own) or write (a change).
  • details.element: The qbXML element, or Element@attribute, that has no recorded answer.
  • details.detail: One sentence on what works instead, for example the modified-date ranges the sample company answers. Present only when the message has it; never contains your data.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "SAMPLE_COMPANY_UNSUPPORTED",
"message": "The sample company has no recorded answer for this request.",
"userFacingMessage": "The sample company does not support this action. Please contact the application provider.",
"httpStatusCode": 422,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The sample company answers from recordings of real QuickBooks Desktop, and only the requests those recordings cover. This request, or the part of it named in `details.element`, has no recording, so it is refused. Nothing changes. The message names the element and, for many refusals, says what works.",
"fixes": [
{
"actor": "developer",
"action": "The message often says what works. To test anything else, connect a real company file."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#sample_company_unsupported",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"reason": "...",
"element": "...",
"detail": "..."
}
}
}

REQUEST_CANCELED

HTTP status
409
Retry
Change the request or the setup first
Outcome
not_applied

Message. The request was canceled before it was sent to QuickBooks.

Cause. The request was canceled before the Web Connector picked it up: by the caller (POST /v1/requests/{id}/cancel), because the end user was deleted, or because the company file identity was reset (POST /v1/end-users/{id}/reset-company-file with mode identity), so a request accepted for one company file never runs against another. A synchronous call that was waiting for it returns HTTP 409.

What the end user sees. This action was canceled.

How to fix it

  • You (developer): Submit a new request if the work is still needed. After a company file reset it runs against the company file the connection identifies next.

Details

  • details.reason: Present when the platform canceled the request: company_file_reset (the company file identity was reset before the request was sent). An open set.
Example response body
{
"error": {
"type": "INVALID_REQUEST_ERROR",
"code": "REQUEST_CANCELED",
"message": "The request was canceled before it was sent to QuickBooks.",
"userFacingMessage": "This action was canceled.",
"httpStatusCode": 409,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The request was canceled before the Web Connector picked it up: by the caller (POST /v1/requests/{id}/cancel), because the end user was deleted, or because the company file identity was reset (POST /v1/end-users/{id}/reset-company-file with mode identity), so a request accepted for one company file never runs against another. A synchronous call that was waiting for it returns HTTP 409.",
"fixes": [
{
"actor": "developer",
"action": "Submit a new request if the work is still needed. After a company file reset it runs against the company file the connection identifies next."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#request_canceled",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"reason": "..."
}
}
}

Authentication error AUTHENTICATION_ERROR

The API key is missing or invalid.

API_KEY_MISSING

HTTP status
401
Retry
Change the request or the setup first
Outcome
not_applied

Message. No API key was provided. Send Authorization: Bearer <secret key>.

Cause. The Authorization header is missing or is not a Bearer token.

What the end user sees. This action is not available right now. Please contact the application provider.

How to fix it

  • You (developer): Send Authorization: Bearer sk_live_... (or sk_test_...) from your server.
Example response body
{
"error": {
"type": "AUTHENTICATION_ERROR",
"code": "API_KEY_MISSING",
"message": "No API key was provided. Send Authorization: Bearer <secret key>.",
"userFacingMessage": "This action is not available right now. Please contact the application provider.",
"httpStatusCode": 401,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The Authorization header is missing or is not a Bearer token.",
"fixes": [
{
"actor": "developer",
"action": "Send Authorization: Bearer sk_live_... (or sk_test_...) from your server."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#api_key_missing",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

API_KEY_INVALID

HTTP status
401
Retry
Change the request or the setup first
Outcome
not_applied

Message. The API key is invalid or has been revoked.

Cause. The key is malformed, unknown, or was revoked. Revocation takes effect within 30 seconds.

What the end user sees. This action is not available right now. Please contact the application provider.

How to fix it

  • You (developer): Create a new secret key in the dashboard and update your server configuration.
Example response body
{
"error": {
"type": "AUTHENTICATION_ERROR",
"code": "API_KEY_INVALID",
"message": "The API key is invalid or has been revoked.",
"userFacingMessage": "This action is not available right now. Please contact the application provider.",
"httpStatusCode": 401,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The key is malformed, unknown, or was revoked. Revocation takes effect within 30 seconds.",
"fixes": [
{
"actor": "developer",
"action": "Create a new secret key in the dashboard and update your server configuration."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#api_key_invalid",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

PUBLISHABLE_KEY_INVALID

HTTP status
401
Retry
Change the request or the setup first
Outcome
not_applied

Message. The publishable key is not valid.

Cause. The publishableKey is malformed, unknown or was rotated.

What the end user sees. This action is not available right now. Please contact the application provider.

How to fix it

  • You (developer): Copy the current publishable key from the project's API keys page.
Example response body
{
"error": {
"type": "AUTHENTICATION_ERROR",
"code": "PUBLISHABLE_KEY_INVALID",
"message": "The publishable key is not valid.",
"userFacingMessage": "This action is not available right now. Please contact the application provider.",
"httpStatusCode": 401,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The publishableKey is malformed, unknown or was rotated.",
"fixes": [
{
"actor": "developer",
"action": "Copy the current publishable key from the project's API keys page."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#publishable_key_invalid",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

Permission error PERMISSION_ERROR

The project may not perform this operation.

PUBLISHABLE_KEY_PROJECT_MISMATCH

HTTP status
403
Retry
Change the request or the setup first
Outcome
not_applied

Message. The publishable key belongs to a different project than the secret key.

Cause. Auth sessions must be created with a publishable key and a secret key from the same project.

What the end user sees. This action is not available right now. Please contact the application provider.

How to fix it

  • You (developer): Use the publishable key of the project that owns your secret key.
Example response body
{
"error": {
"type": "PERMISSION_ERROR",
"code": "PUBLISHABLE_KEY_PROJECT_MISMATCH",
"message": "The publishable key belongs to a different project than the secret key.",
"userFacingMessage": "This action is not available right now. Please contact the application provider.",
"httpStatusCode": 403,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "Auth sessions must be created with a publishable key and a secret key from the same project.",
"fixes": [
{
"actor": "developer",
"action": "Use the publishable key of the project that owns your secret key."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#publishable_key_project_mismatch",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

TEST_COMPANY_FILE_LIMIT_REACHED

HTTP status
403
Retry
Change the request or the setup first
Outcome
not_applied

Message. Test projects in this organization already use the maximum number of company files. A company file frees its slot 30 days after a test connection last used it; contact support to raise the limit.

Cause. Test projects are free and limited to a small number of connected company files per organization. Reconnecting an end user to the same company file does not count again. A company file keeps counting for 30 days after a test connection last used it, also after its end user is deleted or its company file is reset. The connection checks the limit again whenever a test connection adopts a company file.

What the end user sees. This application cannot connect another QuickBooks company file right now. Please contact the application provider.

How to fix it

  • You (developer): Connect the company file in a production project, or reuse a company file your test projects already connect. Files you stopped using free their slot 30 days after their last use.
  • Support: Contact support to raise the limit for a legitimate test setup. Deleting test end users does not free a slot sooner.

Details

  • details.used: Company files connected across the organization test projects.
  • details.limit: The organization limit.
Example response body
{
"error": {
"type": "PERMISSION_ERROR",
"code": "TEST_COMPANY_FILE_LIMIT_REACHED",
"message": "Test projects in this organization already use the maximum number of company files. A company file frees its slot 30 days after a test connection last used it; contact support to raise the limit.",
"userFacingMessage": "This application cannot connect another QuickBooks company file right now. Please contact the application provider.",
"httpStatusCode": 403,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "Test projects are free and limited to a small number of connected company files per organization. Reconnecting an end user to the same company file does not count again. A company file keeps counting for 30 days after a test connection last used it, also after its end user is deleted or its company file is reset. The connection checks the limit again whenever a test connection adopts a company file.",
"fixes": [
{
"actor": "developer",
"action": "Connect the company file in a production project, or reuse a company file your test projects already connect. Files you stopped using free their slot 30 days after their last use."
},
{
"actor": "support",
"action": "Contact support to raise the limit for a legitimate test setup. Deleting test end users does not free a slot sooner."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#test_company_file_limit_reached",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"used": "...",
"limit": "..."
}
}
}

API_KEY_READ_ONLY

HTTP status
403
Retry
Change the request or the setup first
Outcome
not_applied

Message. This secret key is read-only and cannot change data.

Cause. The request was made with a read-only secret key. Read-only keys can call GET operations and passthrough requests that contain only queries (...QueryRq). Creating, updating, deleting or voiding objects, writes through passthrough, auth sessions, end-user changes, request cancellation and webhook endpoint changes need a full-access key. The API rejects the request before anything is queued or sent to QuickBooks.

What the end user sees. This action is not available right now. Please contact the application provider.

How to fix it

  • You (developer): Use a full-access secret key for writes, or keep this key for read-only tools such as an MCP connection for AI agents.
Example response body
{
"error": {
"type": "PERMISSION_ERROR",
"code": "API_KEY_READ_ONLY",
"message": "This secret key is read-only and cannot change data.",
"userFacingMessage": "This action is not available right now. Please contact the application provider.",
"httpStatusCode": 403,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The request was made with a read-only secret key. Read-only keys can call GET operations and passthrough requests that contain only queries (`...QueryRq`). Creating, updating, deleting or voiding objects, writes through passthrough, auth sessions, end-user changes, request cancellation and webhook endpoint changes need a full-access key. The API rejects the request before anything is queued or sent to QuickBooks.",
"fixes": [
{
"actor": "developer",
"action": "Use a full-access secret key for writes, or keep this key for read-only tools such as an MCP connection for AI agents."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#api_key_read_only",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

PERMISSION_DENIED

HTTP status
403
Retry
Change the request or the setup first
Outcome
not_applied

Message. This project is not allowed to perform this operation.

Cause. The operation is not available for this project or object in its current state.

What the end user sees. This action is not available right now. Please contact the application provider.

How to fix it

  • You (developer): Check the project and object state in the dashboard.
Example response body
{
"error": {
"type": "PERMISSION_ERROR",
"code": "PERMISSION_DENIED",
"message": "This project is not allowed to perform this operation.",
"userFacingMessage": "This action is not available right now. Please contact the application provider.",
"httpStatusCode": 403,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The operation is not available for this project or object in its current state.",
"fixes": [
{
"actor": "developer",
"action": "Check the project and object state in the dashboard."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#permission_denied",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

Billing error BILLING_ERROR

Billing pauses production data requests.

BILLING_REQUIRED

HTTP status
402
Retry
Change the request or the setup first
Outcome
not_applied

Message. Production data requests are paused because the organization has no active subscription.

Cause. The organization's 30-day production trial ended without a subscription, or its subscription ended. Health checks, auth sessions, end users, setup and test projects keep working.

What the end user sees. This action is not available right now. Please contact the application provider.

How to fix it

  • You (developer): An organization owner starts a subscription on the dashboard's Billing page (details.billingUrl). Production requests work again within a minute.
Example response body
{
"error": {
"type": "BILLING_ERROR",
"code": "BILLING_REQUIRED",
"message": "Production data requests are paused because the organization has no active subscription.",
"userFacingMessage": "This action is not available right now. Please contact the application provider.",
"httpStatusCode": 402,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The organization's 30-day production trial ended without a subscription, or its subscription ended. Health checks, auth sessions, end users, setup and test projects keep working.",
"fixes": [
{
"actor": "developer",
"action": "An organization owner starts a subscription on the dashboard's Billing page (`details.billingUrl`). Production requests work again within a minute."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#billing_required",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

PAYMENT_FAILED

HTTP status
402
Retry
Change the request or the setup first
Outcome
not_applied

Message. Production data requests are paused because payment failed.

Cause. The subscription has been past due for more than the 7-day grace period, or the billing provider canceled it as unpaid after its payment retries ran out. message says which. Health checks, auth sessions, end users, setup and test projects keep working.

What the end user sees. This action is not available right now. Please contact the application provider.

How to fix it

  • You (developer): Past due: an organization owner updates the payment method on the dashboard's Billing page (details.billingUrl, then Manage billing). Production requests work again once the payment succeeds.
  • You (developer): Canceled as unpaid: an organization owner starts a new subscription on the dashboard's Billing page (details.billingUrl, then Add billing). Production requests work again within a minute.
Example response body
{
"error": {
"type": "BILLING_ERROR",
"code": "PAYMENT_FAILED",
"message": "Production data requests are paused because payment failed.",
"userFacingMessage": "This action is not available right now. Please contact the application provider.",
"httpStatusCode": 402,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The subscription has been past due for more than the 7-day grace period, or the billing provider canceled it as unpaid after its payment retries ran out. `message` says which. Health checks, auth sessions, end users, setup and test projects keep working.",
"fixes": [
{
"actor": "developer",
"action": "Past due: an organization owner updates the payment method on the dashboard's Billing page (`details.billingUrl`, then Manage billing). Production requests work again once the payment succeeds."
},
{
"actor": "developer",
"action": "Canceled as unpaid: an organization owner starts a new subscription on the dashboard's Billing page (`details.billingUrl`, then Add billing). Production requests work again within a minute."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#payment_failed",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

Rate limit error RATE_LIMIT_ERROR

Too many requests; retry after Retry-After.

RATE_LIMITED

HTTP status
429
Retry
Retry the same request
Outcome
not_applied

Message. Too many requests for this project. Retry after the time in Retry-After.

Cause. The project exceeded its request rate across all keys, or too many requests (including ones with invalid keys) came from one IP address. details.scope says which limit applied.

What the end user sees. Too many actions are in progress. Please try again in a moment.

How to fix it

  • You (developer): Retry after the Retry-After interval and spread requests over time. Read the RateLimit-* headers to stay under the limit.

Details

  • details.scope: project (requests per project across all keys) or ip (requests or failed authentications from one IP address).
  • details.limit: Requests allowed per window.
  • details.windowSeconds: Window length in seconds.
Example response body
{
"error": {
"type": "RATE_LIMIT_ERROR",
"code": "RATE_LIMITED",
"message": "Too many requests for this project. Retry after the time in Retry-After.",
"userFacingMessage": "Too many actions are in progress. Please try again in a moment.",
"httpStatusCode": 429,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The project exceeded its request rate across all keys, or too many requests (including ones with invalid keys) came from one IP address. `details.scope` says which limit applied.",
"fixes": [
{
"actor": "developer",
"action": "Retry after the Retry-After interval and spread requests over time. Read the RateLimit-* headers to stay under the limit."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#rate_limited",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {
"scope": "...",
"limit": "...",
"windowSeconds": "..."
}
}
}

CONNECTION_QUEUE_FULL

HTTP status
429
Retry
Retry the same request
Outcome
not_applied

Message. This connection has too many pending requests.

Cause. QuickBooks processes one request at a time per company file. The connection already has the maximum number of pending requests (200), or of callers waiting synchronously (50). details.reason says which.

What the end user sees. Too many actions are in progress. Please try again in a moment.

How to fix it

  • You (developer): Wait for pending requests to finish before submitting more.
  • You (developer): Use async requests (Prefer: respond-async) for bulk work instead of many concurrent synchronous calls.

Details

  • details.reason: pending_requests or sync_waiters.
  • details.limit: The limit that applied.
Example response body
{
"error": {
"type": "RATE_LIMIT_ERROR",
"code": "CONNECTION_QUEUE_FULL",
"message": "This connection has too many pending requests.",
"userFacingMessage": "Too many actions are in progress. Please try again in a moment.",
"httpStatusCode": 429,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks processes one request at a time per company file. The connection already has the maximum number of pending requests (200), or of callers waiting synchronously (50). `details.reason` says which.",
"fixes": [
{
"actor": "developer",
"action": "Wait for pending requests to finish before submitting more."
},
{
"actor": "developer",
"action": "Use async requests (Prefer: respond-async) for bulk work instead of many concurrent synchronous calls."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#connection_queue_full",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {
"reason": "...",
"limit": "..."
}
}
}

Integration connection error INTEGRATION_CONNECTION_ERROR

The end user's environment (computer, Web Connector, QuickBooks) is not ready. Log as a warning; usually the end user must act.

INTEGRATION_CONNECTION_NOT_SET_UP

HTTP status
409
Retry
Change the request or the setup first
Outcome
not_applied

Message. This end user has not finished connecting QuickBooks Desktop.

Cause. No Web Connector has completed setup for this end user.

What the end user sees. QuickBooks Desktop is not connected yet. Finish the connection setup to continue.

How to fix it

  • You (developer): Create an auth session and send the end user its authFlowUrl.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "INTEGRATION_CONNECTION_NOT_SET_UP",
"message": "This end user has not finished connecting QuickBooks Desktop.",
"userFacingMessage": "QuickBooks Desktop is not connected yet. Finish the connection setup to continue.",
"httpStatusCode": 409,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "No Web Connector has completed setup for this end user.",
"fixes": [
{
"actor": "developer",
"action": "Create an auth session and send the end user its authFlowUrl."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#integration_connection_not_set_up",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

INTEGRATION_CONNECTION_NOT_ACTIVE

HTTP status
503
Retry
Retry the same request
Outcome
not_applied

Message. The QuickBooks Web Connector for this end user has not checked in recently.

Cause. The computer is off, asleep or signed out, the Web Connector is closed, or Auto-Run is off.

What the end user sees. The computer that runs QuickBooks Desktop is not reachable. Make sure it is on, signed in, and that the QuickBooks Web Connector is running.

How to fix it

  • End user: Turn on and sign in to the computer that runs QuickBooks, start the QuickBooks Web Connector and check Auto-Run for this application.
  • You (developer): Retry after the end user confirms the Web Connector is running.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "INTEGRATION_CONNECTION_NOT_ACTIVE",
"message": "The QuickBooks Web Connector for this end user has not checked in recently.",
"userFacingMessage": "The computer that runs QuickBooks Desktop is not reachable. Make sure it is on, signed in, and that the QuickBooks Web Connector is running.",
"httpStatusCode": 503,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The computer is off, asleep or signed out, the Web Connector is closed, or Auto-Run is off.",
"fixes": [
{
"actor": "end_user",
"action": "Turn on and sign in to the computer that runs QuickBooks, start the QuickBooks Web Connector and check Auto-Run for this application."
},
{
"actor": "developer",
"action": "Retry after the end user confirms the Web Connector is running."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#integration_connection_not_active",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

INTEGRATION_CONNECTION_DISABLED

HTTP status
403
Retry
Change the request or the setup first
Outcome
not_applied

Message. This connection is disabled.

Cause. The connection was disabled in the dashboard.

What the end user sees. This QuickBooks connection is turned off. Please contact the application provider.

How to fix it

  • You (developer): Enable the connection in the dashboard, or create a new auth session.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "INTEGRATION_CONNECTION_DISABLED",
"message": "This connection is disabled.",
"userFacingMessage": "This QuickBooks connection is turned off. Please contact the application provider.",
"httpStatusCode": 403,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The connection was disabled in the dashboard.",
"fixes": [
{
"actor": "developer",
"action": "Enable the connection in the dashboard, or create a new auth session."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#integration_connection_disabled",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

QBD_CONNECTION_ERROR

HTTP status
503
Retry
Retry the same request
Outcome
not_applied

Message. The Web Connector could not open QuickBooks Desktop.

Cause. QuickBooks reported an error opening the connection that has no more specific mapping. integrationCode has the HRESULT.

What the end user sees. QuickBooks Desktop could not be opened on the computer that runs it. Make sure QuickBooks is installed and the company file opens normally.

How to fix it

  • End user: Open QuickBooks Desktop and the company file on the host computer and close any open windows.
  • Support: Look up the HRESULT in integrationCode.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_CONNECTION_ERROR",
"message": "The Web Connector could not open QuickBooks Desktop.",
"userFacingMessage": "QuickBooks Desktop could not be opened on the computer that runs it. Make sure QuickBooks is installed and the company file opens normally.",
"httpStatusCode": 503,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks reported an error opening the connection that has no more specific mapping. `integrationCode` has the HRESULT.",
"fixes": [
{
"actor": "end_user",
"action": "Open QuickBooks Desktop and the company file on the host computer and close any open windows."
},
{
"actor": "support",
"action": "Look up the HRESULT in integrationCode."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_connection_error",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

QBD_CANNOT_START

HTTP status
503
Retry
Retry the same request
Outcome
not_applied
QuickBooks codes
0x80040408, 0x80040401

Message. QuickBooks Desktop could not be started on the host computer.

Cause. The Web Connector tried to start QuickBooks and failed, often because it is not installed for the signed-in Windows user or another instance is starting.

What the end user sees. QuickBooks Desktop could not start. Open QuickBooks and your company file on the computer that runs it, then try again.

How to fix it

  • End user: Open QuickBooks Desktop and the company file manually and leave it open.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_CANNOT_START",
"message": "QuickBooks Desktop could not be started on the host computer.",
"userFacingMessage": "QuickBooks Desktop could not start. Open QuickBooks and your company file on the computer that runs it, then try again.",
"httpStatusCode": 503,
"integrationCode": "0x80040408",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The Web Connector tried to start QuickBooks and failed, often because it is not installed for the signed-in Windows user or another instance is starting.",
"fixes": [
{
"actor": "end_user",
"action": "Open QuickBooks Desktop and the company file manually and leave it open."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_cannot_start",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

QBD_STARTING

HTTP status
503
Retry
Retry the same request
Outcome
not_applied
QuickBooks codes
0x80040424, 0x8004042D

Message. QuickBooks Desktop is still starting.

Cause. QuickBooks had not finished opening the company file when the Web Connector connected.

What the end user sees. QuickBooks Desktop is still opening. Please try again in a minute.

How to fix it

  • You (developer): Retry after a short wait.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_STARTING",
"message": "QuickBooks Desktop is still starting.",
"userFacingMessage": "QuickBooks Desktop is still opening. Please try again in a minute.",
"httpStatusCode": 503,
"integrationCode": "0x80040424",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks had not finished opening the company file when the Web Connector connected.",
"fixes": [
{
"actor": "developer",
"action": "Retry after a short wait."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_starting",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

QBD_MODAL_DIALOG_OPEN

HTTP status
503
Retry
Retry the same request
Outcome
not_applied
QuickBooks codes
0x80040414, QBWC1053

Message. QuickBooks Desktop has a dialog window open, so it could not accept the request.

Cause. A modal dialog (for example a backup reminder or an update prompt) blocks every integrated application until someone closes it.

What the end user sees. QuickBooks Desktop has a window open that needs attention. Close any open QuickBooks dialog on the computer that runs QuickBooks, then try again.

How to fix it

  • End user: Close the open dialog in QuickBooks Desktop on the host computer.
  • You (developer): Retry after the end user confirms; reads can be retried automatically.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_MODAL_DIALOG_OPEN",
"message": "QuickBooks Desktop has a dialog window open, so it could not accept the request.",
"userFacingMessage": "QuickBooks Desktop has a window open that needs attention. Close any open QuickBooks dialog on the computer that runs QuickBooks, then try again.",
"httpStatusCode": 503,
"integrationCode": "0x80040414",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "A modal dialog (for example a backup reminder or an update prompt) blocks every integrated application until someone closes it.",
"fixes": [
{
"actor": "end_user",
"action": "Close the open dialog in QuickBooks Desktop on the host computer."
},
{
"actor": "developer",
"action": "Retry after the end user confirms; reads can be retried automatically."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_modal_dialog_open",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

QBD_QUICKBOOKS_NOT_RESPONDING

HTTP status
503
Retry
Retry the same request
Outcome
not_applied
QuickBooks codes
QBWC1053, QBWC1079

Message. The Web Connector checked in, but QuickBooks Desktop did not answer it, so the request was not sent.

Cause. The Web Connector started a session and QuickBooks never answered. Most often a QuickBooks dialog is open: the Web Connector reports that (QBWC1053) only in its own window and retries. A company file restored from an older backup can also fail this way (QBWC1079). details.diagnosis ranks the probable causes.

What the end user sees. QuickBooks Desktop is not responding. Close any open QuickBooks window or dialog on the computer that runs QuickBooks, then try again.

How to fix it

  • End user: On the computer that runs QuickBooks, close any open QuickBooks dialog or window (preferences, backup reminder, update prompt, login).
  • End user: If the company file was restored from a backup, remove this application from the Web Connector and add it again.
  • You (developer): Retry after the end user confirms, or use async requests so the work waits for QuickBooks.

Details

  • details.requestId: The request that was not sent.
  • details.diagnosis: Probable causes ranked by likelihood.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_QUICKBOOKS_NOT_RESPONDING",
"message": "The Web Connector checked in, but QuickBooks Desktop did not answer it, so the request was not sent.",
"userFacingMessage": "QuickBooks Desktop is not responding. Close any open QuickBooks window or dialog on the computer that runs QuickBooks, then try again.",
"httpStatusCode": 503,
"integrationCode": "QBWC1053",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The Web Connector started a session and QuickBooks never answered. Most often a QuickBooks dialog is open: the Web Connector reports that (QBWC1053) only in its own window and retries. A company file restored from an older backup can also fail this way (QBWC1079). `details.diagnosis` ranks the probable causes.",
"fixes": [
{
"actor": "end_user",
"action": "On the computer that runs QuickBooks, close any open QuickBooks dialog or window (preferences, backup reminder, update prompt, login)."
},
{
"actor": "end_user",
"action": "If the company file was restored from a backup, remove this application from the Web Connector and add it again."
},
{
"actor": "developer",
"action": "Retry after the end user confirms, or use async requests so the work waits for QuickBooks."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_quickbooks_not_responding",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {
"requestId": "...",
"diagnosis": "..."
}
}
}

QBD_WRONG_COMPANY_FILE_OPEN

HTTP status
503
Retry
Retry the same request
Outcome
not_applied
QuickBooks codes
0x8004040A

Message. A different QuickBooks company file is open on the host computer.

Cause. QuickBooks opens one company file at a time per computer, and the open file is not the one this connection uses.

What the end user sees. A different company file is open in QuickBooks Desktop. Open the company file you connected, then try again.

How to fix it

  • End user: Close the open company file and open the connected one.
  • You (developer): Retry after the end user opens the right file. If the company was renamed on purpose, reset the company file (POST /v1/end-users/{id}/reset-company-file) after confirming with the end user.

Details

  • details.openCompanyName: Company name QuickBooks reported for the open file (when the snapshot proved the mismatch).
  • details.connectedCompanyName: Company name of the file this connection was set up with.
  • details.channel: qbwc_connection_error when inferred from the Web Connector (it reports 0x80040408 where the QuickBooks SDK reports 0x8004040A).
  • details.inferred: true when the code was inferred from a Web Connector HRESULT rather than proven by the company snapshot.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_WRONG_COMPANY_FILE_OPEN",
"message": "A different QuickBooks company file is open on the host computer.",
"userFacingMessage": "A different company file is open in QuickBooks Desktop. Open the company file you connected, then try again.",
"httpStatusCode": 503,
"integrationCode": "0x8004040A",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks opens one company file at a time per computer, and the open file is not the one this connection uses.",
"fixes": [
{
"actor": "end_user",
"action": "Close the open company file and open the connected one."
},
{
"actor": "developer",
"action": "Retry after the end user opens the right file. If the company was renamed on purpose, reset the company file (POST /v1/end-users/{id}/reset-company-file) after confirming with the end user."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_wrong_company_file_open",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {
"openCompanyName": "...",
"connectedCompanyName": "...",
"channel": "...",
"inferred": "..."
}
}
}

QBD_COMPANY_FILE_MISMATCH

HTTP status
409
Retry
Change the request or the setup first
Outcome
not_applied

Message. The company file reports a different company identity than this connection.

Cause. The file looks like a copy or a different company than the one this connection was set up with.

What the end user sees. The open company file does not match the one that was connected. Please contact the application provider.

How to fix it

  • You (developer): Confirm with the end user which file is correct, then reset the company file (POST /v1/end-users/{id}/reset-company-file) or reconnect with a new auth session.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_COMPANY_FILE_MISMATCH",
"message": "The company file reports a different company identity than this connection.",
"userFacingMessage": "The open company file does not match the one that was connected. Please contact the application provider.",
"httpStatusCode": 409,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The file looks like a copy or a different company than the one this connection was set up with.",
"fixes": [
{
"actor": "developer",
"action": "Confirm with the end user which file is correct, then reset the company file (POST /v1/end-users/{id}/reset-company-file) or reconnect with a new auth session."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_company_file_mismatch",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

QBD_COMPANY_FILE_NOT_FOUND

HTTP status
503
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
0x80040403, 0x80040416, 0x80040417

Message. QuickBooks could not open the company file at its stored location.

Cause. The company file is not reachable at its stored location: a mapped network drive (a drive letter such as W:) is disconnected or mapped only for another Windows user, the server or share is offline, or the file was moved, renamed or deleted; or QuickBooks was closed and no file path was available. Through the Web Connector this often arrives as 0x80040408 ("Could not start QuickBooks.") for the stored path: when that path starts with a drive letter other than C:, or QuickBooks refused the same path twice in a row, the API reports this code with details.inferred and details.reason path_unreachable (M1: a disconnected W: drive while the server share stayed reachable by its UNC path).

What the end user sees. QuickBooks Desktop could not reach the company file. If it is on a network drive, reconnect the drive or open the file by its network path; if it was moved or renamed, open it in QuickBooks. Then try again.

How to fix it

  • End user: If the company file is on a mapped network drive (for example W:), reconnect that drive in File Explorer on the computer that runs QuickBooks, signed in as the Windows user who runs QuickBooks and the Web Connector, or open the company file in QuickBooks by its network path (\\server\share\file.qbw). Then leave it open.
  • End user: If the file was moved or renamed, open it from its new location in QuickBooks Desktop and leave it open.
  • You (developer): The next update asks QuickBooks for the open file and adopts its path when the company matches. If the file moved for good, reset the stored company file path (dashboard, or POST /v1/end-users/{id}/reset-company-file with mode path).

Details

  • details.reason: path_unreachable when inferred from the Web Connector's 0x80040408 for the stored path.
  • details.inferred: true when the code was inferred from a Web Connector HRESULT rather than reported directly.
  • details.pathKind: drive_letter (a drive letter other than C:, usually a mapped network drive), unc (\\server\share\...) or local.
  • details.refusals: How many updates in a row QuickBooks refused the stored path.
  • details.channel: qbwc_connection_error.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_COMPANY_FILE_NOT_FOUND",
"message": "QuickBooks could not open the company file at its stored location.",
"userFacingMessage": "QuickBooks Desktop could not reach the company file. If it is on a network drive, reconnect the drive or open the file by its network path; if it was moved or renamed, open it in QuickBooks. Then try again.",
"httpStatusCode": 503,
"integrationCode": "0x80040403",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The company file is not reachable at its stored location: a mapped network drive (a drive letter such as W:) is disconnected or mapped only for another Windows user, the server or share is offline, or the file was moved, renamed or deleted; or QuickBooks was closed and no file path was available. Through the Web Connector this often arrives as 0x80040408 (\"Could not start QuickBooks.\") for the stored path: when that path starts with a drive letter other than C:, or QuickBooks refused the same path twice in a row, the API reports this code with `details.inferred` and `details.reason` `path_unreachable` (M1: a disconnected W: drive while the server share stayed reachable by its UNC path).",
"fixes": [
{
"actor": "end_user",
"action": "If the company file is on a mapped network drive (for example W:), reconnect that drive in File Explorer on the computer that runs QuickBooks, signed in as the Windows user who runs QuickBooks and the Web Connector, or open the company file in QuickBooks by its network path (\\\\server\\share\\file.qbw). Then leave it open."
},
{
"actor": "end_user",
"action": "If the file was moved or renamed, open it from its new location in QuickBooks Desktop and leave it open."
},
{
"actor": "developer",
"action": "The next update asks QuickBooks for the open file and adopts its path when the company matches. If the file moved for good, reset the stored company file path (dashboard, or POST /v1/end-users/{id}/reset-company-file with mode `path`)."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_company_file_not_found",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"reason": "...",
"inferred": "...",
"pathKind": "...",
"refusals": "...",
"channel": "..."
}
}
}

QBD_FILE_MODE_CONFLICT

HTTP status
503
Retry
Retry the same request
Outcome
not_applied
QuickBooks codes
0x80040410, 0x80040422

Message. The company file is open in a mode that does not allow this connection.

Cause. The file is open in single-user mode by another application or user, or in a different file mode than requested (also while someone switches between single-user and multi-user mode). After this error the connection opens no QuickBooks session for 2 minutes, so it does not race the file being reopened. A synchronous request sent inside that window fails at once with this code, details.retryAt and Retry-After; nothing is sent. Queued requests wait (waitingReason: file_mode_conflict) and run after the window, unless their deadline or queue TTL expires first, or the conflict repeats until their budget of failed sessions is spent.

What the end user sees. The QuickBooks company file is open in single-user mode or in use by another program. Ask whoever has it open to finish, or choose File > Switch to Multi-user Mode in QuickBooks. If you are switching modes yourself, let the Web Connector finish first. The connection tries again in a few minutes.

How to fix it

  • End user: Ask whoever has the file open in single-user mode to finish or switch to multi-user mode, and close other programs that hold the file. Let the Web Connector finish its update (or exit it) before switching modes.
  • You (developer): Retry after details.retryAt (Retry-After), or send the request asynchronously (Prefer: respond-async) with a queue TTL that outlasts the window so it runs then.

Details

  • details.retryAt: When the connection opens QuickBooks again (UTC, ISO 8601); set when the request arrived inside the 2-minute window.
  • details.retryAfterSeconds: Seconds until retryAt; also sent as the Retry-After header.
  • details.diagnosis: The connection diagnosis, with the file_mode_conflict cause.
  • details.hresult: HRESULT the Web Connector reported.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_FILE_MODE_CONFLICT",
"message": "The company file is open in a mode that does not allow this connection.",
"userFacingMessage": "The QuickBooks company file is open in single-user mode or in use by another program. Ask whoever has it open to finish, or choose File > Switch to Multi-user Mode in QuickBooks. If you are switching modes yourself, let the Web Connector finish first. The connection tries again in a few minutes.",
"httpStatusCode": 503,
"integrationCode": "0x80040410",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The file is open in single-user mode by another application or user, or in a different file mode than requested (also while someone switches between single-user and multi-user mode). After this error the connection opens no QuickBooks session for 2 minutes, so it does not race the file being reopened. A synchronous request sent inside that window fails at once with this code, `details.retryAt` and `Retry-After`; nothing is sent. Queued requests wait (`waitingReason: file_mode_conflict`) and run after the window, unless their deadline or queue TTL expires first, or the conflict repeats until their budget of failed sessions is spent.",
"fixes": [
{
"actor": "end_user",
"action": "Ask whoever has the file open in single-user mode to finish or switch to multi-user mode, and close other programs that hold the file. Let the Web Connector finish its update (or exit it) before switching modes."
},
{
"actor": "developer",
"action": "Retry after details.retryAt (Retry-After), or send the request asynchronously (Prefer: respond-async) with a queue TTL that outlasts the window so it runs then."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_file_mode_conflict",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {
"retryAt": "...",
"retryAfterSeconds": "...",
"diagnosis": "...",
"hresult": "..."
}
}
}

QBD_ADMIN_REQUIRED

HTTP status
503
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
0x80040418, QBWC1039

Message. The first connection to this company file must be authorized by the QuickBooks Admin user.

Cause. QuickBooks allows only the Admin user to grant an application first access to a company file.

What the end user sees. QuickBooks needs the Admin user to allow this connection the first time. Sign in to QuickBooks as Admin, in single-user mode, and run the Web Connector again.

How to fix it

  • End user: Sign in to the company file as Admin in single-user mode and accept the authorization prompt.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_ADMIN_REQUIRED",
"message": "The first connection to this company file must be authorized by the QuickBooks Admin user.",
"userFacingMessage": "QuickBooks needs the Admin user to allow this connection the first time. Sign in to QuickBooks as Admin, in single-user mode, and run the Web Connector again.",
"httpStatusCode": 503,
"integrationCode": "0x80040418",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks allows only the Admin user to grant an application first access to a company file.",
"fixes": [
{
"actor": "end_user",
"action": "Sign in to the company file as Admin in single-user mode and accept the authorization prompt."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_admin_required",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

QBD_ACCESS_NOT_GRANTED

HTTP status
503
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
0x80040420, 0x8004041A, 0x8004041D

Message. QuickBooks has not granted this application access to the company file.

Cause. Access was denied at the authorization prompt, later revoked, or the application is not allowed to sign in automatically.

What the end user sees. QuickBooks Desktop has not allowed this connection. In QuickBooks, open Edit > Preferences > Integrated Applications and allow access for this application.

How to fix it

  • End user: In QuickBooks, open Edit > Preferences > Integrated Applications > Company Preferences and allow this application, including access when QuickBooks is not running.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_ACCESS_NOT_GRANTED",
"message": "QuickBooks has not granted this application access to the company file.",
"userFacingMessage": "QuickBooks Desktop has not allowed this connection. In QuickBooks, open Edit > Preferences > Integrated Applications and allow access for this application.",
"httpStatusCode": 503,
"integrationCode": "0x80040420",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "Access was denied at the authorization prompt, later revoked, or the application is not allowed to sign in automatically.",
"fixes": [
{
"actor": "end_user",
"action": "In QuickBooks, open Edit > Preferences > Integrated Applications > Company Preferences and allow this application, including access when QuickBooks is not running."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_access_not_granted",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

QBD_REAUTHORIZATION_REQUIRED

HTTP status
503
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
0x80040435

Message. QuickBooks needs its Admin to reauthorize this application in the Integrated Applications preferences before it can log in automatically.

Cause. QuickBooks answered the Web Connector with 0x80040435: "Recent changes to your configuration require you (the QuickBooks Administrator) to go into the Integrated Applications preferences and re-authorize your integrated application to log in automatically." It follows a change QuickBooks treats as a new configuration, for example the same connector added to the Web Connector on another computer (M1, QuickBooks Enterprise 24). Until the Admin reauthorizes, every update fails the same way; nothing was sent.

What the end user sees. QuickBooks Desktop needs its Admin to allow this connection again. In QuickBooks, sign in as Admin, open Edit > Preferences > Integrated Applications > Company Preferences, select this application and click Reauthorize, then try again.

How to fix it

  • End user: On a computer with the company file, open QuickBooks Desktop and sign in to the company file as Admin. If the title bar says multi-user, ask everyone else who uses the company file to save their work and close it, then choose File > Switch to Single-user Mode (Company Preferences are "Not allowed in multi-user mode"). Choose Edit > Preferences > Integrated Applications > Company Preferences, select this application and click Reauthorize. Then click Properties, check "Allow access for this application even when QuickBooks isn't running" and click OK twice. Switch back to multi-user mode if others use the file.
  • You (developer): Ask the end user's QuickBooks Admin to reauthorize the application, then send the request again; nothing was changed. Retrying before that fails the same way.

Details

  • details.hresult: HRESULT the Web Connector reported (0x80040435).
  • details.quickbooksMessage: The QuickBooks message, which names the Integrated Applications preferences.
  • details.channel: qbwc_connection_error.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_REAUTHORIZATION_REQUIRED",
"message": "QuickBooks needs its Admin to reauthorize this application in the Integrated Applications preferences before it can log in automatically.",
"userFacingMessage": "QuickBooks Desktop needs its Admin to allow this connection again. In QuickBooks, sign in as Admin, open Edit > Preferences > Integrated Applications > Company Preferences, select this application and click Reauthorize, then try again.",
"httpStatusCode": 503,
"integrationCode": "0x80040435",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks answered the Web Connector with 0x80040435: \"Recent changes to your configuration require you (the QuickBooks Administrator) to go into the Integrated Applications preferences and re-authorize your integrated application to log in automatically.\" It follows a change QuickBooks treats as a new configuration, for example the same connector added to the Web Connector on another computer (M1, QuickBooks Enterprise 24). Until the Admin reauthorizes, every update fails the same way; nothing was sent.",
"fixes": [
{
"actor": "end_user",
"action": "On a computer with the company file, open QuickBooks Desktop and sign in to the company file as Admin. If the title bar says multi-user, ask everyone else who uses the company file to save their work and close it, then choose File > Switch to Single-user Mode (Company Preferences are \"Not allowed in multi-user mode\"). Choose Edit > Preferences > Integrated Applications > Company Preferences, select this application and click Reauthorize. Then click Properties, check \"Allow access for this application even when QuickBooks isn't running\" and click OK twice. Switch back to multi-user mode if others use the file."
},
{
"actor": "developer",
"action": "Ask the end user's QuickBooks Admin to reauthorize the application, then send the request again; nothing was changed. Retrying before that fails the same way."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_reauthorization_required",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"hresult": "...",
"quickbooksMessage": "...",
"channel": "..."
}
}
}

QBD_VERSION_UNSUPPORTED

HTTP status
503
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
0x80040404, 0x80040423, 0x80040428

Message. The installed QuickBooks Desktop version is not supported.

Cause. QuickBooks reports a qbXML version below 13.0 (QuickBooks 2014) or does not support the requested version.

What the end user sees. This version of QuickBooks Desktop is too old to connect. Update QuickBooks Desktop, then try again.

How to fix it

  • End user: Update QuickBooks Desktop to a supported release.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_VERSION_UNSUPPORTED",
"message": "The installed QuickBooks Desktop version is not supported.",
"userFacingMessage": "This version of QuickBooks Desktop is too old to connect. Update QuickBooks Desktop, then try again.",
"httpStatusCode": 503,
"integrationCode": "0x80040404",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks reports a qbXML version below 13.0 (QuickBooks 2014) or does not support the requested version.",
"fixes": [
{
"actor": "end_user",
"action": "Update QuickBooks Desktop to a supported release."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_version_unsupported",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

REQUEST_TIMEOUT_NOT_SENT

HTTP status
504
Retry
Retry the same request
Outcome
not_applied

Message. The request timed out before it was sent to QuickBooks and was canceled.

Cause. The Web Connector did not pick up the request within Daapi-Timeout-Seconds. Nothing reached QuickBooks. details.diagnosis lists the probable causes the server observed (for example a QuickBooks dialog left open, or the Web Connector not running).

What the end user sees. QuickBooks Desktop was not available in time. Please try again.

How to fix it

  • You (developer): Retry with the same Idempotency-Key, or use a longer Daapi-Timeout-Seconds.
  • End user: Make sure the computer running QuickBooks is on and the Web Connector is running.

Details

  • details.requestId: The canceled request.
  • details.diagnosis: Probable causes ranked by likelihood, with the connector last check-in (see the request diagnosis object).
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "REQUEST_TIMEOUT_NOT_SENT",
"message": "The request timed out before it was sent to QuickBooks and was canceled.",
"userFacingMessage": "QuickBooks Desktop was not available in time. Please try again.",
"httpStatusCode": 504,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The Web Connector did not pick up the request within Daapi-Timeout-Seconds. Nothing reached QuickBooks. `details.diagnosis` lists the probable causes the server observed (for example a QuickBooks dialog left open, or the Web Connector not running).",
"fixes": [
{
"actor": "developer",
"action": "Retry with the same Idempotency-Key, or use a longer Daapi-Timeout-Seconds."
},
{
"actor": "end_user",
"action": "Make sure the computer running QuickBooks is on and the Web Connector is running."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#request_timeout_not_sent",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {
"requestId": "...",
"diagnosis": "..."
}
}
}

REQUEST_EXPIRED

HTTP status
504
Retry
Retry the same request
Outcome
not_applied

Message. The request expired in the queue before it could be sent to QuickBooks.

Cause. The queue TTL passed while the connection was offline or busy. Nothing reached QuickBooks. details.diagnosis lists the probable causes. A synchronous call returns it as HTTP 504 when it waited on an asynchronous request (same Idempotency-Key) that expired.

What the end user sees. QuickBooks Desktop was not available in time. Please try again.

How to fix it

  • You (developer): Submit the request again once the connection is online.

Details

  • details.diagnosis: Probable causes ranked by likelihood (see the request diagnosis object).
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "REQUEST_EXPIRED",
"message": "The request expired in the queue before it could be sent to QuickBooks.",
"userFacingMessage": "QuickBooks Desktop was not available in time. Please try again.",
"httpStatusCode": 504,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The queue TTL passed while the connection was offline or busy. Nothing reached QuickBooks. `details.diagnosis` lists the probable causes. A synchronous call returns it as HTTP 504 when it waited on an asynchronous request (same Idempotency-Key) that expired.",
"fixes": [
{
"actor": "developer",
"action": "Submit the request again once the connection is online."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#request_expired",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {
"diagnosis": "..."
}
}
}

QBD_REQUEST_TIMEOUT

HTTP status
504
Retry
Read the request instead of resending
Outcome
pending

Message. QuickBooks is still processing the request; the wait timed out.

Cause. The request reached QuickBooks but did not finish within Daapi-Timeout-Seconds. It keeps running.

What the end user sees. QuickBooks Desktop is taking longer than usual. The action is still in progress.

How to fix it

  • You (developer): Poll GET /v1/requests/{details.requestId}?waitSeconds=60 for the result. Do not resend the request.

Details

  • details.requestId: The request that keeps running.
  • details.diagnosis: What the server observes about the running request.
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_REQUEST_TIMEOUT",
"message": "QuickBooks is still processing the request; the wait timed out.",
"userFacingMessage": "QuickBooks Desktop is taking longer than usual. The action is still in progress.",
"httpStatusCode": 504,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The request reached QuickBooks but did not finish within Daapi-Timeout-Seconds. It keeps running.",
"fixes": [
{
"actor": "developer",
"action": "Poll GET /v1/requests/{details.requestId}?waitSeconds=60 for the result. Do not resend the request."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_request_timeout",
"retryable": false,
"outcome": "pending",
"param": null,
"details": {
"requestId": "...",
"diagnosis": "..."
}
}
}

QBD_READ_INTERRUPTED

HTTP status
502
Retry
Retry the same request
Outcome
not_applicable

Message. The connection to QuickBooks broke while reading; the automatic retry also failed.

Cause. The read was sent to QuickBooks, which did not return its result: the Web Connector session ended, or QuickBooks returned an error instead of a response (for example HRESULT 0x80040402 when QuickBooks closed unexpectedly). The server sends an interrupted read once more; this code means that retry was interrupted too, or was not sent before the deadline or queue TTL (details.retry). Reads change nothing, so retrying is safe. details.diagnosis says what the server observed when the retry did not go out.

What the end user sees. The connection to QuickBooks Desktop was interrupted. Please try again.

How to fix it

  • You (developer): Retry the read. If details.diagnosis ranks quickbooks_closed_unexpectedly first, ask the end user to restart the Web Connector and QuickBooks first.

Details

  • details.reason: Why the result was lost, with the values of QBD_WRITE_OUTCOME_UNKNOWN reason (for example hresult_0x80040402). An open set.
  • details.requestId: The interrupted request (present when its retry was not sent).
  • details.firstSentAt: When the read was first sent to QuickBooks (present when its retry was not sent). UTC, ISO 8601.
  • details.retry: Why the automatic retry did not go out: deadline_before_send (Daapi-Timeout-Seconds passed), queue_ttl (the async queue TTL passed) or quickbooks_not_responding. Absent when the retry itself was interrupted. An open set.
  • details.diagnosis: Probable causes ranked by likelihood when the retry did not go out (see the request diagnosis object).
Example response body
{
"error": {
"type": "INTEGRATION_CONNECTION_ERROR",
"code": "QBD_READ_INTERRUPTED",
"message": "The connection to QuickBooks broke while reading; the automatic retry also failed.",
"userFacingMessage": "The connection to QuickBooks Desktop was interrupted. Please try again.",
"httpStatusCode": 502,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The read was sent to QuickBooks, which did not return its result: the Web Connector session ended, or QuickBooks returned an error instead of a response (for example HRESULT 0x80040402 when QuickBooks closed unexpectedly). The server sends an interrupted read once more; this code means that retry was interrupted too, or was not sent before the deadline or queue TTL (`details.retry`). Reads change nothing, so retrying is safe. `details.diagnosis` says what the server observed when the retry did not go out.",
"fixes": [
{
"actor": "developer",
"action": "Retry the read. If `details.diagnosis` ranks quickbooks_closed_unexpectedly first, ask the end user to restart the Web Connector and QuickBooks first."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_read_interrupted",
"retryable": true,
"outcome": "not_applicable",
"param": null,
"details": {
"reason": "...",
"requestId": "...",
"firstSentAt": "...",
"retry": "...",
"diagnosis": "..."
}
}
}

Integration error INTEGRATION_ERROR

QuickBooks rejected the request. Developer-actionable.

QBD_MERGE_NOT_ALLOWED

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
3500

Message. QuickBooks Desktop refused this merge with status 3500 and did not identify why. Do not retry automatically.

Cause. QuickBooks returned native status 3500 for an identified ListMerge request outside the verified multi-user refusal handling. Single-user mode is necessary but does not guarantee eligibility. Status 3500 alone does not identify the underlying cause.

What the end user sees. QuickBooks Desktop refused to merge these records. Ask your QuickBooks administrator to review them before another attempt.

How to fix it

  • You (developer): Do not retry automatically. Preserve the failed request and native response; inspect the current source, target and their references. Follow https://www.desktopaccountingapi.com/docs/quickbooks/delete-and-merge/.
  • End user: Back up the company file and arrange an administrator-led review in QuickBooks. Confirm consent and prerequisites before a new attempt with fresh revisions; reconcile both records and their references afterward. Never delete accounting history to make a merge pass.
  • You (developer): If the business accepts keeping separate history, make the duplicate inactive and retain its application mapping. This does not combine the records.

Details

  • details.qbxmlStatusCode: The native status, 3500.
  • details.qbxmlStatusMessage: The complete native message from QuickBooks, without interpreting its wording as a cause.
  • details.requestElement: ListMergeRq, identified from the request.
  • details.listMergeType: The requested native list type, when known.
  • details.sourceId: ID of the record to merge away, from the request.
  • details.targetId: ID of the record to keep, from the request.
  • details.fileMode: single_user, multi_user, or null when unknown.
  • details.fileModeObservedAt: UTC snapshot time for the known session file mode, or null when unknown.
  • details.requestId: The failed API request ID. Preserve it for review and reconciliation.
  • details.diagnosis: For customer merges, customer_merge_native_refusal confirms the refusal without claiming an underlying cause.
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_MERGE_NOT_ALLOWED",
"message": "QuickBooks Desktop refused this merge with status 3500 and did not identify why. Do not retry automatically.",
"userFacingMessage": "QuickBooks Desktop refused to merge these records. Ask your QuickBooks administrator to review them before another attempt.",
"httpStatusCode": 422,
"integrationCode": "3500",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks returned native status 3500 for an identified ListMerge request outside the verified multi-user refusal handling. Single-user mode is necessary but does not guarantee eligibility. Status 3500 alone does not identify the underlying cause.",
"fixes": [
{
"actor": "developer",
"action": "Do not retry automatically. Preserve the failed request and native response; inspect the current source, target and their references. Follow https://www.desktopaccountingapi.com/docs/quickbooks/delete-and-merge/."
},
{
"actor": "end_user",
"action": "Back up the company file and arrange an administrator-led review in QuickBooks. Confirm consent and prerequisites before a new attempt with fresh revisions; reconcile both records and their references afterward. Never delete accounting history to make a merge pass."
},
{
"actor": "developer",
"action": "If the business accepts keeping separate history, make the duplicate inactive and retain its application mapping. This does not combine the records."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_merge_not_allowed",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"qbxmlStatusCode": "...",
"qbxmlStatusMessage": "...",
"requestElement": "...",
"listMergeType": "...",
"sourceId": "...",
"targetId": "...",
"fileMode": "...",
"fileModeObservedAt": "...",
"requestId": "...",
"diagnosis": "..."
}
}
}

QBD_REQUIRES_SINGLE_USER_MODE

HTTP status
409
Retry
Change the request or the setup first
Outcome
not_applied

Message. This change needs the company file open in single-user mode.

Cause. In multi-user mode QuickBooks Desktop refuses merges (status 3500), keeps a private custom field definition it answers as deleted, and refuses custom field values of a definition created in that mode (3180 for add or update, 3120 for delete); R7b on Enterprise 24 demonstrated successful examples in single-user mode. Single-user mode is necessary but does not guarantee that QuickBooks will accept a merge; a ListMerge 3500 outside the verified multi-user handling is QBD_MERGE_NOT_ALLOWED. The connection reads the mode from the Host snapshot of each session: merges and definition deletes are refused before anything is sent, and the custom field value statuses are mapped to this code. Nothing was changed.

What the end user sees. This change can only be made while the QuickBooks company file is open in single-user mode. In QuickBooks, choose File > Switch to Single-user Mode, then try again.

How to fix it

  • End user: Ask other users to close the company file. Then: 1. Uncheck Auto-Run for the app. 2. Wait for its current update to finish. 3. Wait another 15 seconds. 4. Exit the Web Connector normally. 5. In QuickBooks, choose File > Switch to Single-user Mode. 6. Start the Web Connector again. 7. Recheck Auto-Run for the app. Try the change again and wait for it to finish.
  • End user: If others work in the file, switch back after the change: 1. Uncheck Auto-Run for the app. 2. Wait for its current update to finish. 3. Wait another 15 seconds. 4. Exit the Web Connector normally. 5. In QuickBooks, choose File > Switch to Multi-user Mode. 6. Start the Web Connector again. 7. Recheck Auto-Run for the app.
  • End user: If an update or Exit remains stuck during either switch, follow https://www.desktopaccountingapi.com/docs/help/connection-errors/company-file-in-use/. Never force-close QuickBooks to switch modes.
  • You (developer): Send the request again after the end user has switched to single-user mode; nothing was changed. GET /v1/end-users/{id} shows the mode of the last session in integrationConnections[].companyFile.fileMode.

Details

  • details.fileMode: multi_user: how the company file was open.
  • details.operation: For a request refused before sending: merge or definition_delete.
  • details.qbxmlStatusCode: For a QuickBooks refusal: the native status (3500, 3180 or 3120).
  • details.qbxmlStatusMessage: For a QuickBooks refusal: the native status message.
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_REQUIRES_SINGLE_USER_MODE",
"message": "This change needs the company file open in single-user mode.",
"userFacingMessage": "This change can only be made while the QuickBooks company file is open in single-user mode. In QuickBooks, choose File > Switch to Single-user Mode, then try again.",
"httpStatusCode": 409,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "In multi-user mode QuickBooks Desktop refuses merges (status 3500), keeps a private custom field definition it answers as deleted, and refuses custom field values of a definition created in that mode (3180 for add or update, 3120 for delete); R7b on Enterprise 24 demonstrated successful examples in single-user mode. Single-user mode is necessary but does not guarantee that QuickBooks will accept a merge; a ListMerge 3500 outside the verified multi-user handling is QBD_MERGE_NOT_ALLOWED. The connection reads the mode from the Host snapshot of each session: merges and definition deletes are refused before anything is sent, and the custom field value statuses are mapped to this code. Nothing was changed.",
"fixes": [
{
"actor": "end_user",
"action": "Ask other users to close the company file. Then: 1. Uncheck Auto-Run for the app. 2. Wait for its current update to finish. 3. Wait another 15 seconds. 4. Exit the Web Connector normally. 5. In QuickBooks, choose File > Switch to Single-user Mode. 6. Start the Web Connector again. 7. Recheck Auto-Run for the app. Try the change again and wait for it to finish."
},
{
"actor": "end_user",
"action": "If others work in the file, switch back after the change: 1. Uncheck Auto-Run for the app. 2. Wait for its current update to finish. 3. Wait another 15 seconds. 4. Exit the Web Connector normally. 5. In QuickBooks, choose File > Switch to Multi-user Mode. 6. Start the Web Connector again. 7. Recheck Auto-Run for the app."
},
{
"actor": "end_user",
"action": "If an update or Exit remains stuck during either switch, follow https://www.desktopaccountingapi.com/docs/help/connection-errors/company-file-in-use/. Never force-close QuickBooks to switch modes."
},
{
"actor": "developer",
"action": "Send the request again after the end user has switched to single-user mode; nothing was changed. `GET /v1/end-users/{id}` shows the mode of the last session in `integrationConnections[].companyFile.fileMode`."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_requires_single_user_mode",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"fileMode": "...",
"operation": "...",
"qbxmlStatusCode": "...",
"qbxmlStatusMessage": "..."
}
}
}

QBD_REQUEST_ERROR

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applied

Message. QuickBooks Desktop rejected the request.

Cause. QuickBooks returned an error status without a more specific mapping. integrationCode holds the qbXML statusCode and details.qbxmlStatusMessage its message. When QuickBooks could not parse the request at all (HRESULT 0x80040400, usually a malformed passthrough body: a missing wrapper element, a wrong element name or order), integrationCode and details.hresult hold that HRESULT; QuickBooks processed nothing, so the outcome is not_applied. A list page that QuickBooks answered without usable continuation information also has this code, with details.reason iterator_missing or iterator_count_invalid: the list cannot be read to its end. A date filter on a list also has this code (status 3020 or 3030). QuickBooks Desktop reads updatedAfter and updatedBefore from 1970-01-02 to 2037-12-31, transactionDateFrom up to 2037-12-31 and transactionDateTo from 1970-01-01, and the start must not be after the end. When the filters sent explain the refusal, param names the filter and details.reason is date_range_inverted (the start is after the end) or date_out_of_range. Otherwise the message is the one QuickBooks returned, with details.reason date_filter_rejected when one of these filters was sent.

What the end user sees. QuickBooks Desktop did not accept this change. Please contact the application provider. For a read: QuickBooks Desktop could not provide this information. Please contact the application provider.

How to fix it

  • You (developer): Read details.qbxmlStatusMessage (or details.quickbooksMessage) and correct the request. For a parse error, check the qbXML against the QuickBooks SDK reference before sending it again.
  • You (developer): With iterator_missing or iterator_count_invalid, start the list again without a cursor; the pages read so far do not make a complete list.
  • You (developer): For a refused date filter, send updatedAfter and updatedBefore from 1970-01-02 to 2037-12-31, transactionDateFrom up to 2037-12-31 and transactionDateTo from 1970-01-01, with the start not after the end. param names the filter to change.

Details

  • details.requests: Passthrough only: every message of the set in order, each with request (element name), requestID (yours, or null), statusCode, statusSeverity and statusMessage; a message skipped after a stopOnError failure shows 3231. The error itself describes the first failed message.
  • details.qbxmlStatusCode: Native qbXML statusCode.
  • details.qbxmlStatusMessage: Native qbXML statusMessage.
  • details.hresult: HRESULT QuickBooks returned instead of a response (parse errors only).
  • details.quickbooksMessage: The message QuickBooks returned with that HRESULT.
  • details.reason: qbxml_parse_error when QuickBooks could not parse the request. On a list page, iterator_missing (QuickBooks reported more records but no iterator to read them) or iterator_count_invalid (QuickBooks did not report how many records remain): the list is incomplete. For a refused list date filter (status 3020 or 3030), date_range_inverted (the start is after the end), date_out_of_range (a date outside what QuickBooks Desktop reads) or date_filter_rejected (a date filter was sent, but the API cannot tell which one QuickBooks refused). An open set.
  • details.remaining: Records QuickBooks reported as remaining (with iterator_missing).
  • details.iteratorRemainingCount: The remaining count QuickBooks reported, when it is a number (with iterator_count_invalid).
  • details.onlyRequestInMessageSet: true with status 3231 ("The request has not been processed") when the request was alone in its message set, so no earlier request caused the skip: QuickBooks declined the request type for this company file (every lead request on Enterprise 24 in Windows tests).
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_REQUEST_ERROR",
"message": "QuickBooks Desktop rejected the request.",
"userFacingMessage": "QuickBooks Desktop did not accept this change. Please contact the application provider.",
"httpStatusCode": 422,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks returned an error status without a more specific mapping. `integrationCode` holds the qbXML statusCode and `details.qbxmlStatusMessage` its message. When QuickBooks could not parse the request at all (HRESULT 0x80040400, usually a malformed passthrough body: a missing wrapper element, a wrong element name or order), `integrationCode` and `details.hresult` hold that HRESULT; QuickBooks processed nothing, so the outcome is `not_applied`. A list page that QuickBooks answered without usable continuation information also has this code, with `details.reason` `iterator_missing` or `iterator_count_invalid`: the list cannot be read to its end. A date filter on a list also has this code (status 3020 or 3030). QuickBooks Desktop reads `updatedAfter` and `updatedBefore` from 1970-01-02 to 2037-12-31, `transactionDateFrom` up to 2037-12-31 and `transactionDateTo` from 1970-01-01, and the start must not be after the end. When the filters sent explain the refusal, `param` names the filter and `details.reason` is `date_range_inverted` (the start is after the end) or `date_out_of_range`. Otherwise the message is the one QuickBooks returned, with `details.reason` `date_filter_rejected` when one of these filters was sent.",
"fixes": [
{
"actor": "developer",
"action": "Read details.qbxmlStatusMessage (or details.quickbooksMessage) and correct the request. For a parse error, check the qbXML against the QuickBooks SDK reference before sending it again."
},
{
"actor": "developer",
"action": "With `iterator_missing` or `iterator_count_invalid`, start the list again without a cursor; the pages read so far do not make a complete list."
},
{
"actor": "developer",
"action": "For a refused date filter, send `updatedAfter` and `updatedBefore` from 1970-01-02 to 2037-12-31, `transactionDateFrom` up to 2037-12-31 and `transactionDateTo` from 1970-01-01, with the start not after the end. `param` names the filter to change."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_request_error",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"requests": "...",
"qbxmlStatusCode": "...",
"qbxmlStatusMessage": "...",
"hresult": "...",
"quickbooksMessage": "...",
"reason": "...",
"remaining": "...",
"iteratorRemainingCount": "...",
"onlyRequestInMessageSet": "..."
}
}
}

QBD_OBJECT_NOT_FOUND

HTTP status
404
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
500, 3120

Message. The QuickBooks object does not exist.

Cause. The ID does not exist in this company file, or the object was deleted in QuickBooks.

What the end user sees. The requested record was not found in QuickBooks Desktop.

How to fix it

  • You (developer): Check the ID, or list the objects to find the current one.

Details

  • details.requests: Passthrough only: every message of the set in order, each with request (element name), requestID (yours, or null), statusCode, statusSeverity and statusMessage; a message skipped after a stopOnError failure shows 3231. The error itself describes the first failed message.
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_OBJECT_NOT_FOUND",
"message": "The QuickBooks object does not exist.",
"userFacingMessage": "The requested record was not found in QuickBooks Desktop.",
"httpStatusCode": 404,
"integrationCode": "500",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The ID does not exist in this company file, or the object was deleted in QuickBooks.",
"fixes": [
{
"actor": "developer",
"action": "Check the ID, or list the objects to find the current one."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_object_not_found",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"requests": "..."
}
}
}

QBD_REFERENCE_NOT_FOUND

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
3120, 3140

Message. A referenced QuickBooks object does not exist or has the wrong type.

Cause. A reference such as customerId or itemId points to an object that does not exist or is a different kind of object.

What the end user sees. A record this action refers to was not found in QuickBooks Desktop. Please contact the application provider.

How to fix it

  • You (developer): Fix the reference named in param.

Details

  • details.requests: Passthrough only: every message of the set in order, each with request (element name), requestID (yours, or null), statusCode, statusSeverity and statusMessage; a message skipped after a stopOnError failure shows 3231. The error itself describes the first failed message.
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_REFERENCE_NOT_FOUND",
"message": "A referenced QuickBooks object does not exist or has the wrong type.",
"userFacingMessage": "A record this action refers to was not found in QuickBooks Desktop. Please contact the application provider.",
"httpStatusCode": 422,
"integrationCode": "3120",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "A reference such as customerId or itemId points to an object that does not exist or is a different kind of object.",
"fixes": [
{
"actor": "developer",
"action": "Fix the reference named in `param`."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_reference_not_found",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"requests": "..."
}
}
}

QBD_SALES_TAX_THROUGH_DATE_TOO_EARLY

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
3140

Message. QuickBooks asked for a later sales tax 'through' date and did not record this sales tax payment check.

Cause. QuickBooks rejects a sales tax payment check with status 3140 and the text "Redo operation after providing a later Sales Tax through date". The vendor and tax item references are valid. qbXML has no element for a 'through' date (SalesTaxPaymentCheckAdd takes the payee, date, bank account and lines only), so the API cannot send one. Verified on QuickBooks Enterprise 24 with transaction dates from today to a year ahead. Which change in the company file lets the same create succeed is not established, so no recovery that repeats the create is documented.

What the end user sees. QuickBooks Desktop did not record this sales tax check because it asked for a later sales tax date. Nothing was changed. Do not record this sales tax in QuickBooks just to get past this message: ask your accountant which sales tax period it belongs to, and contact the app's support team.

How to fix it

  • End user: Ask your accountant which sales tax period this check belongs to before changing anything in QuickBooks. If you record the sales tax yourself in QuickBooks (Vendors > Sales Tax > Pay Sales Tax), tell the app's support team, and do not repeat the action in the app: that would record it twice.
  • You (developer): Do not retry automatically, and do not retry with other vendor or item IDs: the references are not the problem. If the end user records the sales tax in QuickBooks instead, read it with qbd.salesTaxPaymentChecks.list and link that check rather than creating another one. Treat the sales tax period as an accounting decision for the end user and their accountant.

Details

  • details.requests: Passthrough only: every message of the set in order, each with request (element name), requestID (yours, or null), statusCode, statusSeverity and statusMessage; a message skipped after a stopOnError failure shows 3231. The error itself describes the first failed message.
  • details.qbxmlStatusCode: Native qbXML statusCode (3140).
  • details.qbxmlStatusMessage: Native qbXML statusMessage.
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_SALES_TAX_THROUGH_DATE_TOO_EARLY",
"message": "QuickBooks asked for a later sales tax 'through' date and did not record this sales tax payment check.",
"userFacingMessage": "QuickBooks Desktop did not record this sales tax check because it asked for a later sales tax date. Nothing was changed. Do not record this sales tax in QuickBooks just to get past this message: ask your accountant which sales tax period it belongs to, and contact the app's support team.",
"httpStatusCode": 422,
"integrationCode": "3140",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks rejects a sales tax payment check with status 3140 and the text \"Redo operation after providing a later Sales Tax through date\". The vendor and tax item references are valid. qbXML has no element for a 'through' date (SalesTaxPaymentCheckAdd takes the payee, date, bank account and lines only), so the API cannot send one. Verified on QuickBooks Enterprise 24 with transaction dates from today to a year ahead. Which change in the company file lets the same create succeed is not established, so no recovery that repeats the create is documented.",
"fixes": [
{
"actor": "end_user",
"action": "Ask your accountant which sales tax period this check belongs to before changing anything in QuickBooks. If you record the sales tax yourself in QuickBooks (Vendors > Sales Tax > Pay Sales Tax), tell the app's support team, and do not repeat the action in the app: that would record it twice."
},
{
"actor": "developer",
"action": "Do not retry automatically, and do not retry with other vendor or item IDs: the references are not the problem. If the end user records the sales tax in QuickBooks instead, read it with qbd.salesTaxPaymentChecks.list and link that check rather than creating another one. Treat the sales tax period as an accounting decision for the end user and their accountant."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_sales_tax_through_date_too_early",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"requests": "...",
"qbxmlStatusCode": "...",
"qbxmlStatusMessage": "..."
}
}
}

QBD_DUPLICATE_NAME

HTTP status
409
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
3100, 3180

Message. An object with this name already exists in QuickBooks.

Cause. QuickBooks names must be unique within a list, and across customers, vendors, employees and other names. Sales representative initials are unique too: QuickBooks reports a used initial as status 3180 "The name you have chosen is already associated with another sales rep." A used payment item name is also 3180 ("The name of the list element is already in use."), and a used job type name is a 3180 that only names the element ("There was an error when saving a JobType list, element ..."); for job types the duplicate is inferred from QuickBooks' response, which gives no reason.

What the end user sees. A record with this name already exists in QuickBooks Desktop.

How to fix it

  • You (developer): Use a different name (for a sales representative, a different initial), or look up and reuse the existing object.

Details

  • details.requests: Passthrough only: every message of the set in order, each with request (element name), requestID (yours, or null), statusCode, statusSeverity and statusMessage; a message skipped after a stopOnError failure shows 3231. The error itself describes the first failed message.
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_DUPLICATE_NAME",
"message": "An object with this name already exists in QuickBooks.",
"userFacingMessage": "A record with this name already exists in QuickBooks Desktop.",
"httpStatusCode": 409,
"integrationCode": "3100",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks names must be unique within a list, and across customers, vendors, employees and other names. Sales representative initials are unique too: QuickBooks reports a used initial as status 3180 \"The name you have chosen is already associated with another sales rep.\" A used payment item name is also 3180 (\"The name of the list element is already in use.\"), and a used job type name is a 3180 that only names the element (\"There was an error when saving a JobType list, element ...\"); for job types the duplicate is inferred from QuickBooks' response, which gives no reason.",
"fixes": [
{
"actor": "developer",
"action": "Use a different name (for a sales representative, a different initial), or look up and reuse the existing object."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_duplicate_name",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"requests": "..."
}
}
}

QBD_REVISION_NUMBER_STALE

HTTP status
409
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
3200

Message. The object changed since you read it; revisionNumber is out of date.

Cause. QuickBooks rejects updates that do not carry the current revision number, so concurrent edits are not lost.

What the end user sees. This record changed in QuickBooks Desktop after it was loaded. Reload it and try again.

How to fix it

  • You (developer): Retrieve the object, merge your change, and update with the new revisionNumber.

Details

  • details.requests: Passthrough only: every message of the set in order, each with request (element name), requestID (yours, or null), statusCode, statusSeverity and statusMessage; a message skipped after a stopOnError failure shows 3231. The error itself describes the first failed message.
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_REVISION_NUMBER_STALE",
"message": "The object changed since you read it; revisionNumber is out of date.",
"userFacingMessage": "This record changed in QuickBooks Desktop after it was loaded. Reload it and try again.",
"httpStatusCode": 409,
"integrationCode": "3200",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks rejects updates that do not carry the current revision number, so concurrent edits are not lost.",
"fixes": [
{
"actor": "developer",
"action": "Retrieve the object, merge your change, and update with the new revisionNumber."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_revision_number_stale",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"requests": "..."
}
}
}

QBD_OBJECT_IN_USE

HTTP status
409
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
3170, 3175, 3176

Message. The QuickBooks object is in use: open or locked in QuickBooks, or still used by other records.

Cause. QuickBooks reported the record as in use or locked (status 3175 or 3176, or a 3170 whose message says so), usually because it is being edited in QuickBooks or locked by another user in multi-user mode, which clears once it is closed. QuickBooks does not lock every record that is open: M1 (Enterprise 24, multi-user) updated a customer through the API while its Edit Customer window was open with an unsaved change, so an open window is no guarantee of this error. A deletion or void can also be refused because other records still use the object (for example an account referenced by a transaction); that does not clear with time. QuickBooks Premier Plus 2024 and Pro Plus 2024 have also refused to delete a custom field definition that no record used with 3175 "already in use"; QuickBooks gives no reason for that refusal. retryable is true only for the passing form: a create or update, or a deletion whose QuickBooks message names another user or an open or locked record. A deletion QuickBooks refuses with "already in use" or "The list element is in use" is retryable: false. details.diagnosis has the record_in_use cause, with the user who holds the lock when QuickBooks names one.

What the end user sees. This record is open for editing in QuickBooks Desktop. Close it in QuickBooks, then try again.

How to fix it

  • End user: Close the record in QuickBooks Desktop.
  • You (developer): When retryable is true, retry after the end user closes the record. When it is false (a deletion of an object other records use), do not retry: remove or change those records first, or deactivate the object instead of deleting it.

Details

  • details.requests: Passthrough only: every message of the set in order, each with request (element name), requestID (yours, or null), statusCode, statusSeverity and statusMessage; a message skipped after a stopOnError failure shows 3231. The error itself describes the first failed message.
  • details.diagnosis: The record_in_use cause: close the edit window in QuickBooks, then retry; lockedBy is the user QuickBooks named, or null.
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_OBJECT_IN_USE",
"message": "The QuickBooks object is in use: open or locked in QuickBooks, or still used by other records.",
"userFacingMessage": "This record is open for editing in QuickBooks Desktop. Close it in QuickBooks, then try again.",
"httpStatusCode": 409,
"integrationCode": "3170",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks reported the record as in use or locked (status 3175 or 3176, or a 3170 whose message says so), usually because it is being edited in QuickBooks or locked by another user in multi-user mode, which clears once it is closed. QuickBooks does not lock every record that is open: M1 (Enterprise 24, multi-user) updated a customer through the API while its Edit Customer window was open with an unsaved change, so an open window is no guarantee of this error. A deletion or void can also be refused because other records still use the object (for example an account referenced by a transaction); that does not clear with time. QuickBooks Premier Plus 2024 and Pro Plus 2024 have also refused to delete a custom field definition that no record used with 3175 \"already in use\"; QuickBooks gives no reason for that refusal. `retryable` is true only for the passing form: a create or update, or a deletion whose QuickBooks message names another user or an open or locked record. A deletion QuickBooks refuses with \"already in use\" or \"The list element is in use\" is `retryable: false`. `details.diagnosis` has the record_in_use cause, with the user who holds the lock when QuickBooks names one.",
"fixes": [
{
"actor": "end_user",
"action": "Close the record in QuickBooks Desktop."
},
{
"actor": "developer",
"action": "When `retryable` is true, retry after the end user closes the record. When it is false (a deletion of an object other records use), do not retry: remove or change those records first, or deactivate the object instead of deleting it."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_object_in_use",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"requests": "...",
"diagnosis": "..."
}
}
}

QBD_TRANSIENT_ERROR

HTTP status
503
Retry
Retry the same request
Outcome
not_applied
QuickBooks codes
3390, 3180

Message. QuickBooks Desktop was briefly busy and rejected the request. Nothing was changed; send it again.

Cause. QuickBooks rejected the request for a passing reason: status 3180 when its message says a list or record was modified by another user (record_busy), or status 3390, a list query that would exceed the open iterators QuickBooks allows in one Web Connector session (max_iterators; the API stops the iterators of cursors that expire or are evicted, so this needs many lists in flight at once). QuickBooks answered that request with an Error status, so it did not complete it; in a passthrough message set, the other messages keep their own statuses (details.requests), and outcome is not_applied only when no write in the set was applied. The server already sent a read once more (in a fresh Web Connector session after the iterator limit); it never re-sends a write by itself.

What the end user sees. QuickBooks Desktop was busy for a moment. Please try again.

How to fix it

  • You (developer): Send the request again after a short wait. For a write, reuse the same Idempotency-Key: QuickBooks rejected the earlier attempt before it changed anything, so the key runs the write again instead of replaying this error. The SDKs retry it automatically with the same key.
  • You (developer): For max_iterators, read a list to the end or stop reading it: the API stops a cursor 10 seconds after its last page, or when a fourth cursor list starts on the same end user. Avoid starting many cursor lists in parallel for one end user.
  • End user: If it keeps happening, ask other QuickBooks users to save and close the records and lists they are editing.

Details

  • details.requests: Passthrough only: every message of the set in order, each with request (element name), requestID (yours, or null), statusCode, statusSeverity and statusMessage; a message skipped after a stopOnError failure shows 3231. The error itself describes the first failed message.
  • details.qbxmlStatusCode: Native qbXML statusCode.
  • details.qbxmlStatusMessage: Native qbXML statusMessage.
  • details.reason: record_busy (3180 modified by another user) or max_iterators (3390, too many open list iterators in the session).
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_TRANSIENT_ERROR",
"message": "QuickBooks Desktop was briefly busy and rejected the request. Nothing was changed; send it again.",
"userFacingMessage": "QuickBooks Desktop was busy for a moment. Please try again.",
"httpStatusCode": 503,
"integrationCode": "3390",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks rejected the request for a passing reason: status 3180 when its message says a list or record was modified by another user (`record_busy`), or status 3390, a list query that would exceed the open iterators QuickBooks allows in one Web Connector session (`max_iterators`; the API stops the iterators of cursors that expire or are evicted, so this needs many lists in flight at once). QuickBooks answered that request with an Error status, so it did not complete it; in a passthrough message set, the other messages keep their own statuses (`details.requests`), and `outcome` is `not_applied` only when no write in the set was applied. The server already sent a read once more (in a fresh Web Connector session after the iterator limit); it never re-sends a write by itself.",
"fixes": [
{
"actor": "developer",
"action": "Send the request again after a short wait. For a write, reuse the same Idempotency-Key: QuickBooks rejected the earlier attempt before it changed anything, so the key runs the write again instead of replaying this error. The SDKs retry it automatically with the same key."
},
{
"actor": "developer",
"action": "For max_iterators, read a list to the end or stop reading it: the API stops a cursor 10 seconds after its last page, or when a fourth cursor list starts on the same end user. Avoid starting many cursor lists in parallel for one end user."
},
{
"actor": "end_user",
"action": "If it keeps happening, ask other QuickBooks users to save and close the records and lists they are editing."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_transient_error",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {
"requests": "...",
"qbxmlStatusCode": "...",
"qbxmlStatusMessage": "...",
"reason": "..."
}
}
}

QBD_FEATURE_NOT_ENABLED

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
3250

Message. The QuickBooks feature this request needs is turned off or not available in this edition.

Cause. For example, inventory sites need Advanced Inventory, and some features must be turned on in Preferences.

What the end user sees. This feature is not turned on in QuickBooks Desktop.

How to fix it

  • End user: Turn on the feature in QuickBooks Preferences, if the edition supports it.
  • You (developer): Avoid the feature for this end user.

Details

  • details.requests: Passthrough only: every message of the set in order, each with request (element name), requestID (yours, or null), statusCode, statusSeverity and statusMessage; a message skipped after a stopOnError failure shows 3231. The error itself describes the first failed message.
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_FEATURE_NOT_ENABLED",
"message": "The QuickBooks feature this request needs is turned off or not available in this edition.",
"userFacingMessage": "This feature is not turned on in QuickBooks Desktop.",
"httpStatusCode": 422,
"integrationCode": "3250",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "For example, inventory sites need Advanced Inventory, and some features must be turned on in Preferences.",
"fixes": [
{
"actor": "end_user",
"action": "Turn on the feature in QuickBooks Preferences, if the edition supports it."
},
{
"actor": "developer",
"action": "Avoid the feature for this end user."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_feature_not_enabled",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"requests": "..."
}
}
}

QBD_INSUFFICIENT_PERMISSION

HTTP status
403
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
3260, 3261

Message. The QuickBooks user or the integration lacks permission for this operation.

Cause. Status 3260: the connection signs in as the QuickBooks user chosen at authorization, and that user's role does not allow the operation. Status 3261: the integration has no permission to access personal data (for example payroll reports, Social Security numbers or credit card numbers), which the QuickBooks Admin grants in the Integrated Applications preferences.

What the end user sees. This connection does not have permission for this action in QuickBooks Desktop. Ask your QuickBooks Admin to update the permissions.

How to fix it

  • End user: For status 3260: in QuickBooks, give the integration's user the required permission, or reauthorize with a user that has it.
  • End user: For status 3261: signed in to QuickBooks as Admin in single-user mode, choose Edit > Preferences > Integrated Applications > Company Preferences, select the application, click Properties, tick "Allow this application to access personal data such as Social Security Number and customer credit card information" and click OK twice.
  • End user: For status 3261 when that checkbox is gray: the connector file was added before personal data could be requested. Open a new setup link, choose "Enable payroll access", remove the old row in the Web Connector and add the new connector file, ticking the personal-data checkbox when QuickBooks asks.
  • You (developer): Check integrationCode, then show the end user the matching fix; nothing was changed. For status 3261, send the end user a new setup link if their checkbox is gray, and turn on "Request access to personal data" in dashboard Settings if your app always needs payroll or employee data.

Details

  • details.requests: Passthrough only: every message of the set in order, each with request (element name), requestID (yours, or null), statusCode, statusSeverity and statusMessage; a message skipped after a stopOnError failure shows 3231. The error itself describes the first failed message.
  • details.qbxmlStatusCode: Native qbXML statusCode: 3260 (user permission) or 3261 (personal data).
  • details.qbxmlStatusMessage: Native qbXML statusMessage.
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_INSUFFICIENT_PERMISSION",
"message": "The QuickBooks user or the integration lacks permission for this operation.",
"userFacingMessage": "This connection does not have permission for this action in QuickBooks Desktop. Ask your QuickBooks Admin to update the permissions.",
"httpStatusCode": 403,
"integrationCode": "3260",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "Status 3260: the connection signs in as the QuickBooks user chosen at authorization, and that user's role does not allow the operation. Status 3261: the integration has no permission to access personal data (for example payroll reports, Social Security numbers or credit card numbers), which the QuickBooks Admin grants in the Integrated Applications preferences.",
"fixes": [
{
"actor": "end_user",
"action": "For status 3260: in QuickBooks, give the integration's user the required permission, or reauthorize with a user that has it."
},
{
"actor": "end_user",
"action": "For status 3261: signed in to QuickBooks as Admin in single-user mode, choose Edit > Preferences > Integrated Applications > Company Preferences, select the application, click Properties, tick \"Allow this application to access personal data such as Social Security Number and customer credit card information\" and click OK twice."
},
{
"actor": "end_user",
"action": "For status 3261 when that checkbox is gray: the connector file was added before personal data could be requested. Open a new setup link, choose \"Enable payroll access\", remove the old row in the Web Connector and add the new connector file, ticking the personal-data checkbox when QuickBooks asks."
},
{
"actor": "developer",
"action": "Check integrationCode, then show the end user the matching fix; nothing was changed. For status 3261, send the end user a new setup link if their checkbox is gray, and turn on \"Request access to personal data\" in dashboard Settings if your app always needs payroll or employee data."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_insufficient_permission",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"requests": "...",
"qbxmlStatusCode": "...",
"qbxmlStatusMessage": "..."
}
}
}

QBD_RESPONSE_TOO_LARGE

HTTP status
422
Retry
Change the request or the setup first
Outcome
not_applicable

Message. The QuickBooks response is larger than the API returns in one call.

Cause. The query matched more data than fits in one response.

What the end user sees. QuickBooks Desktop returned more data than can be loaded at once. Please contact the application provider.

How to fix it

  • You (developer): Narrow the filters or use a paginated list.
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_RESPONSE_TOO_LARGE",
"message": "The QuickBooks response is larger than the API returns in one call.",
"userFacingMessage": "QuickBooks Desktop returned more data than can be loaded at once. Please contact the application provider.",
"httpStatusCode": 422,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The query matched more data than fits in one response.",
"fixes": [
{
"actor": "developer",
"action": "Narrow the filters or use a paginated list."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_response_too_large",
"retryable": false,
"outcome": "not_applicable",
"param": null,
"details": {}
}
}

QBD_REQUEST_NOT_PROCESSED

HTTP status
409
Retry
Change the request or the setup first
Outcome
not_applied
QuickBooks codes
3231

Message. QuickBooks did not process this request.

Cause. In a stopOnError batch, status 3231 usually marks a member skipped after an earlier failure. It can also occur on a standalone request. Check the surrounding results before assuming another member failed. On the tested QuickBooks Enterprise 24 installation, standalone lead reads and creates return 3231; those operations map it to QBD_OPERATION_UNSUPPORTED. Do not retry an unchanged lead request repeatedly.

What the end user sees. QuickBooks did not carry out this action. Ask the app support team to check the request results.

How to fix it

  • You (developer): For a verified stopOnError skip, fix the earlier failed member and send only the skipped requests in a new batch with a new Idempotency-Key. For a standalone refusal, check the operation limitations and contact support with the request ID.
  • You (developer): Send the batch with onError: continueOnError when the requests do not depend on each other, so one failure does not skip the rest.
Example response body
{
"error": {
"type": "INTEGRATION_ERROR",
"code": "QBD_REQUEST_NOT_PROCESSED",
"message": "QuickBooks did not process this request.",
"userFacingMessage": "QuickBooks did not carry out this action. Ask the app support team to check the request results.",
"httpStatusCode": 409,
"integrationCode": "3231",
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "In a `stopOnError` batch, status 3231 usually marks a member skipped after an earlier failure. It can also occur on a standalone request. Check the surrounding results before assuming another member failed. On the tested QuickBooks Enterprise 24 installation, standalone lead reads and creates return 3231; those operations map it to QBD_OPERATION_UNSUPPORTED. Do not retry an unchanged lead request repeatedly.",
"fixes": [
{
"actor": "developer",
"action": "For a verified stopOnError skip, fix the earlier failed member and send only the skipped requests in a new batch with a new Idempotency-Key. For a standalone refusal, check the operation limitations and contact support with the request ID."
},
{
"actor": "developer",
"action": "Send the batch with `onError: continueOnError` when the requests do not depend on each other, so one failure does not skip the rest."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_request_not_processed",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

Outcome unknown error OUTCOME_UNKNOWN_ERROR

A write reached QuickBooks without a confirmed result. Never resend before checking.

QBD_WRITE_OUTCOME_UNKNOWN

HTTP status
502
Retry
Never resend; check QuickBooks first
Outcome
unknown

Message. The write was sent to QuickBooks, but its result could not be confirmed.

Cause. The connection to the Web Connector broke after the request was handed to QuickBooks and before its response arrived.

What the end user sees. It could not be confirmed whether QuickBooks Desktop saved this change. Please check QuickBooks before trying again.

How to fix it

  • You (developer): Do not resend. Check whether the object exists (by externalId or refNumber) before creating it again.
  • Support: Open the request in the dashboard to see its timeline.

Details

  • details.requestId: The uncertain request.
  • details.messageSetId: qbXML newMessageSetID sent with the write.
  • details.reason: Why the result was lost. An open set: treat unknown values like close_not_received. Session ends: superseded_by_authenticate (the same Web Connector started a new session, usually after it was closed or restarted), superseded_by_other_computer or superseded_by_other_connector (another computer or connector took over), idle_timeout (the Web Connector stopped calling while QuickBooks had the write), close_not_received (the session ended without the Web Connector closing it), closed (the Web Connector closed the session before answering), connection_error_<hresult> (the Web Connector reported a connection error), end_user_deleted. Responses: hresult_<hresult> (QuickBooks returned an error instead of a response), response_without_status, response_too_large, response_unverified_<check> (the response failed a consistency check: incomplete_response, status_count_mismatch, response_mismatch, request_id_mismatch, invalid_status or message_set_mismatch). Test projects: test_fault_drop_receive_ack (the Daapi-Test-Fault header). details.afterRestart is present when our own restart (a deploy) ended the session.
Example response body
{
"error": {
"type": "OUTCOME_UNKNOWN_ERROR",
"code": "QBD_WRITE_OUTCOME_UNKNOWN",
"message": "The write was sent to QuickBooks, but its result could not be confirmed.",
"userFacingMessage": "It could not be confirmed whether QuickBooks Desktop saved this change. Please check QuickBooks before trying again.",
"httpStatusCode": 502,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "The connection to the Web Connector broke after the request was handed to QuickBooks and before its response arrived.",
"fixes": [
{
"actor": "developer",
"action": "Do not resend. Check whether the object exists (by externalId or refNumber) before creating it again."
},
{
"actor": "support",
"action": "Open the request in the dashboard to see its timeline."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_write_outcome_unknown",
"retryable": false,
"outcome": "unknown",
"param": null,
"details": {
"requestId": "...",
"messageSetId": "...",
"reason": "..."
}
}
}

Internal error INTERNAL_ERROR

An unexpected error on our side. outcome says whether a write may have reached QuickBooks.

QBD_RESPONSE_UNAVAILABLE

HTTP status
503
Retry
Retry the same request
Outcome
not_applicable

Message. QuickBooks answered, but its stored response could not be read.

Cause. A read reached QuickBooks, but its response could not be read back from storage, even after a retry, so the result (for a retrieve, whether the record exists) is unknown. Reads change nothing in QuickBooks. The request is failed and not billed.

What the end user sees. Something went wrong. Please try again in a moment.

How to fix it

  • You (developer): Retry the read; it is safe to repeat.
  • Support: If it keeps happening, contact support with the requestId.

Details

  • details.reason: response_read_failed.
Example response body
{
"error": {
"type": "INTERNAL_ERROR",
"code": "QBD_RESPONSE_UNAVAILABLE",
"message": "QuickBooks answered, but its stored response could not be read.",
"userFacingMessage": "Something went wrong. Please try again in a moment.",
"httpStatusCode": 503,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "A read reached QuickBooks, but its response could not be read back from storage, even after a retry, so the result (for a retrieve, whether the record exists) is unknown. Reads change nothing in QuickBooks. The request is failed and not billed.",
"fixes": [
{
"actor": "developer",
"action": "Retry the read; it is safe to repeat."
},
{
"actor": "support",
"action": "If it keeps happening, contact support with the requestId."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_response_unavailable",
"retryable": true,
"outcome": "not_applicable",
"param": null,
"details": {
"reason": "..."
}
}
}

QBD_RESPONSE_UNREADABLE

HTTP status
500
Retry
Change the request or the setup first
Outcome
not_applicable

Message. QuickBooks answered, but the response could not be converted to the documented JSON shape.

Cause. QuickBooks returned data that does not match the documented response schema (for example a value in an unexpected format). For a write, outcome is applied: QuickBooks saved the change. details.issues names the fields.

What the end user sees. Some data from QuickBooks Desktop could not be read. Please contact the application provider.

How to fix it

  • You (developer): Do not resend a write whose outcome is applied. Retrieve the object by details.objectId (or list it) to read it, and contact support with the requestId.
  • Support: Open the request in the dashboard; the stored qbXML response shows the unexpected value.
Example response body
{
"error": {
"type": "INTERNAL_ERROR",
"code": "QBD_RESPONSE_UNREADABLE",
"message": "QuickBooks answered, but the response could not be converted to the documented JSON shape.",
"userFacingMessage": "Some data from QuickBooks Desktop could not be read. Please contact the application provider.",
"httpStatusCode": 500,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "QuickBooks returned data that does not match the documented response schema (for example a value in an unexpected format). For a write, `outcome` is `applied`: QuickBooks saved the change. `details.issues` names the fields.",
"fixes": [
{
"actor": "developer",
"action": "Do not resend a write whose outcome is applied. Retrieve the object by details.objectId (or list it) to read it, and contact support with the requestId."
},
{
"actor": "support",
"action": "Open the request in the dashboard; the stored qbXML response shows the unexpected value."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#qbd_response_unreadable",
"retryable": false,
"outcome": "not_applicable",
"param": null,
"details": {}
}
}

INTERNAL_ERROR

HTTP status
500
Retry
Change the request or the setup first
Outcome
not_applied

Message. An unexpected error occurred on our side.

Cause. An unexpected server error. outcome says whether a write may have reached QuickBooks. With details.reason result_unavailable, the request completed but its stored result is no longer available (for example an idempotent replay after the result's retention period); for a write, outcome is applied: QuickBooks saved the change.

What the end user sees. Something went wrong. Please try again in a moment.

How to fix it

  • You (developer): Retry reads. For writes, check outcome first and never resend when it is unknown.
  • You (developer): With result_unavailable on a write, do not send it again: retrieve or list the object to read it. On a read, send the query again.
  • Support: Contact support with the requestId.

Details

  • details.requestId: The completed request (with result_unavailable).
  • details.reason: result_unavailable when the request completed and its stored result is no longer available. An open set.
Example response body
{
"error": {
"type": "INTERNAL_ERROR",
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred on our side.",
"userFacingMessage": "Something went wrong. Please try again in a moment.",
"httpStatusCode": 500,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "An unexpected server error. `outcome` says whether a write may have reached QuickBooks. With `details.reason` `result_unavailable`, the request completed but its stored result is no longer available (for example an idempotent replay after the result's retention period); for a write, `outcome` is `applied`: QuickBooks saved the change.",
"fixes": [
{
"actor": "developer",
"action": "Retry reads. For writes, check `outcome` first and never resend when it is unknown."
},
{
"actor": "developer",
"action": "With `result_unavailable` on a write, do not send it again: retrieve or list the object to read it. On a read, send the query again."
},
{
"actor": "support",
"action": "Contact support with the requestId."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#internal_error",
"retryable": false,
"outcome": "not_applied",
"param": null,
"details": {
"requestId": "...",
"reason": "..."
}
}
}

SERVICE_UNAVAILABLE

HTTP status
503
Retry
Retry the same request
Outcome
not_applied

Message. The service is temporarily unavailable. The request was not queued.

Cause. A dependency was unavailable before the request was accepted. Nothing reached QuickBooks.

What the end user sees. Something went wrong. Please try again in a moment.

How to fix it

  • You (developer): Retry with backoff.
Example response body
{
"error": {
"type": "INTERNAL_ERROR",
"code": "SERVICE_UNAVAILABLE",
"message": "The service is temporarily unavailable. The request was not queued.",
"userFacingMessage": "Something went wrong. Please try again in a moment.",
"httpStatusCode": 503,
"integrationCode": null,
"requestId": "req_01j9x4m6v4c8k2t7q0r5s3w1zb",
"cause": "A dependency was unavailable before the request was accepted. Nothing reached QuickBooks.",
"fixes": [
{
"actor": "developer",
"action": "Retry with backoff."
}
],
"docsUrl": "https://www.desktopaccountingapi.com/docs/errors/#service_unavailable",
"retryable": true,
"outcome": "not_applied",
"param": null,
"details": {}
}
}

Warnings

A request that succeeded can still carry warnings about its data. The Daapi-Warnings header counts them, and GET /v1/requests/{id} lists each one in warnings with code, statusCode, message and the path of the affected value in result. Branch on code; new codes only get added.

QBD_WARNING

Message. QuickBooks accepted the request with a warning status (statusSeverity="Warn"); message holds its text.

Cause. QuickBooks adjusted or questioned part of the request but still processed it. statusCode is the native qbXML status.

What the end user sees. QuickBooks Desktop completed this action with a warning.

How to fix it

  • You (developer): Read statusCode and message, and check the result if the warning concerns a value you sent.

QBD_DELETE_NOT_VERIFIED

Message. QuickBooks accepted the delete, but reading the object back afterwards failed; message holds the read-back status.

Cause. A list-object delete reads the object back in the same request to report whether QuickBooks removed it or kept it inactive. QuickBooks answered that read with an error, so deleted, deactivated and isActive are null. The delete itself succeeded (outcome applied).

What the end user sees. QuickBooks Desktop accepted the deletion, but it could not be confirmed whether the record is gone.

How to fix it

  • You (developer): Do not send the delete again. Retrieve the object by its ID: 404 means it is gone, a result with isActive false means QuickBooks kept it inactive.

QBD_VALUE_UNREADABLE

Message. A value in the QuickBooks response could not be read and is returned as null.

Cause. The company file holds a damaged or out-of-range value. path names it in result; message quotes what QuickBooks sent.

What the end user sees. Some values could not be read from the QuickBooks Desktop company file.

How to fix it

  • End user: In QuickBooks, run File > Utilities > Verify Data, then Rebuild Data if it finds problems.
  • You (developer): Treat the value at path as unknown, not as empty.

QBD_MARKUP_REPAIRED

Message. QuickBooks sent malformed XML text; it was kept as text.

Cause. A text value contains a bare &, an unknown entity or an impossible character reference.

What the end user sees. Some text in the QuickBooks Desktop company file was stored in an unusual form and was read as written.

How to fix it

  • You (developer): Use the value as text; check path if exact characters matter.

QBD_PERSONAL_DATA_WITHHELD

Message. QuickBooks does not share this value because the integration is not allowed to access personal data, so it is null whether or not the company file has one. The QuickBooks Admin grants it under Edit > Preferences > Integrated Applications > Company Preferences > Properties; if the checkbox is gray, send a new setup link and choose Enable payroll access.

Cause. The QuickBooks Admin has not allowed this integration to access personal data, so QuickBooks leaves Social Security numbers out of employee responses without an error. path names each such field (ssn, or data[2].ssn in a list); the value is null. Without the permission it cannot be known whether the company file holds a value there.

What the end user sees. Some employee details, such as Social Security numbers, are shared only when the QuickBooks Admin allows personal-data access for this app in QuickBooks Desktop.

How to fix it

  • End user: Signed in to QuickBooks as Admin in single-user mode, choose Edit > Preferences > Integrated Applications > Company Preferences, select the application, click Properties, tick "Allow this application to access personal data such as Social Security Number and customer credit card information" and click OK twice.
  • End user: If that checkbox is gray, open a new setup link, choose "Enable payroll access", remove the old row in the Web Connector and add the new connector file.
  • You (developer): Treat the field as unknown, not empty. Check integrationConnections[].personalDataAccess on the end user, or GET /v1/quickbooks-desktop/preferences → appAccessRights.isPersonalDataAccessAllowed, and show the end user the steps above when your app needs the value.

QuickBooks status codes

How qbXML status codes from QuickBooks map to error codes. Any other error status becomes QBD_REQUEST_ERROR with the status in integrationCode.

qbXML statusCodeNote
1QBD_OBJECT_NOT_FOUND
500QBD_OBJECT_NOT_FOUND
3020QBD_REQUEST_ERRORQBD_REQUEST_ERROR. With "error when converting the date value" on a list: QuickBooks Desktop cannot read an updatedAfter or updatedBefore outside 1970-01-02 to 2037-12-31. When the value sent explains it, param names the filter and details.reason is date_out_of_range.
3030QBD_REQUEST_ERRORQBD_REQUEST_ERROR. "Invalid date range: From date is greater than To date" on a list: a start after its end (details.reason date_range_inverted), and also a transactionDateTo before 1970-01-01 or a transactionDateFrom after 2037-12-31 alone (date_out_of_range). When the filters sent explain it, param names the filter.
3100QBD_DUPLICATE_NAME
3120QBD_REFERENCE_NOT_FOUNDQBD_OBJECT_NOT_FOUND when the ID is the request target, QBD_REFERENCE_NOT_FOUND for a referenced ID.
3140QBD_REFERENCE_NOT_FOUNDQBD_REFERENCE_NOT_FOUND for a referenced ID; QBD_SALES_TAX_THROUGH_DATE_TOO_EARLY when the message asks for "a later Sales Tax through date" (a sales tax payment check whose period is already paid).
3175QBD_OBJECT_IN_USE
3176QBD_OBJECT_IN_USE
3180QBD_REQUEST_ERRORQBD_TRANSIENT_ERROR when the message says a list or record was modified by another user (the server retries a read once); QBD_DUPLICATE_NAME when it says "the name you have chosen is already associated with another" record (a sales representative initial in use); otherwise QBD_REQUEST_ERROR.
3200QBD_REVISION_NUMBER_STALE
3250QBD_FEATURE_NOT_ENABLED
3260QBD_INSUFFICIENT_PERMISSION
3261QBD_INSUFFICIENT_PERMISSION
3390QBD_TRANSIENT_ERRORQBD_TRANSIENT_ERROR (max_iterators): too many open list iterators in the Web Connector session. The server ends the session and retries the read once in a fresh one; it stops the iterators of expired or evicted cursors so the limit is not reached by abandoned lists.
3500QBD_REQUEST_ERRORQBD_MERGE_NOT_ALLOWED only for an identified ListMerge request outside the verified multi-user handling; QBD_REQUIRES_SINGLE_USER_MODE for the verified native refusal form in known multi-user mode. Other request types keep QBD_REQUEST_ERROR. Status 3500 alone does not identify the underlying cause.