Skip to main content

Repost All Entries

POST 

/api/ledger/entries/repost-all

Repost every current (non-discarded, non-reversed) ledger entry so posted GL lines pick up a changed chart of accounts — the onboarding backfill after adopting a provider's chart. Reuses the bulk rebuild pipeline: posted entries auto-reverse + replace with the new nominal codes, drafts regenerate in place, batch aggregates route through the batch state machine. Requires the accounting.sync permission. Returns the tracked job log id + eligible/excluded counts.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Request

Responses

OK

Response Headers
    Content-Type