Skip to main content
PATCH
Update Product Inventory
V2 Preview — This endpoint is part of the V2 API preview. Breaking changes may occur.

Overview

Inventory-only update designed for the vendor quick-view modal. Uses Shopify’s inventorySetQuantities (absolute) or inventoryAdjustQuantities (delta) depending on mode. Does not touch product/variant metadata — only the on-hand count.

Path Parameters

string
required
Product ID (Shopify numeric, GID, or MongoDB ObjectId).

Request Body

string
required
set (absolute) or adjust (delta).
array
required
Array of { variantId, locationId, quantity } (for set) or { variantId, locationId, delta } (for adjust).

Response

200

Example

More Examples

Set inventory to exact quantity
Adjust inventory (add 10 units)