> 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/benefit-programs/items/introduction.md

## Article Content:

# About the Items API

The Items API allows you to manage your app or site's benefit [items](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/introduction.md). An item references a reward, product, or service that another app provides, and makes it redeemable as part of a [benefit](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/introduction.md). Use this API together with other [Wix Benefit Programs APIs](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/introduction.md).

With the Items API, you can:
- Create benefit items and assign them to benefits.
- Retrieve, list, query, and count benefit items.
- Update the display name and extended fields of benefit items.
- Delete benefit items, individually or by filter.

These actions affect the benefit items, not the rewards, products, or services they reference.

## Items and item sets
Each item belongs to 1 benefit through the benefit's [item set ID](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/benefit-program-components.md#benefits). A benefit is defined in a [pool definition](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/introduction.md) and appears in every pool created from that pool definition, so an item is available in all of those pools.

The [Pool Definitions API](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/pool-definitions/introduction.md) automatically assigns each benefit a unique `itemSetId` when the benefit is created. You can't create item sets yourself. To add an item to a benefit, retrieve the pool definition and use the `itemSetId` of the benefit in its `details.benefits` array.

To add the same reward, product, or service to several benefits, create an item for each benefit.

## Adding items to a benefit
The recommended way to add items to a benefit is [Add Items to Benefit](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/pool-definition-items/add-items-to-benefit.md). It takes the pool definition ID and the benefit key, and sets `itemSetId`, `providerAppId`, and `namespace` from the benefit's configuration.

Use [Create Item](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/items/create-item.md) or [Bulk Create Items](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/items/bulk-create-items.md) when you already have the item set ID. In that case, `providerAppId` must match the benefit's `providerAppId`, and `namespace` should match the pool definition's namespace.

After an item is created, you can update its `displayName` and `extendedFields`. Its other fields can't be changed. To move an item to another benefit or change what it references, delete it and create a new one.

## Before you begin
It's important to note the following points before starting to code:
- Sites using this API must install the Pricing Plans app.
- Deleting an item takes effect immediately, including in pools that are already active.

## Use cases
- [Offer rewards from your app as a benefit](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/items/sample-flows.md#offer-rewards-from-your-app-as-a-benefit)
- [Remove a discontinued reward from benefits](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/items/sample-flows.md#remove-a-discontinued-reward-from-benefits)
- [Keep item display names in sync](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/items/sample-flows.md#keep-item-display-names-in-sync)

## Terminology
- **Benefit item**: A reference to a reward, product, or service provided by another app, which beneficiaries can redeem as part of a benefit.
- **Item set**: The list of items that belong to a specific benefit. Identified by the benefit's `itemSetId`.
- **External ID**: The ID of the item in the app that provides it.
- **Provider app**: The app that provides the item.

For a comprehensive glossary of benefit programs terms, see [Terminology](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/introduction.md).

## See also
- [Sample Flows](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/items/sample-flows.md)
- [Pool Definitions API](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/pool-definitions/introduction.md)
- Benefit programs [components](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/benefit-program-components.md) and [lifecycle](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/benefit-programs-lifecycle.md)

