SET API · Accounting
Post entries now (at most 25)
POST/v1/accounting/sync
Posts up to 25 journal entries to the connected ledger now, and answers how many posted, failed or were skipped in this call. SET's scheduled pass does the same on its own.
Headers
Idempotency-Keystring- Any unique string, so a retry runs once. See Idempotency.
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. - It needs an active connection: with none, 409
accounting_not_connected; when the ledger refused SET's access, 409accounting_reauthorize. - No body is needed.
- The counts depend on what the connected ledger answers; the example's counts came from a sandbox ledger, not a real QuickBooks company.
- At most 25 entries a call.
- Each journal line's account is found by name in the ledger's chart of accounts; a missing one fails the entry with a problem such as
account_not_found: Bank. Add the account in the ledger, or map it withPUT /v1/ledger_mapping. - Each entry is posted once: its id is the ledger's idempotency key.
- See failures with
GET /v1/accounting/entries?state=failed. - 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_only409 accounting_not_connected409 accounting_reauthorize