SET API · Accounting
Post a failed entry again
POST/v1/accounting/entries/{entry}/retry
Queues a failed or skipped entry to be posted again by the next sync. It posts nothing itself: it resets the entry's attempts to 0 (a skipped entry's row is removed), and the next POST /v1/accounting/sync or SET's scheduled pass posts it.
Path parameters
entrystringrequired- The journal entry's id,
je_and 32 hex characters (fromGET /v1/accounting/entries). Another shape answers 404not_found.
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. - The entry must have a failed or skipped post; a posted entry, or an id with no post, answers 404
entry_not_failed. - No body is needed.
- Fix the cause first: for
account_not_found, add the account in the ledger or map it withPUT /v1/ledger_mapping. - Right after the call the entry still reads
failed, withattempts: 0, until the next sync posts it. - It does not check that a connection is active.
- 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_only404 entry_not_failed404 not_found