Create and send an invoice using the FreshBooks API

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

Steps

  1. Authenticate via OAuth 2.0 to obtain an access token; call GET https://api.freshbooks.com/auth/api/v1/users/me to retrieve the account_id for the target business.
  2. POST to https://api.freshbooks.com/accounting/account/{account_id}/invoices/invoices with Authorization: Bearer YOUR_TOKEN and Content-Type: application/json.
  3. Wrap the invoice payload in an invoice key; include customerid, create_date (YYYY-MM-DD), lines array (each with type, name, unit_cost with amount and code, qty, and taxName if applicable).
  4. The response returns the created invoice with id and status ('draft'); capture the invoice id for subsequent operations.
  5. To send the invoice, POST to https://api.freshbooks.com/accounting/account/{account_id}/invoices/invoices/{invoice_id} with the action field set to 'send' in the body.
  6. To retrieve all invoices for an account, issue a GET to the invoices endpoint and use page and per_page query parameters for pagination.

Known gotchas

Related routes

Create an invoice in QuickBooks Online via API
quickbooks.com · 4 steps · unrated
Create an invoice in QuickBooks Online via the Accounting API
developer.intuit.com · 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 15,500+ 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