We are unable to get the cost of our products using API.
The call always returns empty :
Tracking options are activated
Shopify Admin API permissions : Inventory
Access scopes: read_inventory, write_inventory
Could tell us why we are unable to get the cost back ?
Usually, when such queries return an empty result set, the reason is that the id provided is either invalid or not available. My guess is that the id you provided is not a valid
inventory_item_id. Could you double check to make sure the id you're passing is the required one? If it's an issue of passing an invalid id, you could use the ProductVariant resource which has an
inventory_item_id property to find the
inventory_item_id and use that with your query.
If you have any additional questions or require further clarification, please do let me know.