On this page
article
400 - Invalid Shipment State
The
invalid_shipment_state error code is returned if your request includes one or more state values for a shipment but one or more of the provided values is invalid.This error code will be returned, for example, if you make an API call to change a shipment state but provide an invalid state value:
{
"reference": "sp_00982822462453834198775303766018",
"state": "not_recognised",
"reason": "Sample"
}
In this example, the provided state value is not a valid state.
In situations where a state is technically valid/recognised, but is not valid for the attempted operation, an invalid_state_for_operation error code will be returned.