Skip to main content

Declare the stop cost of a wave (DeclareCost)

POST 

/waves/:waveId/cost-declarations

Records the planner's declared marginal cost of ONE delivery stop on the wave (driver time plus mileage share), integer cents, single-currency study (roadmap feature F7, provider B; ADR 0011), and publishes WaveCostDeclared for order-sourcing's money-denominated AssignmentCost. The cost is per stop (the G11 stopKey grouping), never per package. 0 is a legal declared zero marginal cost; a wave with no declaration reports 0 and leaves a consumer's estimate incomplete. Allowed while the wave still runs (OPEN, INDUCTION_CLOSED or DISPATCHED, illegal-transition once CANCELLED or COMPLETED); a later declaration overwrites the earlier one and publishes again.

Request​

Responses​

Stop cost declared.

Response Headers
    Idempotency-Replayed

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