QuickBooks — OAuth Callback

GET/external/v1/oauth/quickbooks/callback/

Called by QuickBooks (a browser redirect) — you never call this directly and it does not require an X-API-Key. LynxLedger exchanges the code for tokens, creates the tenant, triggers the data import, then redirects the user back to your redirect_url with the resulting domain_url.

ApiDocsParametersTitle

ApiDocsParamFieldApiDocsParamTypeApiDocsParamRequiredApiDocsParamDescription
codestringApiDocsRequiredAuthorization code, sent by QuickBooks automatically.
statestringApiDocsRequiredOpaque state from initiate, sent by QuickBooks automatically.
realmIdstringApiDocsRequiredQuickBooks company id, sent by QuickBooks automatically.
ApiDocsRequestLabel
GET https://backend.app.lynxledger.com/external/v1/oauth/quickbooks/callback/?code=<code>&state=<state>&realmId=<realm_id>
# Invoked by QuickBooks — no X-API-Key header.
ApiDocsResponseLabel
HTTP 302 Redirect
Location: https://yourapp.com/done?status=success&domain_url=acme-corp
# On failure: ...?status=error&message=<description>