Hi there, I'm creating a profit tracking tool and was curious what would be the best way to get the "Cost per item" that is set per item variant inside Shopify.
Currently I'm using the "order creation" web hook to get notifications of new orders but I don't think this response includes the cost per item in the JSON response.
Any tips would be greatly appreciated, thanks!
Solved! Go to the solution
This is an accepted solution.
You can get this information from the API at the inventory level: https://shopify.dev/docs/admin-api/rest/reference/inventory/inventoryitem?api[version]=2020-04
If the information you need is not in the webhook, you should try the inventory_items/update or polling in the API.