Theme
Connect session
Connecting a QuickBooks Online company is a browser flow. The Odoo module asks QBO Connect for a single-use connect URL and opens it in the user's browser. QBO Connect then runs the Intuit sign-in, stores the tokens encrypted on its own side, and sends the browser back to Odoo. The Intuit tokens never reach Odoo.
Flow
- Odoo calls Start connect, or Start reconnect for an existing connection, and receives
connect_url. - Odoo opens
connect_urlin the user's browser within 10 minutes. QBO Connect sets a browser-binding cookie and redirects to Intuit. - The user signs in with Intuit and chooses a company.
- Intuit sends the browser back to QBO Connect. QBO Connect checks the licence and the plan's company limit, exchanges the code for tokens, and stores them.
- QBO Connect redirects the browser to
return_urlwith the result in the query string (see Browser return). - Odoo confirms the result with Read a connection and
result_code.
Business rules
return_urlmust be on the instance's registered origin (same scheme, host and port). It may carry a path and a query.connect_urlworks once and expires 10 minutes after it is issued. An expired or used link shows an error page (410) in the browser.- The callback must arrive in the same browser that opened
connect_url. Otherwise the result isbrowser_mismatch. - Connecting a company that this instance is already connected to updates that connection: same
connection_id, new tokens. It does not create a second one. - The plan's company limit counts distinct companies with an active or reauth-required connection across all of the licence's instances. A company already counted can always be reconnected.
The connect session object
| Attribute | Requirement | Type | Description |
|---|---|---|---|
connect_url | String (URL) | {APP_URL}/connect/<43 characters>. Open it in the user's browser. Single use. | |
expires_at | String (ISO 8601, UTC) | When connect_url stops working: 10 minutes after it was issued. |
Sample object
json
{
"connect_url": "https://qbo-connect.example.com/connect/Qm3xV8rT2kLp9sWz4nYc7hJd1fGb6aEu0iOq5tRy8Xw",
"expires_at": "2026-12-01T10:10:00Z"
}Start a connection
Creates a connect session for a new QuickBooks company.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
return_url | * Required | String (URL) | Where the browser goes after Intuit. Same scheme, host and port as the registered base URL; https unless the host is allowed for local development. |
connection_id | Optional | String | Leave it out for a new connection. See Start a reconnection. |
Returns
201 Created with the connect session object. The Postman test prints connect_url in the Postman console.
Returns 201 Created
json
{
"connect_url": "https://qbo-connect.example.com/connect/Qm3xV8rT2kLp9sWz4nYc7hJd1fGb6aEu0iOq5tRy8Xw",
"expires_at": "2026-12-01T10:10:00Z"
}Errors
| HTTP | error.code | When |
|---|---|---|
| 422 | validation_failed | return_url is missing or not on the registered origin (details.fields.return_url). |
| 403 | license_inactive | The licence is not active. Renew it to connect QuickBooks. |
| 401 | signature_missing, invalid_signature, timestamp_out_of_range, nonce_reused | Signing failed. |
| 403 | instance_suspended | The instance is suspended. |
| 429 | rate_limited | Too many requests. |
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/connect/start |
| Content type | application/json |
| Authentication | Signed |
| Rate limit | 120 per minute per instance |
| Postman | Instance API › Start connect |
Request body
json
{
"return_url": "{{odoo_base_url}}/qbo/return"
}Start a reconnection
Creates a connect session to renew the tokens of an existing connection, for example after its status became reauth_required. The user must choose the same QuickBooks company. If they choose another, the result is company_mismatch, and the tokens Intuit issued for the other company are revoked.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
return_url | * Required | String (URL) | As in Start a connection. |
connection_id | * Required for reconnect | String | The conn_… id of a connection of this instance. |
Returns
201 Created with the connect session object.
Returns 201 Created
json
{
"connect_url": "https://qbo-connect.example.com/connect/Zp4kW9sQ1xRt7mNb3vLc8yHf2dGj5aEo6uIq0tKe7Mw",
"expires_at": "2026-12-01T10:20:00Z"
}Errors
As Start a connection, plus 404 not_found when connection_id is not a connection of this instance.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/connect/start |
| Content type | application/json |
| Authentication | Signed |
| Postman | Instance API › Start reconnect |
Request body
json
{
"return_url": "{{odoo_base_url}}/qbo/return",
"connection_id": "{{connection_id}}"
}Browser return
After Intuit, QBO Connect redirects the browser to return_url and adds these query parameters.
Connected
| Parameter | Value |
|---|---|
qbo_status | connected |
connection_id | The conn_… id of the new or renewed connection. |
result_code | 40 random characters. Confirm it once, within 10 minutes, with Read a connection with a result code. |
text
{{odoo_base_url}}/qbo/return?qbo_status=connected&connection_id=conn_01kbx7a2c9d4e6f8g0h1j3k5m7&result_code=…Failed
| Parameter | Value |
|---|---|
qbo_status | error |
error | One of the codes below. |
error | Meaning | What Odoo shows |
|---|---|---|
access_denied | The user did not authorise the app at Intuit. Other Intuit errors (for example invalid_scope) are passed through in lower case. | Try again. |
expired | The session expired before the user finished at Intuit. | Start again. |
browser_mismatch | The callback arrived in a different browser from the one that opened connect_url. | Start again in one browser. |
invalid_callback | Intuit's callback had no code or no valid company id. | Start again. |
license_inactive | The licence stopped being active during the flow. | Renew the licence. |
plan_limit_reached | The plan's QuickBooks company limit is reached. Nothing was exchanged with Intuit. | Upgrade the plan or disconnect a company. |
company_mismatch | Reconnect only: the user chose a different company. | Reconnect and choose the same company. |
token_exchange_failed | Intuit did not issue tokens for the code. | Try again later. |
A link that is unknown, already used or forged shows an error page at QBO Connect instead of returning to Odoo.