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.
accounting:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Bearer token.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Conflict
Response Headers
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.