Disclaimer: QuickBooksUsers.com is an independent service operated by E-Tech Corporation and is not affiliated with, endorsed by, or sponsored by Intuit Inc. "QuickBooks" is a registered trademark of Intuit Inc., used for identification and reference purposes only. See our Terms of Service.

QuickBooks

Connecting a Job Costing Tool to QuickBooks Online via the API

QuickBooksUsers.com TeamUpdated 2026-10-042 min read

Three QuickBooks Online objects carry the whole connection: the Estimate you send out, and the TimeActivity and Bill records that bring labor and supplier charges back. A single customer reference ties every amount to the job. QuickBooks Online has no separate work-order transaction, so the work order stays in your tool while QuickBooks holds the quote, the hours and the costs. Here is the exact exchange and the order we build it in.

The three objects that carry the flow

The Estimate holds the quote: customer, line items, quantities and prices. The Bill holds supplier charges, and each expense line can reference the same customer. The TimeActivity record holds crew hours, also tied to the customer.

Keep the item lists aligned on both sides. The ItemRef value in QuickBooks must map to the cost code in your tool, because one mismatched item drops those costs out of your roll-up.

A working Estimate payload

The API speaks JSON. A minimal estimate looks like this:

{
  "CustomerRef": { "value": "58" },
  "TxnDate": "2025-03-04",
  "TxnStatus": "Pending",
  "Line": [
    {
      "LineNum": 1,
      "Description": "Fixture install, first floor",
      "Amount": 2500.00,
      "DetailType": "SalesItemLineDetail",
      "SalesItemLineDetail": {
        "ItemRef": { "value": "12", "name": "Install labor" },
        "Qty": 50,
        "UnitPrice": 50.00
      }
    }
  ]
}

Note the references. CustomerRef and ItemRef point at internal IDs, not names. Resolve names to IDs once, store the crosswalk, and reuse it on every call.

Reading estimates back: queries or webhooks

The API also accepts SQL-style queries, so a scheduled poll can fetch only the estimates your team has accepted:

SELECT * FROM Estimate WHERE TxnStatus = 'Accepted'

Webhooks push the same notification in near real time. Either approach works, and webhooks help you stay clear of the API rate limits.

How do actual costs flow back?

Crew time goes in as a TimeActivity with the customer reference and a service item. Supplier charges go in as a Bill whose expense lines name the same customer. Read them back with the same query style:

SELECT * FROM TimeActivity WHERE CustomerRef = '58'

The billable flag matters as well. Mark a line billable when you post it if you want the cost recovered on the next invoice. Once the customer reference is set, job profitability reports in QuickBooks Online pick the costs up on their own.

Build the connection in five steps

  1. Register the app against a sandbox. Intuit gives each developer account a sandbox company. Build there first, because test estimates never touch your live books.
  2. Finish OAuth 2.0 before anything else. Access tokens are short-lived and must be refreshed. Solve the token loop first, or the sync will fail on its own overnight.
  3. Map fields before writing code. List each field you copy by hand today: customer, job, description, quantity, unit price, cost code. Each maps to a named field in the payload above. Skipped fields are where the two systems drift apart.
  4. Trigger on status, not on save. Sync an estimate only once its status becomes Accepted. Otherwise every draft edit floods the job costing tool with half-finished quotes.
  5. Test one job end to end. Send a single accepted estimate, post one time activity and one bill against it, then check the job profitability report in QuickBooks Online. Enable the flow for all new jobs only after that round trip balances.

For simple one-way pushes, middleware such as Zapier or Make can call the same API without custom code.

The failure points we see most

Most failures trace to identifiers, not logic. Names change and IDs do not, so store references rather than customer or item names.

Handle edited estimates the same way you handle new ones; without update events your tool will hold a stale total. Watch the item crosswalk too, because one retired cost code silently routes costs to an unmapped bucket.

Start with one round trip

Open the sandbox, post the sample estimate above, and read it back with the query. That single round trip proves your credentials, your field map and your query syntax in one test. Add the accepted-status trigger next, then the return path for time and bills.

Need Professional Help?

Contact Us