Skip to main content

Report one external carrier event (ReportCarrierEvent, ADR 0015)

POST 

/carrier-events

The carrier webhook of CARRIER_HANDOFF service areas. Unauthenticated by the standing fleet decision, exactly like POST /journeys/{trackingNumber}/scans (the per-carrier token scheme is a recorded follow-up). Each report becomes one scan with scanId "<carrierId>:<carrierEventId>", so a re-sent report answers 409 duplicate-scan. PICKED_UP is the handoff at the journey's handoff node (a journey already WITH_CARRIER is a no-op that answers 200); OUT_FOR_DELIVERY, DELIVERED and DELIVERY_FAILED become their scans; IN_TRANSIT is accepted and counted without a scan. A refusal that keeps the scan (scan-out-of-order, illegal-transition) is stored under the Idempotency-Key together with the scan and replayed on a retry.

Request​

Responses​

The event was applied (or acknowledged without a scan); the journey after it.

Response Headers
    Idempotency-Replayed

    Present, with the value true, only when the response is a replay of the answer stored for the Idempotency-Key.