Skip to main content

Verify and Reactivate Connection

POST 

/api/accounting/sync-settings/connection

Verifies the stored authorization with one live call to the accounting provider and reactivates the connection only if that call succeeds.

Required scope: accounting:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token. Also requires the integrations.update permission.

No request body.

sync_status goes Inactive when the provider rejects the stored authorization, so switching it back on unconditionally would re-arm a dead credential — the next scheduled sync would fail and set it straight back to Inactive. The verification therefore happens first:

  • Xero — reads the connected organisation
  • QuickBooks Online — reads the connected company

Both are reads; neither writes anything to the provider.

On success (200) sync_status becomes Active and the response carries the refreshed connection state, plus probe_detail naming the organisation or company that answered.

On a failed verification (422) nothing changes, message carries the reason, and probe_detail carries the provider's own error where it gave one. Reauthorize the connection, then call this again.

Returns 404 when no accounting integration is configured.

Request

Responses

OK

Response Headers
    Content-Type