Create test workspace

Error codes

Every error uses one JSON envelope. Branch on error.code, show error.userFacingMessage to the person who runs QuickBooks, and log error.requestId.

Error envelope

JSON
{
  "error": {
    "message": "QuickBooks Desktop connection is not set up.",
    "userFacingMessage": "This company has not finished connecting QuickBooks Desktop. Open a new connection session to complete setup.",
    "type": "INTEGRATION_CONNECTION_ERROR",
    "code": "INTEGRATION_CONNECTION_NOT_SET_UP",
    "httpStatusCode": 502,
    "requestId": "7c1f5a0e-..."
  }
}
  • type is INTEGRATION_CONNECTION_ERROR for INTEGRATION_* and QBD_* codes, INTERNAL_ERROR for INTERNAL_ERROR and SERVICE_UNAVAILABLE, and INVALID_REQUEST_ERROR otherwise.
  • integrationCode is added only when QuickBooks or Web Connector supplied one, such as "3100".
  • message is for developers and may change. code is stable.

Reference

AUTHENTICATION_ERROR

The bearer API key is missing, malformed, unknown, or revoked.

Send Authorization: Bearer <secret key> from your server. Rotate the key if it was revoked.

API_KEY_SCOPE_REQUIRED

A read-only key sent a request that needs write access: anything other than GET, including creating end-users and setup links, QuickBooks writes, resolving a request, raw qbXML passthrough and hosted MCP write tools.

Use a read + write key for that caller only. Keep read-only keys for reporting and sync reads.

APPROVAL_REQUIRED

A direct write returned a fresh or existing proposal (proposal_prepared), needs completed reads (observations_required), or was refused by the project's configured proposal policy (automation_not_permitted). approval.proposal carries the current state and approval.next.reviewPath identifies the review.

Follow approval.next. Run any listed approval.reads and resend the identical request and Idempotency-Key within 15 minutes. For an existing proposal, check its current decision and execution before requesting another change. Eligible people decide in Crossblade; project API keys cannot prepare or approve. This request sends no new change and establishes no earlier approval's outcome.

PROPOSAL_REFRESH_REQUIRED

A delegated or personal token sent an invoice update whose revisionNumber is not the invoice's current one, so no proposal was prepared. approval.observed names the current revisionNumber.

Read the invoice again, check the change still applies, then resend it with the current revisionNumber and a new Idempotency-Key. This request sends no new change. Check any earlier approved proposal separately.

UNSUPPORTED_FOR_INTERACTIVE

A delegated OAuth token or a personal access token sent a QuickBooks write that has no reviewed preview yet (see the supported-actions page), or raw qbXML passthrough. Interactive credentials never execute writes directly; the approval object gives the next action.

Nothing reached QuickBooks. The change needs a person's review in Crossblade, and this client cannot prepare that review yet. Do not retry the same request.

CREDENTIAL_POLICY_UNAVAILABLE

The deployment's trusted policy could not be read, so Crossblade could not confirm whether this project requires reviewed proposals. The project API key write was not queued.

Nothing reached QuickBooks. Retry later; if it persists, contact support. Reads are not affected.

BILLING_REQUIRED

A live project has no active subscription.

Activate a plan in the dashboard. Test projects are not affected.

FEATURE_NOT_ENABLED

The capability is off for this project, for example raw qbXML passthrough on a live project, or live requests before production opens.

Use the typed resource route, or email [email protected] to ask for the capability.

INVALID_REQUEST

Validation failed before anything was queued: unknown or unsupported fields, bad enum values, an invalid Conductor-Timeout-Seconds, a missing Conductor-End-User-Id, or (409) a duplicate end-user sourceId.

Fix the request. error.message names the field. Nothing reached QuickBooks, so a corrected request is safe to send.

PAYLOAD_TOO_LARGE

The request body is larger than the endpoint accepts: 2 MB for /v1 and /mcp.

Send a smaller request, for example fewer lines per write. Nothing was queued.

METHOD_NOT_ALLOWED

The resource does not support that operation, for example deleting a transaction type QuickBooks cannot delete.

Check the operation list on the resource page. The Allow header lists supported methods.

NOT_FOUND

The end-user, request, report or QuickBooks record does not exist in this project.

Check the ID and that the API key belongs to the same project as the end-user.

IDEMPOTENCY_KEY_REQUIRED

A live-project write was sent without an Idempotency-Key header (409), or POST /v1/auth-sessions/secret-reveal was sent without one (422; that route requires a key in every project mode).

Add a stable business key, such as invoice:<your id>:v1, and send the request again. For a setup link, use one key per link.

IDEMPOTENCY_KEY_CONFLICT

The idempotency key was already used for a different payload on this company file.

Reuse the key only with the identical payload. A different operation needs a new key.

RATE_LIMIT_EXCEEDED

The project sent more than 600 requests in a minute, or a setup page checked too often.

Wait for the Retry-After interval, then retry. Retry writes only with the same idempotency key.

QBD_QUEUE_FULL

The company file already has 100 active requests.

Wait for Retry-After (30 seconds). Send fewer requests at once per company file; they run one at a time.

INTEGRATION_CONNECTION_NOT_SET_UP

The end-user has no connection yet because its setup link was never opened. The health check also returns it while Web Connector has never checked in.

