generate new shipment if existing has been received

also fix receive shipment endpoint