# Desktop Accounting API documentation
Source: https://www.desktopaccountingapi.com/docs/

> Read and write QuickBooks Desktop data from your application with a REST API and SDKs for TypeScript, Python, C# and Java.

Desktop Accounting API connects your application to your customers' QuickBooks Desktop company files. You call a JSON REST API from your server. We deliver each request to the customer's QuickBooks through the QuickBooks Web Connector, Intuit's own sync program, and return QuickBooks' answer as typed JSON.

You never install anything on your customer's computer. Your customer opens a setup link once, downloads a small connector file, allows access in QuickBooks and pastes a password. From then on, your server can list invoices, create customers, run reports and work with more than 60 kinds of QuickBooks records.

- [Quickstart](https://www.desktopaccountingapi.com/docs/get-started/quickstart/): Create a key, connect a company file and list its invoices in about ten minutes.
- [Core concepts](https://www.desktopaccountingapi.com/docs/get-started/concepts/): Projects, end users, connections and requests, and how they fit together.
- [API reference](https://www.desktopaccountingapi.com/docs/api/reference/): All public operations, generated from the same schema that validates live requests.
- [Help center](https://www.desktopaccountingapi.com/docs/help/): Setup steps and fixes for your customers, written for people who run QuickBooks, not code.

Use [typed batch requests](https://www.desktopaccountingapi.com/docs/guides/batch/) for up to 25 ordered operations in one round trip. Enable the [change feed](https://www.desktopaccountingapi.com/docs/guides/change-feed/) to receive changed and deleted record IDs through webhooks.

## How a request travels

```
Your server ──HTTPS JSON──▶ api.desktopaccountingapi.com ──queue──▶ QuickBooks Web Connector ──▶ QuickBooks Desktop
            ◀── JSON ─────                                ◀──────── qbXML response ◀──────────
```

1. Your server sends `GET /v1/quickbooks-desktop/invoices` with your secret key and the end user's ID.
2. We validate the request, translate it to qbXML and queue it for that end user's company file.
3. The Web Connector on the customer's computer checks in about every 10 seconds (more often while there is work), picks up the request and hands it to QuickBooks.
4. QuickBooks answers. We map the answer to JSON and return it on your original HTTP call.

A warm connection answers in about a second. Read [Request lifecycle](https://www.desktopaccountingapi.com/docs/guides/request-lifecycle/) for the timing model, timeouts and the async mode for long-running work.

## What you can build

- Two-way sync between your product and QuickBooks Desktop: customers, vendors, items, invoices, bills, payments and journal entries.
- Incremental imports with `updatedAfter` filters and the deleted-objects endpoints. See [Incremental sync](https://www.desktopaccountingapi.com/docs/guides/incremental-sync/).
- Reporting from QuickBooks' own reports, such as profit and loss, aging and payroll summaries, returned as rows and columns. See [Reports](https://www.desktopaccountingapi.com/docs/quickbooks/reports/).
- Anything else qbXML supports, through [passthrough](https://www.desktopaccountingapi.com/docs/quickbooks/passthrough/).

## What makes this API different

- **Every request has a status you can see.** Each QuickBooks-bound call gets a request ID with a lifecycle (`queued`, `sent`, `succeeded`, `failed`, `outcome_unknown`), a timeline and the native QuickBooks status code. You can look it up with `GET /v1/requests/{id}` or in the dashboard request log.
- **Errors tell you what to do.** Each error carries a stable `code`, a cause, fixes addressed to you or to your end user, a message safe to show your customer, a retry flag and a link to [its documentation](https://www.desktopaccountingapi.com/docs/errors/).
- Reuse an `Idempotency-Key` for retries within its seven-day retention period. During that period, a completed or uncertain write is not sent again. After expiry, verify the earlier outcome before retrying old work. See [Idempotency and safe retries](https://www.desktopaccountingapi.com/docs/guides/idempotency/).
- **Pagination fails loudly.** QuickBooks cursors live only inside one session. We tell you when a cursor expires (`cursorExpiresAt`), replay a page you already fetched if your network dropped, and return `410 CURSOR_EXPIRED` with progress counts instead of silently skipping records. See [Pagination](https://www.desktopaccountingapi.com/docs/guides/pagination/).
- **Webhooks for asynchronous work.** Queue large imports with `Prefer: respond-async` and receive signed [webhooks](https://www.desktopaccountingapi.com/docs/guides/webhooks/) as each request finishes.

Coming from Conductor? Paths and field names match, so most code changes are the base URL, the key and one header name. See [Migrating from Conductor](https://www.desktopaccountingapi.com/docs/get-started/migrating-from-conductor/).
