QuickBooks Online Accounting API (v3) bindings, built for agentic finance ops: reconciliation, invoicing, AP/AR and reporting.

  • ::quickbooks::oauth - authorize URL, code exchange, refresh (the refresh token rotates: persist the one each refresh returns), revoke, and callback parsing
  • ::quickbooks::auth - credential resolution (context or per-call opts), the per-run access-token cache, and the opt-in ::hot::store-backed token keeper
  • ::quickbooks::api - the request helpers, environment and realm handling, the pinned minorversion, HttpError with Intuit's Fault parsed and intuit_tid surfaced, and is-retryable
  • ::quickbooks::entities - create, get, sparse update, delete, void and deactivate for every supported entity, plus send and PDF
  • ::quickbooks::query - the SQL-like query endpoint with safe literals, STARTPOSITION/MAXRESULTS paging and collect-all
  • ::quickbooks::reports - ProfitAndLoss, BalanceSheet, CashFlow, aged receivables and payables, GeneralLedger, TransactionList and a row flattener
  • ::quickbooks::batch - up to 30 operations in one call
  • ::quickbooks::cdc - change data capture for sync
  • ::quickbooks::webhooks - intuit-signature verification and event parsing (legacy eventNotifications and CloudEvents)
  • ::quickbooks::company - CompanyInfo and Preferences

Setup (Context Variables):

VariableSecretMeaning
quickbooks.client.idnoYour app's OAuth client id
quickbooks.client.secretyesYour app's OAuth client secret
quickbooks.refresh.tokenyesA company's refresh token (rotates)
quickbooks.access.tokenyesA ready access token (skips refresh)
quickbooks.realm.idnoThe company id (realmId)
quickbooks.environmentnosandbox or production (default)
quickbooks.minorversionnoOverrides MINOR_VERSION
quickbooks.token.storenoStore name for the token keeper (opt-in)
quickbooks.webhook.verifieryesThe webhook verifier token

Quick start

::qb ::quickbooks::entities
::q ::quickbooks::query

open ::q/query-all(`select * from Invoice where Balance > '0' and TxnDate >= ${::q/literal("2026-01-01")}`)
invoice ::qb/get-entity("Invoice", "130")
::qb/send-entity("Invoice", invoice.Id, "ap@customer.example")

Values

AUTHORIZE_URL

AUTHORIZE_URL: Str "https://appcenter.intuit.com/connect/oauth2"

DEFAULT_ENVIRONMENT

DEFAULT_ENVIRONMENT: Str "production"

ENVIRONMENTS

ENVIRONMENTS: Vec [
  "sandbox",
  "production"
]

MAX_BATCH_ITEMS

MAX_BATCH_ITEMS: Int 30

MAX_RESULTS

MAX_RESULTS: Int 1000

MINOR_VERSION

MINOR_VERSION: Str "75"

The minorversion query parameter sent on every Accounting API call. Intuit retired minor versions 1-74 on 1 August 2025: requests that omit the parameter or ask for an older one are served as 75. This package pins 75 explicitly so responses do not depend on that fallback. Override with the quickbooks.minorversion context variable or opts.minorversion; values below MIN_MINOR_VERSION are rejected.

MIN_MINOR_VERSION

MIN_MINOR_VERSION: Int 75

PRODUCTION_BASE_URL

PRODUCTION_BASE_URL: Str "https://quickbooks.api.intuit.com"

REVOKE_URL

REVOKE_URL: Str "https://developer.api.intuit.com/v2/oauth2/tokens/revoke"

SANDBOX_BASE_URL

SANDBOX_BASE_URL: Str "https://sandbox-quickbooks.api.intuit.com"

SCOPE_ACCOUNTING

SCOPE_ACCOUNTING: Str "com.intuit.quickbooks.accounting"

SCOPE_PAYMENTS

SCOPE_PAYMENTS: Str "com.intuit.quickbooks.payment"

TOKEN_URL

TOKEN_URL: Str "https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer"