> 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: Account Code V1

# Type: Account Code Object

# Link: https://dev.wix.com/docs/api-reference/account-level/channels/eligibility/account-code-v1/account-code-object.md

## Description: An account code is a signed, one-time-use code that links a user's Wix account to a
Channel's account as a sub-account. Channels send account codes to their users inside
sign-in invite links. An account code stays redeemable until it's redeemed, deleted, or expires.

## Schema:

```json
 Type: Account Code Object | type: AccountCode
 Description: An account code is a signed, one-time-use code that links a user's Wix account to a
Channel's account as a sub-account. Channels send account codes to their users inside
sign-in invite links. An account code stays redeemable until it's redeemed, deleted, or expires.
       - name: id  | type: string | description: Account code ID.
           - name: value  | type: string | description: 
       - name: revision  | type: string | description: Revision number, which increments by 1 each time the account code is updated.
           - name: value  | type: string | description: 
       - name: createdDate  | type: string | description: Date and time the account code was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the account code was last updated, for example when it was redeemed.
       - name: expirationTime  | type: string | description: Date and time the account code becomes inactive and can no longer be redeemed.  Not returned for an account code that never expires.
       - name: batchLabel  | type: string | description: Channel-defined label the account code was generated with, if any, for example `"premium"` or `"enterprise"`. Groups account codes so a whole batch can be deleted at once.
       - name: userEmail  | type: string | description: Email address of the user who redeemed the account code. Each email address can redeem a single account code per Channel.  Returned only after the account code is redeemed.
       - name: code  | type: string | description: The signed, opaque code issued for this account code, as returned in its invite link's `organizationInviteCode` query parameter. Stored for bo_users lookup by code; the service itself never needs it back, since the id alone is sufficient to redeem or delete a row. Unset until the code is generated and stamped onto this row immediately afterward.
       - name: tags  | type: Tags | description: Tags assigned to the account code.
           - name: privateTags  | type: TagList | description: Tags that require an additional permission in order to access them, normally not given to site members or visitors.
               - name: tagIds  | type: Array<string> | description: List of tag IDs.
           - name: publicTags  | type: TagList | description: Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors.

```