adjust-inventory
Update product inventory levels by increasing or decreasing available stock at a chosen location. Specify inventory item, location, and delta to correct quantities.
Instructions
Adjust the available inventory quantity of a product variant at a location by a delta (positive to add stock, negative to remove). Use get-product-by-id to find the variant's inventoryItem ID and get-locations for the location ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delta | Yes | Quantity change: positive to increase available stock, negative to decrease | |
| reason | No | Reason for the adjustment, e.g. 'correction', 'received', 'damaged' | correction |
| locationId | Yes | Location ID (numeric ID or gid://shopify/Location/... form) | |
| inventoryItemId | Yes | Inventory item ID (numeric ID or gid://shopify/InventoryItem/... form) |