Update order status to use document builder syntax and return order status based on reference