Get Discrepancy Detailed Data
GET/api/amazon/unified/discrepancies/:discrepancy/detailed-data
Returns a discrepancy together with the contextual data needed to investigate it. All dates are Y-m-d in the application timezone.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Always included (when the discrepancy is linked to an FNSKU product):
- discrepancy: the full discrepancy record
- related_discrepancies: other discrepancies for the same FNSKU product within 10 days either side of the discrepancy date
- summary_reports: the daily inventory ledger summary rows for the same window (starting/ending warehouse balances, receipts, customer shipments, customer returns, vendor returns, warehouse transfers, adjustments)
- date_range: start_date, end_date and discrepancy_date of the window
For ledger_summary_mismatch discrepancies, also includes:
- ledger_summary: the mismatched daily summary row
- ledgers: the individual ledger events for the discrepancy date and event type
- current_calculations: per event type (Receipts, Shipments, CustomerReturns, VendorReturns, WhseTransfers, Adjustments), the summary value vs the ledger total and the current difference
For internal_report_missing discrepancies, also includes:
- summary_report_dates: a per-day existence map covering 30 days either side of the discrepancy date
- summary_report_statistics: total_days, days_with_summary, days_missing and the date range
- last_report_before_gap: the most recent summary row before the gap, when one exists
Request
Responses
- 200
- 401
- 403
- 404
- 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.
Not Found
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.