Skip to main content

Link Remote Document

POST 

/api/ledger/reconciliation/link

Manually link a SKU entry to an existing provider document — the operator's "this is the same document" action. Recorded linked_stale so the next sync pushes an Update bringing the remote into line.

Authorization

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

Linking a document also clears any reconcile-screen dismissal recorded against it.

Authentication: Requires Bearer token + accounting.sync permission.

422 when the entry already has a link on this connection.

Ownership validation: the (remote_type, remote_id) pair must be a cached provider document belonging to the given connection. A document from another connection (or one not yet pulled into the local cache) is rejected with HTTP 422 — pull provider documents for the connection first, then link.

Request

Responses

OK

Response Headers
    Content-Type