Skip to main content

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.

Authorization

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

OK

Response Headers
    Content-Type