Delivery attempt outcomes and first-attempt success per day and station
GET/reports/attempt-outcomes
Per UTC day and per delivery station (the station of the attempt's route, UNKNOWN while its PackageOutForDelivery is not projected): attempts, deliveredAttempts and failedAttempts are the DeliveryAttempted of the day by outcome; a success is DELIVERED or COLLECTED (both count in deliveredAttempts, ADR 0017), a failure FAILED; packagesAttempted are the packages whose FIRST attempt fell on the day, packagesWithFirstAttemptSuccess those of them delivered at it; firstAttemptSuccessRate = packagesWithFirstAttemptSuccess / packagesAttempted; meanAttemptsPerPackage = all the attempts of those packages (any day) / packagesAttempted; both null without a first attempt. returnsInitiated counts the PackageReturnInitiated of the day (its CloudEvents time) at the station of the package's latest attempt. Days without any of these are omitted.
Request
Responses
- 200
- 400
- 500
The report for the range.
invalid-report-range. from or to is not a date (YYYY-MM-DD), from is after to, or the range exceeds 366 days.
Unexpected failure: problem type internal-error, detail "an unexpected error occurred". Never stored for idempotent replay.