> 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: Pool Definition Items

# Type: Pool Definition Item Object

# Link: https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/pool-definition-items/pool-definition-item-object.md

## Description: A pool definition item represents the assignment of an item to a benefit in a pool definition. Pool definition items are created automatically when an item is added to a benefit or a benefit is added to a pool definition, and they're removed when the item is removed from the benefit, the benefit is removed from the pool definition, or the pool definition is deleted.

Each pool definition item links a pool definition's benefit to a single item. It includes references to the item, pool definition, and program definitions, and optionally display and pricing details.

## Schema:

```json
 Type: Pool Definition Item Object | type: PoolDefinitionItem
 Description: A pool definition item represents the assignment of an item to a benefit in a pool definition. Pool definition items are created automatically when an item is added to a benefit or a benefit is added to a pool definition, and they're removed when the item is removed from the benefit, the benefit is removed from the pool definition, or the pool definition is deleted.

Each pool definition item links a pool definition's benefit to a single item. It includes references to the item, pool definition, and program definitions, and optionally display and pricing details.
       - name: id  | type: string | description: Pool definition item ID.  The ID is derived from `poolDefinitionId` and `itemId`, so it stays the same for a given pool definition and item.
       - name: revision  | type: string | description: Revision number, which increments by 1 each time the pool definition item is updated.
           - name: value  | type: string | description: 
       - name: createdDate  | type: string | description: Date and time the pool definition item was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the pool definition item was updated.
       - name: externalId  | type: string | description: External item ID assigned by the provider app.  For example, if the items are products, this ID corresponds to the specific product ID in the provider app's system.
       - name: category  | type: string | description: Item category. Groups benefit items together for organization and management. For example, `classes`, `posts`, or `groups`.
       - name: providerAppId  | type: string | description: ID of the app that provides the item. Each item's `externalId` is unique within its provider app.  Inherited from the benefit's configuration in the pool definition.
       - name: namespace  | type: string | description: Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.  Inherited from the benefit's configuration in the pool definition.
       - name: poolDefinitionId  | type: string | description: ID of the pool definition that contains the benefit this item is assigned to.
       - name: itemSetId  | type: string | description: ID of the item set that groups the items of this pool definition item's benefit.  To identify a benefit, use `poolDefinitionId` together with `benefitKey` instead of `itemSetId`.
       - name: poolDefinition  | type: PoolDefinitionInfo | description: Pool definition details, including display name, description, and credit configuration.  Returned only when `POOL_DEFINITION` is included in the `fields` request parameter.
           - name: displayName  | type: string | description: Pool definition display name.
           - name: description  | type: string | description: Pool definition description.
               - name: value  | type: string | description: 
           - name: creditConfiguration  | type: CreditConfiguration | description: Credit configuration of the pool definition.  Returned only when the pool definition uses credit-based pricing.
               - name: amount  | type: string | description: Number of credits granted to a beneficiary when a pool is created from this pool definition.
               - name: unitDisplayName  | type: string | description: Credit unit display name.
               - name: unitType  | type: string | description: Credit unit type. For example, `PUNCH_CARD` or `CREDIT`.
       - name: programDefinitions  | type: Array<ProgramDefinitionInfo> | description: Program definitions that include this pool definition item's pool definition.  Each program definition's `id` and `externalId` are always returned. `displayName` and `description` are returned only when `PROGRAM_DEFINITION` is included in the `fields` request parameter.
           - name: id  | type: string | description: Program definition ID.
           - name: externalId  | type: string | description: External program definition ID, if set.
           - name: displayName  | type: string | description: Program definition display name.  Returned only when `PROGRAM_DEFINITION` is included in the `fields` request parameter.
           - name: description  | type: string | description: Program definition description.  Returned only when `PROGRAM_DEFINITION` is included in the `fields` request parameter.
       - name: itemId  | type: string | description: ID of the item that's assigned to the benefit.
       - name: benefitInfo  | type: BenefitInfo | description: Benefit details, including credit price, display name, and description.  Returned only when `BENEFIT` is included in the `fields` request parameter.
           - name: price  | type: string | description: Price of the benefit in credits. The price is the same for all of the benefit's items.  Returned only when the benefit uses credit-based pricing.
           - name: displayName  | type: string | description: Benefit display name.
           - name: description  | type: string | description: Benefit description.
       - name: itemInfo  | type: ItemInfo | description: Catalog item details, including display name.  Returned only when `ITEM` is included in the `fields` request parameter.
           - name: displayName  | type: string | description: Item display name.
       - name: benefitKey  | type: string | description: Key of the benefit that the item is assigned to. Unique within the pool definition.
       - name: itemSearchKey  | type: string | description: Pre-computed search key for the item, built by joining `providerAppId`, `category`, and `externalId` with `/`. For example, `a1c7e2f4-3b5d-4e8a-9c6f-2d4b8e1a7c35/classes/7f3e9b21-4c8a-4d6e-b5f2-9a1c3e7d8b40`.  Filtering by `itemSearchKey` is more efficient than filtering by `providerAppId`, `category`, and `externalId` in 3 separate conditions.
       - name: removed  | type: boolean | description: Whether the pool definition item was removed.  [Query Pool Definition Items](https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/pool-definition-items/query-pool-definition-items.md) doesn't return removed pool definition items, so this field is always `false` or absent in query results.
           - name: value  | type: boolean | description: 

```