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-Idis on every response and identifies that HTTP attempt.Conductor-Request-Idis on authenticated/v1responses. For QuickBooks routes it is the durable request ID you can pass toGET /v1/requests/{id}.- Error bodies repeat it as
error.requestId. - When you replay a write with the same idempotency key,
Conductor-Request-Idis the original durable request, whileX-Request-Idis 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.
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 "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
| Response | Meaning | What to do |
|---|---|---|
| 200 | QuickBooks answered in time. | Use the result. |
202 unknown_outcome | A 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_EXPIRED | Web Connector never picked the request up. QuickBooks never saw it. | Safe to replay with the same key and payload. |
504 QBD_REQUEST_TIMED_OUT | QuickBooks had the request but hadn’t answered by the deadline. | Retrieve /v1/requests/{id} before retrying a write. Reads can be retried. |
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:
timeoutMsis the HTTP deadline (default 130 000 ms).quickBooksTimeoutSecondssetsConductor-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=130on the client, orRequestOptions(timeout=..., quickbooks_timeout_seconds=...)per call. - conductor-node: set its
timeoutoption (milliseconds) above yourConductor-Timeout-Secondsvalue, and pass the header inheaders.
A client-side timeout or cancellation never proves that a write did not happen. Keep the idempotency key and check the request status.