Skip to main content

Enable Sync on Matched Lines

POST 

/api/ledger/reconciliation/bank-statements/:bankStatementImport/enable-sync

Force-enable sync on the matched line(s)' document(s) whose sync is currently disabled-but-enableable — a settings opt-out (e.g. this entry type isn't synced, or it's before the sync start date) or a per-entry force_disabled override. Writes a force_enabled override on each such entry (via the same path as the per-entry override endpoint) so a subsequent Push to Xero actually reaches the provider instead of silently no-opping.

Authorization

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

Structurally-blocked documents — a batch member, an open batch, an inactive connection, or internal-only entries — are left untouched (they can't be force-enabled). Optional body line_ids scopes it to a single line's Enable or a bulk selection; omit to enable across every matched line.

Returns: entries_enabled (documents flipped to force_enabled), lines_affected (matched lines touched), and the refreshed import (lines + their matches, with cleared sync_blocks).

Guarded by the accounting.sync permission.

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type