> 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: Track Partner Program Level

## Article: Track Partner Program Level

## Article Link: https://dev.wix.com/docs/api-reference/account-level/studio-workspace/skills/track-partner-program-level.md

## Article Content:

# Track Partner Program Level

## Description
The [Wix Partners Program](https://www.wix.com/studio/partner-program) rewards partners (agencies and freelancers, the user) with benefits based on points. Every point comes from an achievement Wix records for the partner: a Premium plan on a site the partner owns or collaborates on, a Wix certification, or points Wix granted or carried over. The total points set the level, and each level unlocks more benefits.

## API Endpoints
Every call in this recipe is account-level, including Query Sites in Step 3: make each one with account scope and never pass a site ID, even after you've found the partner's sites. They return the calling account's own data only; there's no way to read another partner's standing, so never take an account ID from the user.

| Call | Purpose |
|---|---|
| `GET https://www.wixapis.com/partners/partnersprogram/v1/partners-program/overview` | level, total points, next level |
| `POST https://www.wixapis.com/partners/partnersprogram/v1/partners-program/achievements/query` | the achievements behind the points |

The request and response shapes below are complete for these flows, Query Sites included; you don't need to search the docs for them.

Docs: [Achievements](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/partners-program/achievement-v1/introduction.md), [Get Overview](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/partners-program/achievement-v1/get-overview.md), [Query Achievements](https://dev.wix.com/docs/api-reference/account-level/studio-workspace/partners-program/achievement-v1/query-achievements.md)

## Rules

- **Read-only.** Wix creates achievements from the partner's activity; nothing here can add, change or remove points or levels.
- **Use the API's numbers.** Report `level`, `points` and `nextLevel.remainingPoints` as returned. Don't recompute the level from points, and don't sum achievements to correct the overview.
- **Don't invent point values or benefits.** The API doesn't say how many points a given plan or certification is worth, or what each level unlocks. For benefits, link the [Partners Program page](https://www.wix.com/studio/partner-program).
- **Earnings are separate.** Points and levels are not money. Don't answer questions about earnings, revenue share or payouts from this recipe.
- **Only for the partner.** Don't put the partner's level or points in a message meant for their client.

## Steps

### 1. Get the level and the distance to the next one

```
GET https://www.wixapis.com/partners/partnersprogram/v1/partners-program/overview
```

Response:

```json
{ "overview": { "level": "CREATOR", "points": 1350, "nextLevel": { "level": "ICON", "remainingPoints": 650 } } }
```

| Level | Points |
|---|---|
| `PIONEER` | fewer than 1000 |
| `CREATOR` | 1000 to 1999 |
| `ICON` | 2000 to 4999 |
| `LEGEND` | 5000 or more |

The table is context only: always report `level` and `remainingPoints` from the response.

- `nextLevel` is absent at `LEGEND`, the highest level: say the partner is at the top.
- An empty response (no `overview`, or no `level`) means the account isn't in the Partners Program. Say so and link the [Partners Program page](https://www.wix.com/studio/partner-program) to join. Don't report Pioneer with 0 points.

This one call answers "what's my level" and "how far am I from the next one". Don't query achievements unless the user asks what earned the points or how to earn more.

### 2. Show what earned the points

```
POST https://www.wixapis.com/partners/partnersprogram/v1/partners-program/achievements/query
```
```json
{ "query": { "sort": [ { "fieldName": "points", "order": "DESC" } ], "cursorPaging": { "limit": 200 } } }
```

- The default sort is `createdDate` newest first, limit 50; `limit` is at most 200. Filter and sort only on `id`, `points` and `achievementType` (for example `"filter": { "achievementType": "PREMIUM" }`). If `pagingMetadata.hasNext` is `true`, send `{ "query": { "cursorPaging": { "cursor": "<pagingMetadata.cursors.next>", "limit": 200 } } }` for the next page, without `filter` or `sort`.
- Each achievement has `points`, `achievementType`, `createdDate` and the details for its type:

| `achievementType` | Earned by | Details |
|---|---|---|
| `PREMIUM` | a Premium plan on a site the partner manages | `premiumOptions.siteName` (may be absent on older ones), `premiumOptions.metaSiteId`, `premiumOptions.role`: `OWNER` or `CONTRIBUTOR` (a collaborator on a client's site) |
| `CERTIFICATION` | a completed Wix certification | `certificationOptions.certificationType` (see Step 3 for the list) |
| `MANUAL` | points granted by Wix | `manualOptions.comment`, if any |
| `MIGRATION` | points carried over from the earlier program | `migrationOptions.loyaltyPoints` |

The partner dashboard shows all `MANUAL` and `MIGRATION` achievements as one entry with their combined points; the API returns each one. Group them the same way when you report. Name sites by `siteName`. Older achievements may have none, and the site may belong to a client, so don't look it up: say "a site" rather than showing the ID.

### 3. How to earn more points

When the user asks how to reach the next level, start from Step 1's `remainingPoints`, then point to the two ways the API shows points being earned:

- **Premium plans on client sites.** A Premium plan on a site the partner owns or collaborates on earns a `PREMIUM` achievement. To find candidates, read one page of the account's free-plan sites ([Query Sites](https://dev.wix.com/docs/api-reference/account-level/sites/skills/query-sites.md)):

  ```
  POST https://www.wixapis.com/site-list/v2/sites/query
  ```
  ```json
  { "query": { "filter": { "premium": false, "namespace": { "$in": ["WIX", "HEADLESS"] } }, "cursorPaging": { "limit": 100 } } }
  ```

  Name a handful from `sites[].displayName`; if `metadata.hasNext` is `true`, say there are more rather than paging through them all. Plans on client sites the partner collaborates on count too (`premiumOptions.role: CONTRIBUTOR`), even when those sites aren't in that list.
- **Wix certifications.** Each completed certification earns a `CERTIFICATION` achievement. Query Achievements returns only earned ones; these are all the types the API knows. Read the earned ones with `{ "query": { "filter": { "achievementType": "CERTIFICATION" }, "cursorPaging": { "limit": 200 } } }` (not Step 2's first page, where they can fall past the limit) and name the missing ones:

| `certificationType` | Certification |
|---|---|
| `WEB_DESIGNER` | Wix web design |
| `STUDIO_DEVELOPER` | Wix Studio development |
| `ACCESSIBILITY` | Web accessibility |
| `VELO` | Velo |
| `STUDIO_DESIGN_LEAGUE` | Wix Studio Design League |
| `STUDIO_DEV_WEBSITES_LEAGUE` | Wix Studio Developer Websites League |

Don't promise how many points either one adds (see Rules). Suggest; don't push the client toward a plan on the partner's behalf.

## Reporting back

Give the level in words (Pioneer, Creator, Icon, Legend), the total points, and the next level with the points still needed. For a breakdown, list the achievements grouped by how they were earned, with their points, largest first, and name each site. Don't show IDs or field names unless the user asks. If a call fails, say which one failed; don't guess the level.