Create test workspace

Request IDs and timeouts

Every response is traceable by request ID. QuickBooks requests wait for Web Connector, so choose timeouts deliberately and handle HTTP 202.

Request IDs

  • X-Request-Id is on every response and identifies that HTTP attempt.
  • Conductor-Request-Id is on authenticated /v1 responses. For QuickBooks routes it is the durable request ID you can pass to GET /v1/requests/{id}.
  • Error bodies repeat it as error.requestId.
  • When you replay a write with the same idempotency key, Conductor-Request-Id is the original durable request, while X-Request-Id is new.

Log the request ID with every call, and include it in support tickets. The Crossblade SDK exposes it through .withResponse() and on CrossbladeError.requestId.

TypeScript
const { data, requestId } = await client.qbd.customers
  .list({ conductorEndUserId: endUserId, limit: 50 })
  .withResponse();
logger.info({ requestId }, "listed customers");

Conductor-Timeout-Seconds

This header sets how long Crossblade waits for QuickBooks before responding. It accepts an integer from 5 to 120; the default is 90. Any other value returns 422 INVALID_REQUEST.

cURL
curl "https://crossblade.dev/v1/quickbooks-desktop/invoices?limit=25" \
  -H "Authorization: Bearer $CROSSBLADE_SECRET_KEY" \
  -H "Conductor-End-User-Id: $CROSSBLADE_END_USER_ID" \
  -H "Conductor-Timeout-Seconds: 120"

Requests wait in the company’s queue until Web Connector’s next check-in, about once a minute, then run one at a time. With a very short timeout most requests expire before they are picked up. Keep the default for everyday reads, and use 120 for large reports or long list pages.

What happens at the deadline

ResponseMeaningWhat to do
200QuickBooks answered in time.Use the result.
202 unknown_outcomeA write was sent to QuickBooks and no verifiable answer arrived.Do not retry with a new key. Poll statusUrl and reconcile. See Idempotency.
504 QBD_REQUEST_EXPIREDWeb Connector never picked the request up. QuickBooks never saw it.Safe to replay with the same key and payload.
504 QBD_REQUEST_TIMED_OUTQuickBooks had the request but hadn’t answered by the deadline.Retrieve /v1/requests/{id} before retrying a write. Reads can be retried.
TypeScript
import { isPendingQuickBooksResult } from "@crossblade/sdk";

const result = await client.qbd.invoices.create(input, { idempotencyKey: `invoice:${order.id}:v1` });
if (isPendingQuickBooksResult(result)) {
  // HTTP 202: result.id is a durable request ID, not an invoice ID.
  await markNeedsReconciliation(order.id, result.id);
}

SDK timeouts

  • TypeScript: timeoutMs is the HTTP deadline (default 130 000 ms). quickBooksTimeoutSeconds sets Conductor-Timeout-Seconds. Keep the HTTP deadline at least 30 seconds longer than the server wait so the 202 or 504 can reach you.
  • Python: timeout=130 on the client, or RequestOptions(timeout=..., quickbooks_timeout_seconds=...) per call.
  • conductor-node: set its timeout option (milliseconds) above your Conductor-Timeout-Seconds value, and pass the header in headers.

A client-side timeout or cancellation never proves that a write did not happen. Keep the idempotency key and check the request status.