Implements sales orders api call. Moves logic for pulling items from server