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
- 200
- 400
- 404
- 409
- 422
- 500
The event was applied (or acknowledged without a scan); the journey after it.
Response Headers
Present, with the value true, only when the response is a replay of the answer stored for the Idempotency-Key.
idempotency-key-required (the Idempotency-Key header is missing) or idempotency-key-invalid (not 1-128 printable ASCII characters).
not-found. The addressed label or journey does not exist.
duplicate-scan (ErrDuplicateScan), scan-out-of-order (stored not applied), journey-closed (ErrJourneyClosed), illegal-transition (stored not applied), concurrent-update or idempotency-key-reused (the Idempotency-Key was already used with a different request).
validation-failed. The request is well-formed JSON but violates a value rule. It is not stored under the Idempotency-Key; the key is released and a retry with the same key is validated again.
internal-error. An unmapped failure; the detail never carries the cause. Never cached by the idempotency middleware, so the same key retries the work.