Create a setup link (POST /v1/auth-sessions) for the same end-user and send its authFlowUrl to whoever runs QuickBooks.

INTEGRATION_CONNECTION_NOT_ACTIVE

Health check only. Setup finished, but Web Connector has not checked in for more than three minutes: the computer is asleep, Windows is signed out, or Web Connector is closed.

Show userFacingMessage to the customer and link to /help/connection-not-active. Retry after they reconnect.

INTEGRATION_CONNECTION_ERROR

QuickBooks or Web Connector rejected the request. integrationCode carries the QuickBooks status code (for example 3100 duplicate name, 3200 stale revision number) or a Web Connector error number. 409 means the connection was removed while the request was being queued.

Read integrationCode and error.message. Fix data problems in the request; for connector problems show userFacingMessage.

QBD_CONNECTION_ERROR

Health check only. Web Connector reported that it could not work with QuickBooks: QuickBooks is closed without background access, a window is waiting for an answer, or permissions differ.

Show userFacingMessage and link to /help/cannot-connect-to-quickbooks.

QBD_COMPANY_FILE_MISMATCH

Health check only. QuickBooks has a different company file open than the one connected at setup. Nothing was sent to QuickBooks.

Ask the customer to open the original file and click Update Selected in Web Connector (/help/different-company-file-open). For a permanent move, replace the connection.

QBD_INVALID_COMPANY_RESPONSE

A health check or setup verification reached QuickBooks but did not receive company details.

Ask the customer to confirm the intended company file is open, then check again.

QBD_REQUEST_TIMED_OUT

QuickBooks had the request but did not answer within Conductor-Timeout-Seconds.

Retrieve /v1/requests/{id} before doing anything else. Replay a write only with the same key and payload.

QBD_REQUEST_EXPIRED

Web Connector did not pick the request up before Conductor-Timeout-Seconds (90 by default). QuickBooks never received it. This is what a request to an offline company returns.

Safe to send again. For a write, use the same idempotency key and payload; the original request is queued again. Run the health check to learn why the company is offline.

QBD_RESULT_UNAVAILABLE

The original QuickBooks request succeeded, but its response payload is no longer retained. Same-key replay still refers to that original request.

Read the original request's status using Location or error.requestId. Keep its successful accounting outcome. Do not repeat the write with a new idempotency key to recover expired response data.

QBD_RESOLUTION_CONFLICT

QuickBooks later reported an outcome that contradicts a manual resolution recorded for this request.

Review the request in the dashboard and QuickBooks before any further write for that company.

REQUEST_NOT_RECONCILABLE

POST /v1/requests/{id}/resolve was called for a request that is not unresolved or conflicting, or a write was resent with the key of a request that was already resolved by hand.

Retrieve the request to see its current state. Only unknown_outcome and conflicting requests can be resolved.

The hosted setup page was opened after its setup link expired. It comes from the setup page, not from /v1.

Create a new setup link for the same end-user. A company already added to Web Connector does not need to be added again.

SETUP_REVEAL_UNAVAILABLE

POST /v1/auth-sessions/secret-reveal (or the MCP auth_session_create tool) created a setup link, but its one-time reveal could not be recorded, or an earlier attempt with the same idempotency key ended that way. No one holds that link; it lapses at its expiry.

Create a new setup link with a new idempotency key. Only a workspace owner or admin can reveal a setup link created with an API key; developers ask an owner or admin.

SETUP_REVEAL_UNCERTAIN

POST /v1/auth-sessions/secret-reveal could not confirm whether the setup link and its one-time reveal were recorded, or a same-key retry arrived within about 30 seconds while the first attempt may still be recording the reveal.

Retry the exact request with the same idempotency key. Never switch to a new key while the outcome is uncertain.

INTERNAL_ERROR

An unexpected fault inside Crossblade. It is not an answer from QuickBooks, and the body never contains internal details.

Retry reads. Retry writes only with the same idempotency key. If it persists, send the request ID to [email protected].

SERVICE_UNAVAILABLE

Crossblade is briefly unavailable.

Retry after a short wait. Retry writes only with the same idempotency key. Check the status page.

QBD_CONNECTION_BUSY

Deleting an end-user was refused because one of its requests is still running or unresolved.

Reconcile the named request, then delete again.

QBD_WRITE_OUTCOME_UNKNOWN

A write was dispatched to QuickBooks but no verifiable response arrived in time, or QuickBooks returned a warning.

Do not retry with a new key. Poll statusUrl, check QuickBooks, and reconcile with requests.resolve if needed.

QuickBooks integration codes

When QuickBooks rejects a request, the response is 502 INTEGRATION_CONNECTION_ERROR with QuickBooks' own status code in integrationCode and its message in error.message. Common examples:

integrationCodeTypical causeWhat to do
3100A list record with that name already exists.Look up the existing record and reuse its ID, or choose a unique name.
3140The request references a record QuickBooks cannot find, such as a customer or item ID.Refresh your ID mapping from QuickBooks.
3200The revisionNumber sent with an update is out of date.Retrieve the record again and retry the update with the current revision number.
3180QuickBooks could not save the record, often because it or a related record was in use.Retry later with a new key version after confirming nothing was saved.

The people who run QuickBooks can fix most connection problems themselves. Link them to the Crossblade Help Center.