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

Disconnect and revoke SET's access

DELETE/v1/accounting/connections

Key scope: write · Business accounts · Success: 200

Disconnects the ledger: SET asks the ledger to revoke its access and drops its tokens. Post history is kept.

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 write scope.
  • Accounting connections are for a business account: a platform key gets 403 accounting_merchant_only.
  • The revoke at the ledger is best effort: the connection is closed on SET's side whatever the ledger answers.
  • Repeatable: with nothing connected it answers 200 { "object": "accounting_connection", "connected": false }, without provider.
  • Post history is kept: GET /v1/accounting/connections afterwards answers connected: false with the earlier counts.
  • After disconnecting, POST /v1/accounting/sync answers 409 accounting_not_connected.
  • The example was made with a sandbox key.
  • 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.