How to get product sales data via shopify REST APIs?

Jayaraj
Tourist
5 0 3

Is there a way to get the the sales data of a product via shopify REST API? I am specifically looking for the following highlighted in the box.

Jayaraj_1-1611442290733.png

 

 

Reply 1 (1)

policenauts
Shopify Partner
206 10 66

You should be able to use the orders API for this as it includes product line item details: https://shopify.dev/docs/admin-api/rest/reference/orders