Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET API

SET API · Accounting

The connected ledger and its sync counts

GET/v1/accounting/connections

Key scope: read · Business accounts · Success: 200

Reads your business's connected ledger (QuickBooks Online or Xero), its state and how many journal entries SET has posted, failed or skipped. With nothing connected it answers connected: false.

No parameters.

Notes

  • Accounting connections are switched on per deployment; when off, the call answers 403 accounting_connectors_off. Check GET /v1/capabilities (features.*).
  • Needs a key with the read scope.
  • Accounting connections are for a business account: a platform key gets 403 accounting_merchant_only.
  • Before anything is connected the answer is { "object": "accounting_connection", "connected": false, "counts": {} }.
  • state is active or reauthorize: the ledger refused SET's access, so connect again.
  • counts are entry posts by state (posted, failed, skipped); when a post fails, lastError points to GET /v1/accounting/entries?state=failed.
  • companyId is the QuickBooks company (realm) id, or the Xero tenant id.
  • The example was made with a sandbox key, right after the connection was approved and before any sync.
  • This example is a recorded run of SET's own code (wallet release e9b03447) with a sandbox key; ids and times are that run's.

Errors

  • 403 accounting_connectors_off
  • 403 accounting_merchant_only

All codes: Errors.