Skip to main content

Sync Payment to Provider

POST 

/api/ledger/payments/:payment/sync

Manually push (or re-push) one SKU payment to the connected accounting provider (two-way payment sync) — the row action on the Payments tab. Runs inline: eligibility rejections and provider validation errors are persisted to the payment's last_sync_error and returned as 422; transport/auth failures return 502 with no state change.

Authorization

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

Requires Bearer token + accounting.sync permission and an active ledger cutover.

Eligibility: the payment must be SKU-originated (not ingested from the provider), a cash-style type, and its owner document's current ledger entry must have a live sync link to a provider invoice/bill. On success the payment is linked to the created provider payment (accounting_integration) and its status on the Payments tab flips to Synced.

Request

Responses

OK

Response Headers
    Content-Type