API count Issue

API count Issue

Darshan_123
Shopify Partner
1 0 0

I'm using the API of  order.json to get  the count of particular products but it always return the total count from the inventory 

Reply 1 (1)

Small_Task_Help
Shopify Partner
880 29 78

Hi,

 

Hope this will help

 

  • To fetch all orders use the order.json endpoint .
  • Filter orders by product ID or other relevant identifiers.
  • Count the occurrences of the specific product in the line items.

If you still need help you can contact us.

 

To Get Shopify Experts Help, E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert India
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad