Get a seller's compliance scorecard (GetSellerScorecard)
GET/sellers/:sellerId/scorecard
The seller's compliance scorecard over a rolling window that ends now, derived from this service's own facts (ADR 0005): the shipments that closed in the window, the
cartons they reported and how many were RECEIVED, the discrepancies recorded by kind, and the compliance violations recorded. Facts are dated by the instant this service
recorded them, not by the receivedAt the vendor reports.
receiptAccuracyRate is cartonsReceived / cartonsReported and is omitted when no carton was reported; discrepancyRatePerShipment is the discrepancies recorded divided by
shipmentsReceived and is omitted when no shipment closed. Rates are rounded to four decimals.
complianceTier is the worst of three signals (thresholds are declared in code and in ADR 0005 A3): AT_RISK when receiptAccuracyRate is below 0.90, discrepancyRatePerShipment
is 2.0 or more, or there are 5 or more violations; otherwise WATCH when the rate is below 0.98, the discrepancy rate is 0.5 or more, or there is at least 1 violation; otherwise GOOD.
The tier is informational: it changes nothing about the seller, who stays ACTIVE or SUSPENDED by the human commands only. A suspended seller has a scorecard too.
The read publishes no event.
Request
Responses
- 200
- 400
- 404
- 422
- 500
The seller's scorecard.
The window query value is not 7d or 30d (invalid-window).
The resource does not exist (not-found).
The request is malformed or breaks a rule. Problem types: validation-failed, case-pack-not-uniform (ErrCasePackNotUniform), case-qty-mismatches-gtin (ErrCaseQtyMismatchesGtin), carton-overweight (ErrCartonOverweight), carton-oversize (ErrCartonOversize), invalid-sscc (ErrInvalidSscc), carton-contents-mismatch-plan (ErrCartonContentsMismatchPlan), inbound-capacity-exceeded (ErrInboundCapacityExceeded, ADR 0015), network-split-destination (ErrNetworkSplitDestination, ADR 0015) and network-split-unavailable (ErrNetworkSplitUnavailable, ADR 0015).
An unexpected failure (internal-error); the detail never carries the internal message. A 5xx is never stored by the idempotency middleware, so the same Idempotency-Key retries the real work.