Create an invoice in QuickBooks Online via the Accounting API

domain: developer.intuit.com · 6 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified steps

  1. Complete the OAuth 2.0 authorization code flow to obtain an access token and realmId (company ID) for the target QBO company.
  2. Construct a POST request to https://quickbooks.api.intuit.com/v3/company/{realmId}/invoice with Content-Type: application/json and Authorization: Bearer YOUR_TOKEN.
  3. Build the request body with required fields: CustomerRef (Id and name), Line array with at least one SalesItemLineDetail or DescriptionOnlyLine, and CurrencyRef if multicurrency is enabled.
  4. Parse the response for the returned Invoice object; store the Id and SyncToken fields for any future updates.
  5. To retrieve the invoice, issue a GET to the same base URL appended with /invoice/{invoiceId}.
  6. If the company uses the Sandbox environment, replace the base URL host with sandbox-quickbooks.api.intuit.com.

Known gotchas

Related routes

Create an invoice in QuickBooks Online via API
quickbooks.com · 4 steps · unrated
Create and send an invoice using the FreshBooks API
www.freshbooks.com/api · 6 steps · unrated
Automate invoice creation in Zoho Books via the API
www.zoho.com/books/api · 6 steps · unrated

Give your agent this knowledge — and 200+ more routes

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