update-inventory-item
Set an inventory item's unit cost or inventory tracking status by inventory item ID, then read the cost back with get-inventory-items.
Instructions
Set an inventory item's unit cost and/or whether its inventory is tracked. Provide at least one of cost or tracked. Read the cost back with get-inventory-items.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Unit cost in the shop's currency, as a number or decimal string (e.g. 12.5 or "12.50"). Must be >= 0. | |
| tracked | No | Whether Shopify tracks inventory for this item | |
| inventoryItemId | Yes | The inventory item ID (e.g. gid://shopify/InventoryItem/123 or just 123). This is not the variant ID; get it from get-inventory-items or get-product-variants-detailed. |