Accounting
OAuth Callback
OAuth callback endpoint invoked by accounting providers after user authorization.
GET
OAuth callback for accounting providers
Path Parameters
Query Parameters
This endpoint is called automatically by the OAuth provider after the user authorizes the connection. You should not call this endpoint directly. Use the Initiate Accounting OAuth endpoint to start the flow.
Example Request
Response
On success, the user is redirected to theredirect_uri specified in the original connect request with a success=true query parameter.
Notes
- Recurso handles the token exchange automatically using the authorization code.
- If the
stateparameter does not match the original request, the callback returns a403error. - On failure, the user is redirected with
success=falseand anerrorquery parameter describing the issue.
Authorizations
Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.
Path Parameters
Accounting provider.
Available options:
quickbooks, xero Query Parameters
HMAC-signed state issued by the connect endpoint.
QuickBooks company (realm) ID.
Response
Redirect to the dashboard Integrations page carrying the outcome as a query param (connected or error).
OAuth callback for accounting providers