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.

Throughout this guide, there are example requests and responses that use both our REST Admin API and GraphQL Admin API.