update salesorder to new api