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.
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
- 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.