public IHttpActionResult GetAccessToken([FromUri] string code, [FromUri] string shop) { var shopName = shop.Replace(".myshopify.com", ""); var service = new ShopifyService(); var token = service.GetAccessToken(code, shopName); return(Ok(token)); // Returns 401 if our App is'nt installed or the Token is invalid }