Skip to Content
AccountingKitDocs
Integrations

QuickBooks Online

QuickBooks Online integration with verified webhooks: Intuit OAuth and realm identity, intuit-signature checks on CloudEvents, invoices, payments, voids, and incremental sync.

Available

Organizations, contacts, items, accounts, invoices, payments, purchase orders, and attachments for every connected QuickBooks Online company, with verified Intuit webhooks.

Register your own Intuit app in the console, then create a connect session with quickbooks_online.

QuickBooks Online runs behind the same public API as every other provider. A QuickBooks invoice, payment, or contact has the same response shape as its Xero equivalent, writes take the same normalized bodies, and QuickBooks Online webhooks arrive at your endpoint as the same signed AccountingKit events.

Capability summary

AreaSupport
AuthenticationIntuit OAuth 2.0, realmId company identity, rotating refresh tokens, revocation
ReadsCached lists, live point reads, and exact live search
WritesNormalized contacts, items, invoices, payments, and purchase orders
Read-only resourcesOrganizations (CompanyInfo) and accounts
AttachmentsList, upload, and download via QuickBooks Attachable on invoices & purchase orders
SynchronizationIncremental sync on MetaData.LastUpdatedTime and hourly invoice reconciliation
Webhooksintuit-signature verified CloudEvents, each followed by a live QuickBooks read
Provider actionsInvoice PDF, invoice online URL, invoice email, and invoice void through cancellation
ReportsProfit and Loss, accrual or cash basis, through the shared financial reports endpoint

Supported resources and operations

ResourceQuickBooks entityListGetCreateUpdateProvider actions
OrganizationsCompanyInfo✓✓———
ContactsCustomer, Vendor✓✓✓✓—
ItemsItem✓✓✓✓—
AccountsAccount✓✓———
InvoicesInvoice✓✓✓✓PDF, online URL, email, cancel (void), files
PaymentsPayment✓✓✓——
Purchase ordersPurchaseOrder✓✓✓✓Files

Intuit exposes exactly one CompanyInfo record per realm, so organizations returns a single record for the connected company. Contacts list both customers and vendors; a normalized contact create always creates a QuickBooks Customer. Provider IDs for contacts are namespaced as Customer:<id> and Vendor:<id>, because Intuit numbers the two entities independently.

Purchase orders exist only on QuickBooks Online editions that include them (Plus and Advanced). Full sync skips purchase orders when Intuit returns Fault 5020 on Simple Start or Essentials so the rest of the company syncs normally; direct purchase-order requests on those editions return 400 with details.reason: "provider_unsupported".

Not supported in this release

These resources and features report provider_unsupported in the connection capability manifest, and a request for them returns 400:

  • quotes (QuickBooks Estimates), credit notes, tax rates, and branding themes;
  • overpayments, prepayments, and multi-currency revaluation;
  • provider-native writes: a provider_data body is rejected for QuickBooks Online connections;
  • quote and purchase-order PDFs and the organization deep link;
  • QuickBooks Desktop, which uses a different API and is not a QuickBooks Online company.

Set up your own Intuit app

Every connection runs through an Intuit app your organization registers and owns. AccountingKit encrypts its credentials and operates OAuth, token rotation, webhooks, and durable operations for it.

Create the provider app draft

In the console, choose Test or Live, open Provider apps, and add QuickBooks Online. AccountingKit creates a resumable draft and shows the exact OAuth redirect URI and webhook URL for it.

Create the Intuit app

On the Intuit Developer dashboard, create an app for QuickBooks Online with the com.intuit.quickbooks.accounting scope. That is the only scope AccountingKit requests; it also covers reports.

Match the keys to the environment

Intuit issues two key sets per app. A Test provider app uses the Development keys, which only reach sandbox companies on sandbox-quickbooks.api.intuit.com. A Live provider app uses the Production keys, which only reach real companies on quickbooks.api.intuit.com. AccountingKit selects the API host from the provider app's environment; a caller can never choose it. Intuit issues Production keys only after you complete your app's production settings in the developer portal.

Add the redirect URI

Add the OAuth redirect URI shown in the console to the redirect URIs of the matching key set. It has this shape and must match exactly:

https://api.accountingkit.dev/connect/quickbooks-online/callback

Configure webhooks for the same key set

Intuit configures Development and Production webhooks separately. On the webhooks page for the matching key set, enter the app-specific webhook URL from the console and enable the Invoice, Payment, Customer, Vendor, Account, and PurchaseOrder entities.

https://api.accountingkit.dev/webhooks/quickbooks-online/{provider_app_id}

Store the credentials

Paste the Client ID, Client Secret, and the webhook verifier token from that webhooks page into the console. They are encrypted before persistence and never returned; the console shows only short hints. Then connect a company and select Check setup: the first authorization proves the redirect and scope, and the first signed delivery proves the webhook.

Connect a company

Create a connect session with "provider": "quickbooks_online" and open the returned connect_url. Intuit's consent screen lets the signed-in QuickBooks user choose the company to authorize, and the callback returns its realmId, which becomes the connection's provider_tenant_id. One authorization is one company, so there is no second tenant picker.

curl --request POST "https://api.accountingkit.dev/v1/connect-sessions" \
  --header "Authorization: Bearer $ACCOUNTINGKIT_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "provider": "quickbooks_online",
    "external_account_id": "customer_123",
    "redirect_uri": "https://app.example.com/integrations/quickbooks/complete",
    "provider_app_id": "the-app-id-from-the-console",
    "retention_mode": "cached",
    "reports": ["profit_and_loss"]
  }'

Omit provider_app_id to use the environment's default QuickBooks Online app. A company already connected under another external account through the same provider app is rejected, so one realm cannot silently appear twice. Reauthorizing the same external_account_id updates the existing connection instead of creating a duplicate.

reports records consent to read Profit and Loss reports. QuickBooks Online covers reports with the standard accounting scope, so Intuit's consent screen does not change, and AccountingKit enforces the opt-in itself: without it the report endpoint returns 409 with details.reason: "report_not_authorized" and the capability manifest marks the report unavailable.

QuickBooks Online webhooks

A QuickBooks Online webhook is a change notification for one or more entities in one or more companies. AccountingKit verifies it, records it, and answers Intuit immediately. A durable operation then reads the changed record from QuickBooks and emits signed AccountingKit events to your endpoints. The notification is a hint; the subsequent QuickBooks read is the source of truth.

The payload Intuit sends

Intuit delivers a POST whose body is a JSON array of CloudEvents:

[
  {
    "specversion": "1.0",
    "id": "88cd52aa-33b6-4351-9aa4-47572edbd068",
    "source": "intuit.dsnBgbseACLLRZNxo2dfc4evmEJdxde58xeeYcZliOU=",
    "type": "qbo.invoice.updated.v1",
    "datacontenttype": "application/json",
    "time": "2026-11-22T21:31:25.179851517Z",
    "intuitentityid": "1234",
    "intuitaccountid": "310687",
    "data": {}
  }
]
FieldMeaning
idUnique event ID. AccountingKit deduplicates on it per provider app.
typeqbo.<entity>.<operation>.v1, for example qbo.payment.created.v1.
intuitaccountidThe company's realmId. It selects the AccountingKit connection.
intuitentityidThe QuickBooks Id of the changed entity.
timeWhen the change happened. Use it, not arrival order, to order events.
dataUsually empty. A merge carries {"deletedid": "27"}, the ID merged away.

Operations are created, updated, deleted, merged, voided, and emailed. Intuit retired the older eventNotifications object format in 2026; AccountingKit still accepts it from sandbox apps created before the cutover and maps it to the same events.

Verifying the intuit-signature header

Each delivery carries an intuit-signature header: the Base64-encoded HMAC-SHA256 of the exact request body, keyed with the verifier token from the app's webhooks page. AccountingKit loads the encrypted verifier token for the provider app named in the URL, computes the HMAC over the raw bytes before any JSON parsing, and compares it in constant time. A delivery that fails the check is rejected and nothing is stored.

If you also receive Intuit webhooks in your own service, verify them the same way:

import {createHmac, timingSafeEqual} from 'node:crypto'

export function verifyIntuitSignature(
  rawBody: Buffer,
  signature: string | undefined,
  verifierToken: string,
) {
  if (!signature) return false
  const expected = createHmac('sha256', verifierToken).update(rawBody).digest()
  const received = Buffer.from(signature, 'base64')
  return received.length === expected.length && timingSafeEqual(received, expected)
}

Hash the bytes you received, never a re-serialized object: reformatting JSON changes the digest.

Acknowledge within three seconds

Intuit expects an HTTP 200 within 3 seconds. A slower or failed response is retried after 10 seconds, 20 seconds, 30 seconds, 5 minutes, 20 minutes, 2 hours, 4 hours, and 6 hours, then every 6 hours, and Intuit may hold later events until the earlier delivery is acknowledged. AccountingKit therefore does only three things before answering: verify the signature, persist the parsed events with their operations in one transaction, and return 200. It never calls the QuickBooks API inline and never stores the raw webhook body.

Several companies in one delivery

One delivery can contain events for several companies. AccountingKit routes each event by the provider app in the URL and the realmId in intuitaccountid. An event for a realm that has no active connection on that provider app is recorded and ignored, so a disconnected company cannot cause another tenant's work.

Ordering, duplicates, and missed events

Intuit does not guarantee order and has no sequence number. AccountingKit deduplicates on the event id, treats time as the order of changes, and always reads the current record from QuickBooks rather than trusting the notification. Missed events are recovered by incremental sync: hourly invoice reconciliation and POST /v1/connections/:connection_id/sync read everything with a MetaData.LastUpdatedTime after the last successful sync, so a dropped notification is caught without any action from you.

From an Intuit event to AccountingKit events

Intuit entityWhat AccountingKit does
InvoiceReads the invoice live and runs the invoice lifecycle pipeline.
PaymentReads the payment, then runs the invoice pipeline for every invoice it pays.
OthersChange hints, reconciled by incremental sync. No AccountingKit event is emitted.

The invoice pipeline is the same one Xero uses. It emits invoice.updated with a provider-neutral invoice snapshot. When the live amount paid, amount due, or status differs from the previously cached invoice, it also emits invoice.payment_changed, and a transition from any unpaid state to paid emits invoice.paid. A payment created or reapplied in QuickBooks therefore reaches you as a payment change on each invoice it pays. A deleted payment can no longer be read, so its effect is picked up when the affected invoice next reconciles.

{
  "id": "evt_…",
  "type": "invoice.payment_changed",
  "environment_id": "…",
  "created_at": "2026-11-22T21:31:27.004Z",
  "data": {
    "connection_id": "…",
    "external_account_id": "customer_123",
    "provider": "quickbooks_online",
    "previous_status": "authorised",
    "previous_amount_paid": 0,
    "invoice": {
      "id": "…",
      "provider_id": "1234",
      "number": "1042",
      "status": "paid",
      "currency": "USD",
      "total": 1200,
      "amount_paid": 1200,
      "amount_due": 0
    },
    "document": {"refresh_required": true, "provider_action": "invoice.download_pdf"}
  }
}

Every delivery to your endpoint is signed with AccountingKit-Signature and retried as a durable operation. Verification and replay are covered in webhooks.

Writing invoices

Invoice writes take the normalized body. QuickBooks needs a product or service item on every sales line, and a line's external_reference is not one, so pass the QuickBooks Item ID in provider_options.quickbooks_online.item_id. It applies to every line of the document. A write without it is rejected with 400 before anything reaches QuickBooks. The item's own income account and tax settings apply to the line.

curl --request POST "https://api.accountingkit.dev/v1/connections/$CONNECTION_ID/invoices" \
  --header "Authorization: Bearer $ACCOUNTINGKIT_API_KEY" \
  --header "Idempotency-Key: invoice-order-10042" \
  --header "Content-Type: application/json" \
  --data '{
    "external_reference": "order_10042",
    "contact_id": "the-customer-contact-id",
    "due_date": "2026-12-31",
    "line_items": [
      {"description": "Implementation", "quantity": 1, "unit_amount": 1200}
    ],
    "provider_options": {"quickbooks_online": {"item_id": "1"}}
  }'
  • contact_id must be a customer. A vendor contact on an invoice, or a customer on a purchase order, is rejected with 400.
  • external_reference is written to the invoice's PrivateNote and read back from it. Intuit's query language cannot filter on PrivateNote, so search documents by number (QuickBooks DocNumber) instead.
  • QuickBooks Online has no draft invoice. A created invoice is open immediately and reads back as authorised; it becomes paid when its balance reaches zero and voided once voided. The only status a write accepts is authorised.
  • Every line needs unit_amount. Per-line discount_rate and account_code have no QuickBooks equivalent on a sales line and are rejected with 400 rather than silently dropped.
  • Updates are sparse and use the current SyncToken. A concurrent change in QuickBooks returns 409; read the invoice again and retry with a new idempotency key.
  • Every create, update, and void sends Intuit a requestid derived from your Idempotency-Key, so a retried write is not applied twice.

Purchase orders take the same body. Each line uses item_id when present, otherwise provider_options.quickbooks_online.expense_account_id, and the write is rejected when neither is given. Contacts created through the API are QuickBooks customers; purchase orders reference a vendor that already exists in QuickBooks. Customer contacts write external_reference to QuickBooks Customer.Notes (and read Vendor.AcctNum for vendors) and write the name to DisplayName. Because Customer.Notes is not filterable in Intuit's query language, search contacts by name or status. Intuit requires DisplayName to be unique across customers, vendors, and employees, so a retried contact create that meets Intuit's duplicate-name error is reconciled to the customer it already created by DisplayName.

Payments

A normalized payment records money received against one invoice:

{
  "external_reference": "payout_8812",
  "invoice_id": "the-invoice-id",
  "account_id": "the-deposit-account-id",
  "amount": 1200,
  "date": "2026-11-22"
}

AccountingKit reads the invoice for its customer and currency, creates a QuickBooks Payment deposited to account_id, and applies the full amount to that invoice. external_reference is written to the payment's PrivateNote. Payments cannot be updated through the API; record a new payment or reverse it in QuickBooks, and the change reaches you through the payment webhook and the invoice events above.

Cancellation

POST /v1/connections/:connection_id/invoices/:resource_id/cancel voids a QuickBooks invoice. A void keeps the invoice and its number but zeroes its amounts, and the response reports "cancellation_status": "voided". QuickBooks invoices are never deleted through this endpoint.

An invoice with an applied payment or credit cannot be voided and returns 409; remove the payment in QuickBooks first. Cancelling an invoice that is already voided returns the voided invoice again.

Limitations and Intuit facts

  • API version. Every request pins minorversion=75. Intuit retired minor versions 1 to 74 on 2025-08-01 and treats any lower value as 75.
  • Refresh-token rotation. Intuit can return a new refresh token on every refresh and the old one stops working. AccountingKit persists each new token atomically before it is used, so concurrent workers never race on a stale token.
  • Idle expiry. An Intuit refresh token expires after 100 days without use. Active connections are refreshed by routine reads and hourly reconciliation; a connection left unused past that limit moves to action_required and must be reauthorized.
  • Maximum lifetime. Intuit caps a refresh token chain at five years from the original authorization. After that the company must be reconnected; reauthorizing the same external account keeps the connection and its mapping.
  • Access tokens last one hour and are refreshed automatically.
  • Rate limits. Intuit allows 500 requests per minute per company and 10 requests per second per company and app. AccountingKit enforces a per-connection provider budget and surfaces Intuit throttling as 429 RATE_LIMITED with retry_after_seconds when Intuit supplies one.
  • Pagination. Intuit's STARTPOSITION and MAXRESULTS stay inside the adapter; you page with the same page and limit parameters as every other provider.
  • Online invoice URL. invoice.get_online_url returns 404 when online invoicing is not enabled for the invoice in QuickBooks.

For field-level detail, see Intuit's Invoice and webhooks documentation.

On this page