Skip to main content

List Related Discrepancy Ledgers

GET 

/api/amazon/unified/discrepancies/:discrepancy/related-ledgers

Returns the paginated individual ledger events recorded for the discrepancy's FNSKU product around the discrepancy date (default: 7 days either side, adjustable with days_range), newest first. Useful for spotting the specific ledger rows behind a summary mismatch.

Authorization

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

Each row contains: id, date (Y-m-d), event_datetime (UTC), event_type (Adjustments, CustomerReturns, Receipts, Shipments, VendorReturns, WhseTransfers), quantity, reference_id (e.g. the Amazon order ID or shipment reference), fulfillment_center, reason, status (reconciled or unreconciled), reconciled_at, and the linked cost-layer values cogs, extended_cogs and fifo_id (null when the event has no cost layer yet).

Query parameters: page, per_page (default 15), days_range (default 7), event_type. Returns an empty page when the discrepancy has no linked FNSKU product.

Request

Responses

OK

Response Headers
    Content-Type