Schedule a delivery wave (ScheduleWave)
POST/waves
Creates an OPEN wave and publishes DeliveryWaveScheduled. Enforces inductCutoffAt < windowStart < windowEnd (ErrInvalidWaveTimes, 422 invalid-wave-times) and that stationNodeId is a DELIVERY_STATION known from node-topology (ErrUnknownStation, 422 unknown-station). Packages that arrived while no wave was eligible are inducted into the new wave in arrival order (policy InductDeferredOnSchedule).
Request
Responses
- 201
- 400
- 409
- 422
- 500
Wave scheduled.
Response Headers
Present, with the value true, only when the answer is a replay of the stored first answer.
The request is malformed at the HTTP level. Problem types idempotency-key-required (no Idempotency-Key header), idempotency-key-invalid (not 1 to 128 printable ASCII characters), invalid-limit, invalid-cursor, unknown-query-parameter. invalid-limit is a limit outside 1 to 500, empty or repeated; invalid-cursor a cursor that is not a page token or is repeated.
Conflict with the aggregate's state or capacity. Problem types: illegal-transition, concurrent-update, route-over-capacity, route-not-started, already-delivered, attempt-already-recorded, package-not-inducted, package-already-routed, stop-key-mismatch, partner-inactive, partner-station-mismatch, route-incomplete. idempotency-key-reused (the Idempotency-Key was already used with a different method, path or body). ErrWaveFull (wave-full), ErrInductionClosed (induction-closed) and ErrAlreadyInducted (already-inducted) are raised only by policy-driven induction, which has no route.
Response Headers
Present, with the value true, only when the answer is a replay of the stored first answer.
Validation failed. Problem types: validation-failed (body that is not valid JSON for the operation, with an unknown field, empty, with trailing data or over 64 KiB; a NUL character in the query or body; a missing or malformed query filter; a value-object rule), invalid-wave-times (ErrInvalidWaveTimes), invalid-van-capacity (ErrInvalidVanCapacity), unknown-station (ErrUnknownStation).
Response Headers
Present, with the value true, only when the answer is a replay of the stored first answer.
Unexpected failure: problem type internal-error, detail "an unexpected error occurred". Never stored for idempotent replay.