Skip to main content

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​

The seller's scorecard.