It is only possible to allocate a shipment when it is in a state of unallocated. An attempt to allocate a shipment in any other state will result in a shipment_invalid_state error code.