Skip to main content

Recheck All Discrepancies

POST 

/api/amazon/unified/discrepancies/recheck-all

Re-evaluates every ledger_summary_mismatch discrepancy matching the filters against the current ledger summary and ledger event data. This variant runs synchronously in the request — with large numbers of discrepancies it can be slow; prefer POST /api/amazon/unified/discrepancies/recheck-all-async, which queues a background job and returns a tracked_job_log_id for polling progress.

Authorization

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

Body fields (all optional):

  • include_reconciled (boolean, default false): also recheck discrepancies that have already been reconciled
  • integration_instance_ids (string): comma-separated integration instance IDs to scope the recheck (e.g. "1,3"); omit for all instances

For each rechecked row: if the summary-vs-ledger difference is now zero the discrepancy is deleted (and the product's cost history is recalculated when needed); if the difference changed, the quantity and notes are updated in place. Returns counters (resolved, deleted, still_exist, updated, skipped), or a message-only response when no discrepancies match the criteria.

Request

Responses

OK

Response Headers
    Content-Type