Search Documentation
Search for a documentation page...
Inventory API
REST API endpoints for viewing and adjusting product stock levels.
The Inventory API provides stock-level visibility and adjustment for product variants that have SKUs assigned.
List Inventory
Returns inventory levels for all variants with SKUs. Uses cursor-based pagination.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 50 | Items per page (1-100) |
cursor | string | – | Variant UUID cursor for pagination |
lowStock | number | – | Filter variants with stock below this threshold |
Response
Adjust Inventory
Adjusts the stock level for a variant by SKU. Use positive delta to add stock, negative to subtract.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
delta | number | Yes | Stock change (positive to add, negative to subtract) |
reason | string | Yes | restock, correction, damaged, or return |
Response
Side Effects
When an adjustment brings a variant from zero stock to a positive level, back-in-stock notification emails are automatically sent to any customers who subscribed for restock alerts on that variant (if the store has restock notifications enabled). When stock is depleted to zero, notification watches are re-armed so subscribers will be notified again on the next restock.
These side effects are asynchronous and do not affect the API response or status code.