Skip to content
Desktop Accounting API

Quickstart

  1. Sign up.

  2. Open Home in a test project. If it shows Add sample company, select it. Then select Send test request.

  3. Create a key and set DAAPI_SECRET_KEY:

    Terminal window
    export DAAPI_SECRET_KEY="sk_test_..."
  4. Run the code on Home. It lists five customers.

Home shows this code with the sample company’s end-user ID in place of eu_01j9....

Terminal window
npm install @desktopaccountingapi/quickbooks-desktop@0.12.1
npm pkg set type=module
list-customers.ts
import { DesktopAccountingApi } from "@desktopaccountingapi/quickbooks-desktop";
const qb = new DesktopAccountingApi().forEndUser("eu_01j9..."); // reads DAAPI_SECRET_KEY
const page = await qb.qbd.customers.list({ limit: 5 });
for (const customer of page.data) console.log(customer.fullName);

Run it with node list-customers.ts (Node.js 22.18 or later).

The sample company is simulated. Test with real QuickBooks Desktop before production: connect a company file.