Manage product cost with the Admin API
Shopify has launched the ability for merchants to record the cost of product variants, track profit margins, and report on product performance. Merchants have access to a new Cost per item field when editing variant pricing. They can bulk update product costs by importing a product CSV file, or by using the product bulk editor. We have also introduced product cost within analytics, including the addition of new Profit margin and Gross profit reports. To learn more about per-item cost, see Product details.
This guide explains the changes associated with product cost and how to update your app so that it supports the new feature. Updating your app to read and write product cost provides incredible value to merchants by enabling them to better understand their business right from the Shopify admin.
Changes to Shopify resources
To facilitate the product cost feature, we have added a new writable
cost property to the InventoryItem resource. This property allows apps to set and retrieve an inventory item's cost.