Skip to main content

Record a delivery attempt (RecordAttempt)

POST 

/routes/:routeId/attempts

Records DELIVERED, FAILED or COLLECTED for one package on an OUT_FOR_DELIVERY route and publishes DeliveryAttempted. COLLECTED is valid only for a package inducted into the wave as a PICKUP (ADR 0017, activation-gated; every induction is DELIVERY until then). Errors: ErrRouteNotStarted (409 route-not-started), ErrAlreadyDelivered (409 already-delivered). A FAILED attempt counts in the package's attempt history and re-inducts the package onto the next wave (policy RetryNextWave); the third failure publishes PackageReturnInitiated instead. The attempt that records the last outstanding package completes the route, and the last completed route completes the wave.

Request​

Responses​

Attempt recorded.

Response Headers
    Idempotency-Replayed

    Present, with the value true, only when the answer is a replay of the stored first answer.