---
title: "Handle Callback"
method: GET
path: "/v1/accounting/callback/{provider_id}"
tags: ["internal"]
---

# Handle Callback

`GET /v1/accounting/callback/{provider_id}`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/v1/accounting/callback/{provider_id}`
- Auth: none declared

Handle the OAuth callback from an accounting provider.

This endpoint is called directly by the provider's redirect, not via
the frontend proxy. It validates the state, stores tokens, and
redirects to the frontend.

## Path parameters

- `provider_id` string, required

## Query parameters

- `token` string, nullable
- `code` string, nullable
- `state` string, nullable
- `error` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
