Skip to content
Desktop Accounting API

Change feed

The change feed watches QuickBooks resources for you. Subscribe a project to resources such as customers and invoices, and every connected end user’s company file is read on a schedule. Whenever records changed or were deleted since the last read, you receive a data.changed webhook with their IDs. Fetch the records you care about through the API.

It is off by default. Every poll opens a QuickBooks session on your customer’s computer, so turn it on only for the resources you need, at the interval you need.

  1. You create a change feed subscription with the resources to watch and an interval of at least 15 minutes.
  2. Every 15 minutes, each connected end user whose interval has passed is polled: for each resource, the records modified since the previous poll, and the records deleted in the same window.
  3. New changes become data.changed events, delivered to every webhook endpoint subscribed to data.changed.
  4. Your handler fetches the records by ID, or deletes its copy, and answers 2xx.

Polls have the lowest queue priority. Your pending requests are selected before an unsent poll and before the next page of a poll. A page already running in QuickBooks must finish before the next request can run.

import { DesktopAccountingApi } from "@desktopaccountingapi/quickbooks-desktop";
const client = new DesktopAccountingApi();
const subscription = await client.changeFeedSubscriptions.create({
resources: ["customers", "invoices"],
intervalMinutes: 15,
});
console.log(subscription.id, subscription.resources);

Then add a webhook endpoint with data.changed among its event types, or add it to an existing endpoint.

Field Meaning
resources Resources to watch, each listed once, named as in the SDK and operation IDs: customers, invoices, billCheckPayments, salesRepresentatives. Every resource whose list filters by modification time and that has a typed delete operation can be watched. Cross-type lists (items, entities, transactions) are not resources of their own; subscribe to the typed resources, such as serviceItems and inventoryItems.
intervalMinutes Minutes between polls of each end user, 15 to 1440. Default 15. When two subscriptions watch the same resource, the shorter interval applies.
enabled false pauses polling and keeps the settings.

A project can have up to 10 subscriptions (422 CHANGE_FEED_SUBSCRIPTION_LIMIT_REACHED). Test and production projects have separate subscriptions. Every create, update and delete is recorded with the API key and request ID that made it. Read-only keys can list and retrieve subscriptions, not change them.

You can also manage subscriptions on the project’s Change feed page in the dashboard. Owners and admins can create, edit, pause and delete them there; members can view them. For every connected end user, the page shows each watched resource’s last poll, last successful poll, last error and any backoff after an answer too large to read. Changes made in the dashboard are recorded with the user who made them.

{
"id": "evt_01j9x7c2m4p6r8t0v2x4z6b8dc",
"type": "data.changed",
"timestamp": "2026-10-12T10:17:04.211Z",
"projectId": "proj_01j9...",
"data": {
"objectType": "data_change",
"connectionId": "conn_01j9...",
"endUserId": "eu_01j9...",
"resource": "customers",
"changed": ["80000001-1700000000", "80000007-1700000123"],
"deleted": ["8000000A-1700000456"],
"windowStart": "2026-10-12T10:00:00.000Z",
"windowEnd": "2026-10-12T10:17:00.000Z",
"page": 1,
"pageCount": 1
}
}
Field Meaning
resource The watched resource.
changed IDs of records created or modified in the window (including deactivated list records). Fetch them with the resource’s retrieve or list operation.
deleted IDs of records deleted in the window. Delete your copies.
windowStart, windowEnd The time window the poll covered (server time, UTC). QuickBooks may read further back than windowStart, by the computer’s time zone difference from UTC−12. A poll with several pages sends events for each page, all with the same window.
page, pageCount One event carries at most 100 IDs. A QuickBooks page with more changes sends several events, numbered from 1; a poll that reads several QuickBooks pages numbers each page’s events from 1 again.

Events carry IDs only, never record bodies or other accounting data. A record that changed several times between polls appears once.

import { DesktopAccountingApi } from "@desktopaccountingapi/quickbooks-desktop";
const client = new DesktopAccountingApi();
interface DataChange {
endUserId: string;
resource: string;
changed: string[];
deleted: string[];
}
export async function handleDataChanged(body: string, headers: Record<string, string>, secret: string) {
const event = await client.webhooks.verify<DataChange>(body, headers, secret);
if (event.type !== "data.changed" || event.data.resource !== "customers") return;
const qb = client.forEndUser(event.data.endUserId);
for (const id of event.data.changed) {
const customer = await qb.qbd.customers.retrieve(id);
console.log("upsert", customer.id, customer.revisionNumber);
}
for (const id of event.data.deleted) console.log("delete", id);
}
  • Deduplicate on webhook-id. Delivery is at least once, and a resent delivery keeps its webhook-id. Events are sent page by page, as soon as each QuickBooks page is read, so a poll that fails partway has already sent the events for its earlier pages. Those events stay valid and are delivered. The next poll reads the whole window again and sends new events, with new IDs, only for records not already reported with the same ID and revisionNumber (for deletions, the same deletion time). A record that changed again in the meantime is reported again.
  • Events can arrive out of order, and can name records changed shortly before windowStart or before the subscription started. Use them as signals to retrieve the current record, and serialize updates to your local copy for each record. Do not compare revisionNumber strings to decide which event is newer. QuickBooks can keep the same revision for two edits within one second, so do not skip a fresh read solely because its revision matches.
  • Answer fast. Queue the fetches and answer 2xx. Your fetches go through the end user’s queue like any other request.

Each poll asks QuickBooks for everything modified or deleted since the previous successful poll of that resource, with a 2-minute overlap. The start of the window is written as local time at UTC−12, the westernmost time zone. QuickBooks therefore starts the window early enough whatever time zone the customer’s computer uses, and whether or not it applies the offset, so a change of time zone or of daylight saving time does not make the window start late. The feed does not need to learn the computer’s time zone. The price is a longer re-read: each poll also reads the hours between the computer’s time zone and UTC−12 (4 to 9 hours in the US and Canada, at most a day), and records already reported with the same ID and revisionNumber are suppressed.

QuickBooks stamps changes with the clock of the customer’s computer. The 2-minute overlap covers a clock up to 2 minutes behind our servers, and a clock that is ahead only moves a change to a later poll. Keep the QuickBooks computer’s clock accurate. This is an incremental notification feed, not an audit trail of every edit.

Intuit sample company files report modification times moved to the sample’s fixed date (for Rock Castle Construction, in December), so the timestamps are weeks ahead of the actual time. The feed keeps its windows on our servers’ clock and queries sample files through the same polling process. Use periodic full comparisons when you need a complete copy, including when testing with a sample file.

Most resources are read through a QuickBooks iterator, 150 records per page, in the same session until QuickBooks reports that none remain. A few short lists that QuickBooks cannot iterate (accounts, classes, terms, sales tax codes and similar) are read in one answer. Each resource keeps its own window: the window moves forward only after its last page is read, and a failed page means the next poll reads the whole window again. A slow or failing resource never holds back another.

If QuickBooks’ answer is too large to read, that resource waits an hour before asking again, then two, up to a day, and then reads everything from where it stopped. Other resources and your own requests continue meanwhile. Use periodic comparisons when your workflow requires a complete copy.

  • The end user’s computer is offline, or the Web Connector is not running: no poll. The next poll after it comes back covers the whole time since the last successful poll.
  • The connection is disabled: no poll until it is enabled again; then the gap is covered.
  • A write’s outcome is unknown (uncertain writes): polls wait until the connection stops holding later writes back. Your own reads still run.
  • A poll fails (QuickBooks busy, the session ended, an unreadable answer): the failed page reports nothing, and the window does not move forward. Pages read before the failure have already been reported. The next poll reads the whole window again and reports only what was not reported yet.
  • Missed schedules: a late poll reads the window since the previous successful one.
  • An answer too large to read: that resource waits, from an hour up to a day, then reads from where it stopped.

Polls run when the Web Connector checks in, so their timing follows the end user’s Web Connector schedule.

The watch window starts when the subscription or resource is added, or when the end user finishes setup if that is later. Early events can include records changed shortly before that, because every window reaches back. Use the incremental sync pattern for the first copy; the feed does not provide a historical backfill.

Removing a resource or disabling or deleting a subscription stops polling only when no other enabled subscription watches that resource. Its unsent polls are canceled, and the answer to a poll already in QuickBooks is discarded, so no event follows from it. Events already emitted remain deliverable. Adding a resource again starts a new watch window when no other subscription has kept it active. Resetting an end user’s company file identity or moving the end user to another project also starts a new window.

QuickBooks keeps deletions for 90 days, so if polls stop for longer (the computer offline, the connection disabled, billing paused, or QuickBooks failing to answer), compare your copy with QuickBooks by ID once polls resume. Changed records are still reported.

A successfully read poll page of a production company file counts as a data request, exactly like a read you send yourself: it makes the file active in the current billing period (Billing). An active file is billed once per monthly billing period, however many polls or requests it receives. A poll that fails on a later page still counts if an earlier page was read. Polls of Intuit sample company files, exempt files and anything in a test project are free. While your organization’s production data requests are blocked for billing, polls of billable company files pause and resume where they stopped once billing is fixed.