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.
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
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.