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

Post entries now (at most 25)

POST/v1/accounting/sync

Key scope: write · Business accounts · Success: 200

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-Key string
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. 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.
  • It needs an active connection: with none, 409 accounting_not_connected; when the ledger refused SET's access, 409 accounting_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 with PUT /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_off
  • 403 accounting_merchant_only
  • 409 accounting_not_connected
  • 409 accounting_reauthorize

All codes: Errors.