Order Creation - Web Hook Cost Per Item

4 1 0

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!

Shopify Staff
Shopify Staff
535 105 105

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. 


Vix | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog