App reviews, troubleshooting, and recommendations
I am new to Shopify, with referrence of Dev. docs an app developed using .Net Framework and installed it in partner api to get total products count with the client request uri as "xxxx.myshopify.com/admin/api/2023-10/products/count.json".
There is no error on the request but getting always with "count":0 as response, though the store is having many products . Anybody can help me to figure out the code/configuration where I'm doing wrong to get the total products count.
Here's the C# code to get products count.
var client = new RestClient("https://xxx.myshopify.com/");
var request = new RestRequest("admin/api/2023-10/products/count.json", Method.Get);
request.RequestFormat = DataFormat.Json;
request.AddHeader("X-Shopify-Access-Token", "xxxtoaken");
var response = client.ExecuteAsync<string>(request);
var r = JsonConvert.DeserializeObject<dynamic>(response.Result.Content);
var count = r.count; // here r.count={0}
Hi @ds_
Can you share the store URL.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025