Pagination
Large QuickBooks lists use cursor pagination backed by QuickBooks' own iterators. Request up to 150 records per page and follow nextCursor until hasMore is false.
The list envelope
{
"objectType": "list",
"url": "/v1/quickbooks-desktop/invoices",
"data": [ /* up to 150 invoices */ ],
"nextCursor": "12DA0-1672531200",
"hasMore": true,
"remainingCount": 1275
}
limitaccepts 1–150 and defaults to 150 on cursor-paginated lists.- Send
cursor=<nextCursor>with the same filters to get the next page. remainingCountis QuickBooks' count of records not yet returned at that moment.- Stop when
hasMoreis false.nextCursoris then null.
curl --get "https://crossblade.dev/v1/quickbooks-desktop/invoices" \
-H "Authorization: Bearer $CROSSBLADE_SECRET_KEY" \
-H "Conductor-End-User-Id: $CROSSBLADE_END_USER_ID" \
--data-urlencode "limit=150" \
--data-urlencode "updatedAfter=2026-09-01" \
--data-urlencode "cursor=$NEXT_CURSOR"
Request history
GET /v1/requests lists safe request summaries in your API key’s current project and company scope. It accepts endUserId, status, search (up to 200 characters), limit (1–100, default 25), and an opaque cursor. Results contain data, hasMore, and nextCursor, ordered by creation time and request ID, newest first.
const page = await client.requests.list({ endUserId, limit: 25 });
if (page.hasMore && page.nextCursor) {
const next = await client.requests.list({ endUserId, limit: 25, cursor: page.nextCursor });
}
Keep every filter and the page size unchanged when using a cursor. Changed access or filters require starting again. Search matches company names, request IDs, and safe route templates; private notes, payloads, and stored credentials are excluded. History is a persisted summary: retrieve the individual request for its authoritative broker outcome. MCP exposes this same read as list_requests.
Automatic paging in the SDKs
// Every invoice across all pages
for await (const invoice of client.qbd.invoices.list({
conductorEndUserId: endUserId,
updatedAfter: "2026-09-01",
})) {
await upsertInvoice(invoice);
}
// Page by page
const first = await client.qbd.invoices.list({ conductorEndUserId: endUserId, limit: 150 });
for await (const page of first.iterPages()) {
console.log(page.data.length, page.remainingCount);
}
Filters, the end-user, and request options carry over to each page. Breaking out of the loop stops further requests. Automatic iteration stops after 10,000 pages.
QuickBooks iterator caveats
- The cursor is opaque. Do not build, parse, or store it for later. QuickBooks can return the same cursor value on every page of one listing; that is normal.
- Iterators live in QuickBooks on Windows. If QuickBooks or Web Connector restarts mid-listing, or you wait a long time between pages, continuing can fail. Restart from the first page.
- Each page is a QuickBooks round trip. It waits for Web Connector like any other request. Use the maximum
limitand date filters such asupdatedAfterfor incremental sync instead of re-reading everything. - Data can change while you page. Records edited during a listing may or may not appear. Re-run an incremental sync from your last high-water mark rather than relying on one listing.
- Some lists are not paginated. Smaller lists such as accounts, classes, and terms return every matching record in one response;
limitonly caps the count. Each resource page shows whether its list uses a cursor. - End-users are not paginated.
GET /v1/end-usersreturns the complete project list.