Español →
← How To Guides
ClientManager · How To

Connect QuickBooks Online

One-time setup to let a tenant push their Customers, Jobs, Invoices, Bills, and Credit Memos — with real Material/Labor/Sub/Equipment cost-type detail, not a blended number — from ClientManager into their own QuickBooks Online company. No more re-typing the same record twice.

Why this exists: CM is where staff do the actual work — Projects, Estimates, Invoices, Companies. QuickBooks is purely the accounting/bookkeeping system a tenant's bookkeeper uses to reconcile and file taxes. Without this integration, someone has to manually re-type every Invoice into QuickBooks by hand. This closes that gap — but only in one direction, and only when a human explicitly asks for it (see the architecture section below).
ClientManager
Projects · Invoices · Bills
→→→
Human clicks
Synchronize
→→→
QuickBooks Online
Accounting · Tax filing

Part 1 — Register the app on Intuit (one-time, per CM environment)

1

Create an app at developer.intuit.com

Sign in at developer.intuit.com with the Intuit account that should own this, click My Apps → Create an app, pick "QuickBooks Online and Payments" as the platform, and give it a name (e.g. "ClientManager - Dev").

Worth knowing: if you have more than one Intuit account, Intuit's login screen can stubbornly default to an old one and hide the account you actually registered with. Open a private/incognito browser window if the account you need isn't showing up as an option — that clears the cached account picker.
2

Get the real Client ID and Client Secret

Inside the app, go to Keys and credentials in the left nav. Under the Development tab, toggle "Show credentials" — you'll see Client ID and Client secret, each a long jumbled string (30-50+ characters).

Worth knowing — the mistake we actually made: the left sidebar also shows an "AppID" (a short GUID like a5a83d33-eb77-4773-9092-79ce08926026) and the dashboard URL contains its own internal numeric app id. Neither of those is the Client Secret. Only trust the two values shown on the Keys and credentials page itself, under "Show credentials."
3

Add the Redirect URI

Still in the app, go to Settings → Redirect URIs (a separate tab from Keys and credentials — easy to miss). Under Development, click Add URI and enter:

http://localhost:5229/api/quickbooks/oauth-callback (for local dev)
https:///api/quickbooks/oauth-callback (for the cmblazor test site)
https://clientmanager.com/api/quickbooks/oauth-callback (for real production, once wired to Production keys)

Click Save. Leave Intuit's own default OAuth Playground URL in the list too — don't delete it, it's harmless and useful for manually testing a connection later.

Worth knowing: Intuit requires an exact string match — scheme, host, port, and path all have to match byte-for-byte what CM actually sends, or you'll get "The redirect_uri query parameter value is invalid." A trailing space pasted in by accident is enough to break it.
4

Put the Client ID/Secret into CM's config

These two values are app-level config, not per-tenant — set once per CM environment (see the table further down). On a dev machine, from the ClientManager.Web project folder:

dotnet user-secrets set "QuickBooks:ClientId" "<the real Client ID>"
dotnet user-secrets set "QuickBooks:ClientSecret" "<the real Client Secret>"

On a deployed IONOS site, the same two keys go into that site's own appsettings.Production.json under a "QuickBooks" section — same pattern already used for Stripe/Resend/Twilio.

Worth knowing: restart the app (or the local dev server) after setting these — config is only read at startup.

Part 2 — Connect a tenant (repeat per tenant, on whichever environment they use)

5

Connect QuickBooks

As that tenant's Site admin, go to Financial → QuickBooks Actions, click Connect QuickBooks (in the panel at the top of the page — not inside either tab). You're redirected to Intuit's own login/consent screen — sign in as the QuickBooks company owner and click Connect. You're redirected back to CM showing Connected with the company name and realm ID.

Page layout — what's where

One nav entry, Financial → QuickBooks Actions, opens one page with three distinct areas. Knowing which area you need saves a lot of hunting:

AreaWhat lives there
Top panel (above the tabs)Connect / Disconnect — the one-time OAuth handshake. Nothing else.
Mapping tabEvery crosswalk/config decision: Job Status, Class, Department, Payment Term, the Cost-Type Split (Material/Labor/Sub/Equipment by Category), and the flat Cost Item → QuickBooks Item list. Nothing here ever pushes anything to QuickBooks by itself — it's all configuration a later Sync reads.
Sync tabWhere real CM records actually get queued and pushed: Customers, Jobs, Invoices, Payments, Vendors, Bills, Credit Memos, Vendor Credits, Employees, Time Activities, Estimates. Checkbox + Synchronize button per section.

