Skip to main content

Backfill Provider Cache

POST 

/api/ledger/reconciliation/backfill

Populate the local provider document cache (the xero_/qbo_ mirror) for a connection by dispatching a tracked background job that downloads every remote document over the reconcile window. The reconcile screen, matching, and the period-comparison report all read off this local cache, so this is the on-demand, UI-triggered equivalent of the ledger:cache:backfill artisan command. Returns the tracked job log id so the frontend can follow progress via the tracked job log endpoints.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Authentication: Requires Bearer token + accounting.sync permission.

from/to (Y-m-d) are optional and default to the connection's reconcile window (the connection's sync start date through today).

Request

Responses

OK

Response Headers
    Content-Type