---
title: "Qbo Callback"
method: GET
path: "/auth/qbo/callback"
tags: ["auth"]
---

# Qbo Callback

`GET /auth/qbo/callback`

## Request

- Base URL: `https://api.claimkit.co` (the document declares no server; this is the origin it was published from)
- URL: `https://api.claimkit.co/auth/qbo/callback`
- Auth: none declared

Handle QBO OAuth callback.

Intuit redirects here with ?code=...&state=...&realmId=... after the user
authorises the app. We exchange the code for tokens, fetch CompanyInfo to
resolve the company name/country, upsert the QBOIntegration row, and bind
the integration to the claim that initiated the flow.

## Query parameters

- `code` string
- `state` string
- `realmId` string
- `error` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/claimkit/apis/claimkit-api.md) - [All operations](https://skmtc.dev/claimkit/apis/claimkit-api/llms.txt) - [OpenAPI document](https://skmtc.dev/claimkit/apis/claimkit-api/revisions/94dc85ba5326?raw)