Part 3 — Set up the Mapping tab (one-time per tenant, repeat pieces as new values appear)

6

Job Status — usually nothing to do

QuickBooks tracks a fixed 6-value Job Status (None/Pending/Awarded/In Progress/Closed/Not Awarded). CM auto-matches any Project Status whose name reads the same (ignoring spaces) — the default statuses seeded with CM already match, so this table mostly needs zero manual setup. Only map a row by hand if a tenant's own custom status name should push as a specific QBO value (e.g. a custom "Under Warranty" status mapped to "Closed").

Worth knowing: a Project status with no match (custom or otherwise) simply sends nothing — QuickBooks defaults the Job to "None." Never blocks a sync.
7

Class / Department / Payment Term — only if the tenant actually uses them

These are genuinely optional QuickBooks features, off by default for every company. A tenant has to explicitly turn on Class and Location (QBO's name for Department) tracking in their own QBO Account & Settings → Advanced → Categories, and manually create their own entries there, before this table has anything to map at all.

Worth knowing: if a tenant doesn't use Class/Location tracking, this section will show real CM values on the left with an empty dropdown on the right — that's correct, not broken. An Invoice with an unmapped Class/Department/Term still syncs fine either way; the field is simply omitted. There's also no "+ Add to QuickBooks" here (and no real need for one) — if a tenant is genuinely using these, they already created their own entries as part of turning the feature on in QBO in the first place.
8

Cost-Type Split (Material / Labor / Sub / Equipment)

When an Invoice line comes from an Estimate that has a real Material/Labor/Sub/Equipment cost breakdown, CM pushes it to QuickBooks as separate lines instead of one blended number — competitors' "casual" QB sync doesn't do this. Map each Cost Category (not each Cost Item — there are far fewer Categories, this is deliberately the coarser, faster-to-set-up grain) to up to 4 QuickBooks Items, one per cost type. A category with only some types actually used on real Invoices only needs those types mapped.

Worth knowing: a manually-entered Invoice line (not generated from an Estimate) has no cost-type split at all and falls back to the plain flat Cost Item mapping below — this only applies to Estimate-generated lines.
9

Cost Items — the flat fallback mapping

QuickBooks rejects a free-text invoice line — every line needs a real QBO Item. For each Cost Item your manually-entered Invoice/Bill/Credit-Memo lines actually use, pick the closest match from the dropdown and click Save. You don't need to map every Cost Item up front — just the ones you're about to sync.

Worth knowing: descriptions can look nearly identical (e.g. 1″ x 12″ fascia removal. vs 1″ x 24″ fascia removal.) — double-check you mapped the exact row you meant to before moving on.
10

Credit Memo (client) and Vendor Credit — set one Cost Item on the record itself

Neither type has line-item entry in CM — both are single blended-amount documents, so there's no per-line mapping table for them. Instead: a Credit Memo gets a single "Cost Item" field right on its own edit form, resolved through the same flat Cost Item mapping above. A Vendor Credit resolves automatically through whichever Bill line it's linked to — nothing extra to map if it's already linked; if it isn't linked to a specific Bill line, it can't sync yet.

Part 4 — Push real records (Sync tab)

11

Sync the Customer and Job first

QuickBooks requires a Customer (and its Job/sub-customer) to exist before any transaction can attach to it. Check the Company under Customers, click Synchronize Selected Customers, then do the same for the matching Project under Jobs. Both should show Posted when done.

12

Sync the Invoice (or Bill, Credit Memo, Vendor Credit…)

Find the record under its own section, check it, click that section's Synchronize button. A green Posted result means it's really in QuickBooks — confirm by logging into that QuickBooks company directly (sort by Date, newest first, or search the customer/vendor name — QBO's own document number won't match CM's internal ID).

How this actually works

!

One-way only, and nothing syncs automatically

CM pushes data into QuickBooks — never the other way. If a tenant edits an Invoice directly inside QuickBooks, CM never sees it; CM's own version stays the source of truth. And nothing pushes in the background — every sync is a deliberate click on the Sync tab, never silent or scheduled.

WhatScopeWhere it's stored
Client ID / Client SecretOne per CM environment (shared by every tenant on it)dotnet user-secrets (dev) or appsettings.Production.json (deployed) — never the database, never git
OAuth connection (tokens, company)One per tenant (SiteID)QuickBooksConnection table, tokens encrypted at rest
Customer/Job/Item/Invoice linksOne per tenant (SiteID)QuickBooksEntityLink table
Sandbox vs. Production keys: Intuit issues two separate key pairs per app. Development/Sandbox keys (what this guide walks through) only ever connect to fake test companies — safe for cmdemo/cmblazor. Real tenants connecting their real QuickBooks company need the Production key pair from that same app's Keys and credentials page, configured on whichever environment they actually use (realistically just clientmanager.com/cmprod once that's live) — and Intuit typically requires the app to pass their own review before Production access works for outside users.

Troubleshooting

"The client_id query parameter is missing from the authorization request"

The app never actually loaded a Client ID from config — usually means the secret was set in a different execution context than the one running the app (e.g. set from a terminal, but the app was started from a different process/session), or the app wasn't restarted after setting it. Confirm the value is really in the config the running app reads, then restart.

"The redirect_uri query parameter value is invalid"

The URI CM sent doesn't exactly match one of the URIs registered in Intuit's Settings → Redirect URIs page. Check for scheme (http vs https), port, trailing slash, and stray whitespace pasted into the field.

"Line item(s) not mapped to a QuickBooks Item: ..."

Exactly what it says — go map the listed Cost Item(s) on the Item Mapping tab, then retry the sync.

"BadRequest. Details: Required parameter Line is missing in the request"

This one slips past CM's own mapping check because it's a different problem: the Invoice genuinely has zero line items. QuickBooks requires at least one line on any Invoice. Pick a different test Invoice that actually has items, or add items to this one first.

Can't sign into the right Intuit account — it keeps offering old accounts

Open a private/incognito browser window, or go to accounts.intuit.com and sign out of everything first, then retry the Connect flow fresh.

Intuit's own consent screen: "Uh oh, there's a connection problem. Sorry, but undefined didn't connect."

This is what Intuit's generic broken-page looks like when the client_id CM sent was blank or missing — not a mismatch (that gives the clearer "redirect_uri query parameter" error above), a genuinely empty value. Happened for real (2026-09-10) the first time cmblazor tried to connect: its appsettings.Production.json had never had a "QuickBooks" section added at all — the deploy workflow deliberately never touches that file, so a brand-new environment starts with nothing there until someone adds it by hand (see Part 1, step 4). Check that the environment's own appsettings.Production.json actually has real ClientId/ClientSecret values (not just an empty placeholder section), then recycle that site's IIS app pool.

Intuit's Redirect URIs page: "Failed to save. Please try again."

Usually a duplicate entry — Intuit silently rejects the save if the same URI appears twice in the list (easy to do if you paste one in, aren't sure it took, and paste it again). Scroll through the existing rows for an exact duplicate before assuming something else is wrong.

The whole QuickBooks Actions page crashes / blank white page, instead of showing "Not Connected"

Real incident, 2026-09-10: a QuickBooksConnection row got copied from one server's database into another's via a full DB backup/restore (e.g. a local dev CMDevDB backup restored onto an IONOS environment). The stored tokens are encrypted with that original server's own ASP.NET Data Protection key ring — every server has its own independent key ring, so the destination server can't decrypt them and throws CryptographicException: The key {...} was not found in the key ring, taking the whole page down instead of just showing "Not Connected." Fixed in code (the repository now catches this and treats it as no connection, safe to reconnect) — if you're on a build from before that fix, the workaround is DELETE FROM QuickBooksConnection WHERE SiteID = <id> on that environment's database, then reconnect fresh from that same environment so the new tokens are encrypted with its own key.

"Line item(s) not mapped ... (Material)" / "(Labor)" / "(Sub)" / "(Equipment)"

The Invoice line has real dollars of that specific cost type, but its Cost Category has no QuickBooks Item mapped for that type on the Mapping tab's Cost-Type Split table. Map just that one type for that Category — the other three types on the same category are unaffected.

Class/Department/Payment Term dropdown is empty on the Mapping tab

Not a bug — this tenant's QuickBooks company doesn't have Class/Location tracking turned on, or has it on with zero entries created yet. See Part 3, step 7 above.