Skip to main content

Fix Tie-Out Exception

POST 

/api/ledger/tie-out/exceptions/:exception/fix

Runs the exception's one-click fix, which is the same action the document's own page offers: sync, retry sync, recreate in the provider, generate or retry the ledger entry, refresh or rebuild the entry, issue, refresh or create the invoice, invoice the shipment, or repair a payout channel's order AR. The document is then re-checked and the updated row returned; a fix that completes in the background (a sync, a generation) resolves on the next run. result.ok false carries the provider's message. The route needs one of accounting.sync, sales_invoices.issue, sales_invoices.update or sales_invoices.create (403 otherwise); the fix itself then requires the permission of its own action (accounting.sync for ledger actions; the matching sales invoice permission for invoice actions). 409 when the month is read-only or the fix would post into a locked month; 422 when the row isn't open or its cause has no fix.

Required scope: accounting:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Bearer token.

Request​

Responses​

OK

Response Headers
    Content-Type