Cancel an open replenishment request
POST/replenishments/:requestId/cancellations
Moves a Requested request to Cancelled with reason OPERATOR and
publishes ReplenishmentCancelled. Cancelling a request that is already
Completed or Cancelled is a 409 replenishment-not-open. Requires an
Idempotency-Key. A request already planned or released as floor work is
not recalled by this service; the downstream work completes or is
cancelled by its own context.
Request
Responses
- 200
- 400
- 404
- 409
- 500
The request is now Cancelled.
Response Headers
true when this response is the stored answer of an earlier request with the same Idempotency-Key and the same method, path and body (the handler did not run again). Absent on the first execution.
Malformed JSON body, an unknown field, or an invalid path, query or header parameter.
No policy or request has this identity.
The resource is in the wrong state for the command, another request changed it first, or the Idempotency-Key was already used with a different request (idempotency-key-reused).
Unexpected server error.