On this page
article
409 / 400 - Invalid State For Operation
The
invalid_state_for_operation error code is returned if your request requires a shipment to be in a particular state, but the shipment is not in that state (or one of the valid states for that operation)The status code depends on what was wrong:
- 409 – the
shipmentitself is in astatethat doesn’t allow the operation. For example, you attempt to manifest ashipmentthat has not been allocated yet, or cancel one that is alreadycancellingorcancelled. - 400 – your request asked for
statesthe operation doesn’t accept. For example, a manifest request that selectsshipmentsbystatewith anything other thanallocatedorready_to_ship.
Retrying the same request won’t help. Fetch the shipment to see its current state.