call rest to store the order