# QuickBooks Desktop API reference

Base URL `https://desktop-app.greatwork.company`. Every endpoint is a read; authenticate with an API key ([how](/docs/authentication)). Answers are JSON, or CSV with `format=csv`, and every one carries `synced_at` and `as_of`. This reference is generated from [the OpenAPI document](https://desktop-app.greatwork.company/openapi.json), which code generators and coding assistants can read directly.

## Which endpoint answers which question

Most questions people bring to a QuickBooks Desktop file map to one resource or report and one or two filters. Start here, then open the resource page for its fields.

| You want | Ask for |
| --- | --- |
| Who owes you money right now, and how late | [A/R aging summary](/docs/api/reports/ar-aging), or [invoices](/docs/api/invoices) with `status=overdue` for the invoice list behind it |
| What you owe and when it is due | [A/P aging summary](/docs/api/reports/ap-aging), or [bills](/docs/api/bills) with `status=open` |
| Sales by item or by class for a month | [invoices](/docs/api/invoices) and [sales receipts](/docs/api/sales-receipts) with `date_from`, `date_to`, `format=csv` and `rows=lines` |
| Income and expenses for a period | [profit and loss](/docs/api/reports/profit-and-loss) |
| Which invoices a payment paid | [payments](/docs/api/payments) (`appliedTo`) |
| Work bid but not yet billed | [estimates](/docs/api/estimates) with `status=open`, and [sales orders](/docs/api/sales-orders) on Premier and Enterprise |
| What is on the shelf and on order | [inventory](/docs/api/inventory) |
| Which jobs make money | [job profitability summary](/docs/api/reports/job-profitability) |
| Everything that changed since your last pull | any resource with `modified_since` and `order=modified` |

## Ids, names and the colon

Every record carries QuickBooks' own id: a ListID for list records (customers, vendors, items, accounts, classes) and a TxnID for transactions. Those ids never change, so they are the keys to store. Names are a different matter. QuickBooks builds a full name from the record's name and every parent above it, joined with colons, so a job reads `Acme Construction:Kitchen remodel` and a sub-item reads `Labor:Framing labor`. Anyone can rename a customer in QuickBooks, which changes that full name everywhere. Intuit describes the rules on its page about [object identifiers, full names and references](https://developer.intuit.com/app/developer/qbdesktop/docs/additional-reference/objects-object-identifiers-fullnames-and-object-references).

References to other records come as `{ id, name }`, so a sheet can show "Acme Construction" without a second request and a program can still join on the id.

## How fresh the answers are

The API reads from the copy of the company file kept here, which the QuickBooks Web Connector on the office PC updates at each check-in. A few things move on their own schedule, and the resource pages say where:

- Changed customers, vendors, items and transactions arrive at the next check-in.
- Customer and vendor balances are re-read in full once a day, because QuickBooks changes a balance when a transaction posts without marking the customer itself as changed. Account balances are re-read at every check-in.
- Inventory quantities are re-read every 6 hours, for the same reason.
- Reports for their default period are refreshed when the stored copy is older than 6 hours. Any other period is asked for at the next check-in.
- Records deleted in QuickBooks are removed by a daily sweep.

Every answer says when its data last changed (`as_of`) and when it last finished syncing (`synced_at`), so a sheet or a script can show its own age. The details are in [freshness and sync](/docs/freshness-and-sync).

## Money, dates and formats

Amounts are numbers in the company file's home currency unless a record carries `currency` and `exchangeRate` (multicurrency files). Dates are `YYYY-MM-DD`; times carry the company file's offset. JSON is the default; `format=csv` gives one row per record, or one row per line item with `rows=lines` on resources that have lines. Paging works the same on every list: follow `next_cursor` until it is null ([requests and pagination](/docs/requests-and-pagination)).

## Account, files and jobs

| Endpoint | Returns |
| --- | --- |
| `GET /v1/me` | The key and account |
| `GET /v1/files` | Company files this key can read |
| `GET /v1/files/{file_id}` | One company file |
| `GET /v1/files/{file_id}/status` | Sync health in plain words |
| `GET /v1/jobs/{job_id}` | The answer to a queued read |
| `GET /v1/files/{file_id}/power-query/{name}` | A Power Query (M) recipe for Excel or Power BI |

## Resources (18)

| Resource | Endpoint | What it holds |
| --- | --- | --- |
| [Customers](/docs/api/customers) | `/v1/files/{file_id}/customers` | Customers and their jobs, with balances. A job is a customer with a parent, so Acme Construction:Kitchen remodel is its own row. |
| [Vendors](/docs/api/vendors) | `/v1/files/{file_id}/vendors` | Everyone you buy from, with what you still owe them. |
| [Items](/docs/api/items) | `/v1/files/{file_id}/items` | Your item list: services, inventory, non-inventory parts, other charges, discounts and groups, with prices and costs. |
| [Accounts](/docs/api/accounts) | `/v1/files/{file_id}/accounts` | The chart of accounts, with each account's type, number and current balance. |
| [Classes](/docs/api/classes) | `/v1/files/{file_id}/classes` | Your class list (locations, departments, lines of business), for splitting reports the way the company does. |
| [Invoices](/docs/api/invoices) | `/v1/files/{file_id}/invoices` | Invoices with their line items, what was paid and what is still open. The usual starting point for receivables reports. |
| [Sales receipts](/docs/api/sales-receipts) | `/v1/files/{file_id}/sales-receipts` | Sales paid on the spot (cash, card, check at the counter), with line items and where the money was deposited. |
| [Payments](/docs/api/payments) | `/v1/files/{file_id}/payments` | Customer payments received, and which invoices each one paid. |
| [Credit memos](/docs/api/credit-memos) | `/v1/files/{file_id}/credit-memos` | Credits issued to customers, and how much of each is still available to apply. |
| [Estimates](/docs/api/estimates) | `/v1/files/{file_id}/estimates` | Estimates and bids, active or not, with line items. Good for a pipeline view of work not yet invoiced. |
| [Sales orders](/docs/api/sales-orders) | `/v1/files/{file_id}/sales-orders` | Open and closed sales orders, with whether each has been fully invoiced. |
| [Bills](/docs/api/bills) | `/v1/files/{file_id}/bills` | Vendor bills with due dates, what is still open and the expense or item lines behind each one. |
| [Bill payments](/docs/api/bill-payments) | `/v1/files/{file_id}/bill-payments` | Bills you paid by check or credit card, and which bills each payment covered. |
| [Purchase orders](/docs/api/purchase-orders) | `/v1/files/{file_id}/purchase-orders` | Purchase orders sent to vendors, with expected dates and whether everything has arrived. |
| [Checks](/docs/api/checks) | `/v1/files/{file_id}/checks` | Checks written (and other direct payments entered as checks), with the account and the expense lines. |
| [Deposits](/docs/api/deposits) | `/v1/files/{file_id}/deposits` | Bank deposits and what went into each one, so receipts can be matched to the bank statement. |
| [Journal entries](/docs/api/journal-entries) | `/v1/files/{file_id}/journal-entries` | General journal entries with every debit and credit line, including adjusting entries. |
| [Inventory](/docs/api/inventory) | `/v1/files/{file_id}/inventory` | Quantity on hand, on order and on sales orders for each inventory item, with average cost and value. |

## Reports (5)

| Report | Endpoint | What it shows |
| --- | --- | --- |
| [Profit and loss](/docs/api/reports/profit-and-loss) | `/v1/files/{file_id}/reports/profit-and-loss` | QuickBooks' standard profit and loss: income, cost of goods sold, expenses and net income for a period. |
| [Balance sheet](/docs/api/reports/balance-sheet) | `/v1/files/{file_id}/reports/balance-sheet` | QuickBooks' standard balance sheet: assets, liabilities and equity as of the end of a period. |
| [A/R aging summary](/docs/api/reports/ar-aging) | `/v1/files/{file_id}/reports/ar-aging` | What each customer owes, split into current, 1-30, 31-60, 61-90 and over 90 days past due. |
| [A/P aging summary](/docs/api/reports/ap-aging) | `/v1/files/{file_id}/reports/ap-aging` | What you owe each vendor, split into current, 1-30, 31-60, 61-90 and over 90 days past due. |
| [Job profitability summary](/docs/api/reports/job-profitability) | `/v1/files/{file_id}/reports/job-profitability` | Actual cost, actual revenue and the difference for every customer and job, for a period. |

Errors follow one shape: [every error code](/docs/errors). Limits: [60 requests a minute per key, 500 records per page](/docs/limits).

Previous: [MCP](/docs/mcp) | Next: [Customers](/docs/api/customers)
