Use QuickBooks Online Classes and Locations for segment tracking on transactions via API

domain: developer.intuit.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

QuickBooks OAuth refresh token rotation — the full failure-mode walkthrough related to developer.intuit.com, checked against official docs, with linked verified routes.

Steps

  1. Confirm Class tracking and Location tracking are enabled in QBO Company Settings > Advanced; they can be enabled independently
  2. Create Class records via POST /v3/company/{realmId}/class with 'Name' and optionally 'ParentRef' for sub-classes
  3. Create Department (Location) records via POST /v3/company/{realmId}/department with 'Name'
  4. When creating a transaction, set 'ClassRef' and/or 'DepartmentRef' at the header level or on individual Line objects depending on the feature's 'per-transaction' vs 'per-line' setting in QBO
  5. Retrieve class and location breakdowns by querying the QBO reports API for P&L by Class or Location (/v3/company/{realmId}/reports/ProfitAndLoss?summarize_column_by=Classes)
  6. List all classes via SELECT * FROM Class and departments via SELECT * FROM Department using the query endpoint

Known gotchas

Related routes

Use QuickBooks Online classes and locations for segment reporting via API
developer.intuit.com · 6 steps · unrated
Create a QuickBooks Online JournalEntry with class and location tracking dimensions
developer.intuit.com · 6 steps · unrated
Create a Bill and Vendor record in QuickBooks Online via the Accounting API
developer.intuit.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans