> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v1/inventory/introduction.md

## Article Content:

# About the Inventory API

The Inventory API allows you to manage stock levels for products in a Wix Stores catalog. The API tracks inventory per variant, so you can manage stock separately for each size, color, or other product option.

With the Inventory API, you can:

- Retrieve inventory information for a specific product or variant.
- Update inventory tracking settings and stock status for product variants.
- Increment or decrement inventory quantities for up to 300 variants across multiple products in a single call.
- Query inventory items with filtering, sorting, and paging.

## Inventory track modes

The Inventory API supports 2 track modes that determine how a product's stock status works:

- **Tracked inventory**, where `trackQuantity` is `true`: The `quantity` field determines stock status. When the quantity reaches 0, the variant becomes out of stock. The system automatically decrements quantity when a customer completes a purchase. Use the Increment Inventory and Decrement Inventory methods to manually adjust quantities.
- **Untracked inventory**, where `trackQuantity` is `false`: The `inStock` field controls stock status manually. The system doesn't decrement quantity on purchase. Use the Update Inventory Variants method to toggle `inStock` for each variant.

## Terminology

- **Inventory item:** The inventory record for a specific product. Contains tracking settings, variant-level stock data, and preorder configuration.
- **Variant:** A specific version of a product, such as a particular size or color. Each variant maintains its own stock data. Products without variants have a single default variant.
- **Tracked inventory:** An inventory mode where the `quantity` field determines stock status. The system automatically decrements quantity on purchase.
- **Untracked inventory:** An inventory mode where the `inStock` flag controls stock status manually. The system doesn't track or decrement quantity on purchase.
- **Preorder:** A feature that allows customers to purchase out-of-stock items. Preorder is available only for tracked inventory, and you can set a limit on the number of preorder purchases.

