SET API · Accounting
Disconnect and revoke SET's access
DELETE/v1/accounting/connections
Disconnects the ledger: SET asks the ledger to revoke its access and drops its tokens. Post history is kept.
Notes
- Accounting connections are switched on per deployment; when off, the call answers 403
accounting_connectors_off. CheckGET /v1/capabilities(features.*). - Needs a key with the
writescope. - 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 }, withoutprovider. - Post history is kept:
GET /v1/accounting/connectionsafterwards answersconnected: falsewith the earliercounts. - After disconnecting,
POST /v1/accounting/syncanswers 409accounting_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_off403 accounting_merchant_only