Create test workspace

Quickstart

Create a key, add a company and read its customers. The cURL example needs nothing installed.

Use a sample company file

A test project keeps your keys and data apart from live ones, but reads and writes still run against a real company file on Windows. Start with a disposable sample company.

Step 1: Create a secret key

Create a free workspace, open API keys, click Create secret key, choose Read only, and copy the key. It starts with ls_test_ and is shown once. Keep it on your server, never in browser code.

.env
export CROSSBLADE_SECRET_KEY="ls_test_..."
export CROSSBLADE_BASE_URL="https://crossblade.dev/v1"

The API base URL is also on the API keys page.

Step 2: Add a company

Open Connections, click Add company, enter the company name and click Add company and create link. Then open the company and copy its End-user ID. One end-user ID stands for one company file.

Terminal
export CROSSBLADE_END_USER_ID="end_usr_..."

Step 3: Read customers

curl --get "$CROSSBLADE_BASE_URL/quickbooks-desktop/customers" \
  --header "Authorization: Bearer $CROSSBLADE_SECRET_KEY" \
  --header "Conductor-End-User-Id: $CROSSBLADE_END_USER_ID" \
  --data-urlencode "limit=10"

Until QuickBooks is connected on Windows, this request fails. That is expected, and the error tells you how far setup has got:

Where setup isWhat you getWhy
Nobody has opened the setup link yetAt once: 502 INTEGRATION_CONNECTION_NOT_SET_UPThe connection is created when the setup link is first opened.
The setup link is open, but Web Connector isn’t connectedAfter 90 seconds: 504 QBD_REQUEST_EXPIREDThe request waited in the company’s queue, and Web Connector never picked it up before the deadline (Conductor-Timeout-Seconds, 90 by default). QuickBooks never saw it, so it is safe to send again.
Web Connector is connected200 and a list of customersWeb Connector checks in about once a minute, so the first answer can take up to a minute.
Response · 504
{
  "error": {
    "message": "The request expired before QuickBooks received it.",
    "userFacingMessage": "QuickBooks never received this request. Retry the original payload with the same idempotency key.",
    "type": "INTEGRATION_CONNECTION_ERROR",
    "code": "QBD_REQUEST_EXPIRED",
    "httpStatusCode": 504,
    "requestId": "f7376aec-48aa-4c16-a2e4-6b8118f7cf62"
  }
}

While you are testing, add --header "Conductor-Timeout-Seconds: 5" to get the same answer in five seconds. Every request, including this one, is in your request log under its request ID.

Step 4: Connect QuickBooks on Windows

Open the company’s setup link on the Windows computer that runs QuickBooks, signed in to QuickBooks as Admin. The page walks through five steps and shows Connected when QuickBooks has answered. The setup guide covers each step for whoever does it.

Then send the request from step 3 again:

Response · 200
{
  "objectType": "list",
  "url": "/v1/quickbooks-desktop/customers",
  "data": [
    {
      "id": "80000001-1234567890",
      "objectType": "qbd_customer",
      "name": "Northgate Supply Co.",
      "fullName": "Northgate Supply Co.",
      "isActive": true
    }
  ],
  "nextCursor": null,
  "hasMore": false,
  "remainingCount": 0
}

This response is shortened. Every documented field is present, and a value QuickBooks did not return is null. An empty list is a valid answer from an empty company file.

Step 5: Build it into your product

Create companies and setup links from your backend, so your customers connect without your team. Keep your own customer ID as each end-user’s sourceId.

Read the hosted setup flow

Before your first write

Use a Read + write key (unattended integration authority, not per-change human approval), and give each create, update, delete or void a stable idempotency key. If a write’s outcome is unknown, check QuickBooks and the request log before you send anything else. Read the idempotency guide.

Moving from Conductor

Change the base URL and key, then add idempotency keys to writes. Read the migration guide.