Skip to main content

Returns performance per UTC day, reason Pareto and freshness

GET 

/reports/returns-performance

Per UTC day of the business instant (authorizedAt, receivedAt): the returns authorized (a return is born authorized, so this is both "opened" and "approved"), the returns received (ReturnCompleted) and, over the receipts whose authorization is also projected, the p50 and p95 of receivedAt - authorizedAt in seconds (null on a day without a sample; a negative duration counts as 0). reasonPareto ranks the range's authorizations by reason code, at most 5 entries; share is over ALL authorizations of the range. freshness is the projection's lag. Days without activity are omitted, an empty range answers empty arrays. The return RATE and the refund figures are deliberately absent: their facts are not in this context's own events (ADR 0012).

Request​

Responses​

The report for the range.