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
528 16 36

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.

 

Click here to Contact and Get Shopify Store Help
E-mail - hi@ecommercesmalltask.com
We are Shopify Experts   from Ecommerce Small Task Company.