Working on the api for orders