> 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: TikTok Catalog Sales Plan

## Article: TikTok Catalog Sales Plan

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/stores/skills/tik-tok-catalog-sales-plan.md

## Article Content:

# TikTok Catalog Sales Plan

A plan for a store whose products already reach a TikTok for Business catalog through the TikTok Catalog sales channel. TikTok uses the catalog to show the products in ads, and a customer who taps one buys on the store's own checkout. The plan holds only what can be done for the owner through public Wix APIs, plus one link: the ad, which the owner creates in the TikTok Ads app.

**Two facts shape the plan.**
- **There is no public API for the sales channel.** Nothing here can connect a store to TikTok, read whether it is connected, or read what TikTok turned down. Take the owner's word that the store is connected; the site's app list doesn't show it, so don't look for it there. The product check below grades each product against TikTok's published catalog rules, on Wix's side. Never tell the owner that TikTok approved or rejected a product.
- **Every step is the owner's choice.** Offer the steps, run the one the owner picks, and change nothing until they approve the exact change.

## When to use

- The owner has connected their store to TikTok and asks what to do next, how to sell more on TikTok, or how to get their products seen there.
- The owner asks one step on its own ("check my products for TikTok", "connect my TikTok Pixel"): run that step only.

Not for:
- **Connecting the store to TikTok.** No public API does it. Give the link to the TikTok Catalog page, `https://manage.wix.com/dashboard/<siteId>/tiktok-catalog-app`, and say the owner connects it there. This is the page Wix's Help Center links to for TikTok Catalog ([Adding store products to your TikTok for Business catalog](https://support.wix.com/en/article/wix-stores-adding-store-products-to-your-tiktok-for-business-catalog)); [Stores Dashboard Navigation](https://dev.wix.com/docs/api-reference/business-solutions/stores/skills/stores-dashboard-navigation.md) doesn't list it, and the sales channel has no app ID for the `/app/` form. TikTok is not one of the `wix-stores/channel/{channel}` pages: checked on 1 Dec 2026, `wix-stores/channel/tiktok` never finishes loading, while `tiktok-catalog-app` opens the TikTok Catalog page (the one the Sales Channels menu opens). If the link stops working, send the owner to Sales Channels in the dashboard menu instead.
- A single social post with no plan around it: [Create and Publish a Social Media Post](https://dev.wix.com/docs/api-reference/business-management/marketing/skills/create-and-publish-a-social-media-post.md).
- An AI-planned content calendar across topics and content types: [Generate a Marketing Plan and Schedule Its Posts](https://dev.wix.com/docs/api-reference/business-management/marketing/skills/generate-a-marketing-plan-and-schedule-its-posts.md). This plan's posts are a few chosen best sellers, as one step of a channel plan.
- A store on Catalog V1: the product check and the posts read products through the Catalog V3 API, so say they need Catalog V3 and offer steps 2, 3 and 5 only. Step 5 then gives the link without naming products.

## Flow

1. **Context.** [Read Account or Site Context](https://dev.wix.com/docs/api-reference/account-level/sites/skills/read-account-or-site-context.md) for the named site. Take `siteId`, the site's URL, the time zone, the currency and the app list (its Wix Stores line, and whether the TikTok Ads app, `appDefId` `c822fea2-1080-4a61-beff-eaae38134356`, is installed: that's the ads app, not the sales channel). No Wix Stores: say this plan is for stores and stop. The Wix Stores line shows "Catalog app version: V1" (`installedApps[].catalogVersion` is `V1` when the JSON endpoint was used): drop plan steps 1 and 4, say why, and skip the products read.
2. **Read once.** Make the five reads in [Reads](#reads), together when a tool can run them in one call. A failed read leaves out what it feeds and never stops the plan. A new store can answer the products read with `CATALOG_V3_SITE_PROVISIONING` while its catalog is still being set up: wait about ten seconds and read again, up to three times, before treating the read as failed. An empty product list right after that answer means the catalog is still being set up, not that the store has no products: keep waiting and reading within the same three tries. A product the owner names that isn't in the read may have just been added: wait about ten seconds and read once more before saying it isn't there.
3. **Write the note** from those reads ([The note](#the-note)).
4. **Show the plan:** the note, then the five steps as one numbered list in that order, each in one line, and how to start ("Reply with a number, or 'start' for the first one"). The message holds those three parts and nothing else. Use each step's line from [The plan](#the-plan) word for word, with nothing under or after it, and say nothing about whether a step suits the store yet: a step's caveats, such as a pixel that is already connected, come up only when the owner starts that step. Add no paragraph between the list and how to start: no findings, no counts of products, photos, descriptions or brands, and no product that needs fixing. What the product read found shows only when the owner starts step 1.
5. **Run the step the owner picks.** "Start" means step 1. Each step shows its result and asks for approval before any write. After a step, show the plan again and say which step is done.

## Reads

These five calls are verified as written, and each row links its method's reference page, the source to cite for the call. Make them as shown, without searching the docs or reading a method's schema, and in one call when a tool can run them together. The fields each read returns are in its last column. The products query returns every field the product check needs, so never read products one by one.

| Read | Call | Fields used |
|---|---|---|
| Products ([Query Products](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/products-v3/query-products.md)) | `POST https://www.wixapis.com/stores/v3/products/query` with `{"fields": ["PLAIN_DESCRIPTION", "MEDIA_ITEMS_INFO", "SUBSCRIPTION_PRICES_INFO"], "query": {"cursorPaging": {"limit": 100}}}`. While `pagingMetadata.hasNext` is `true`, send `{"fields": [...the same...], "query": {"cursorPaging": {"limit": 100, "cursor": "<pagingMetadata.cursors.next>"}}}` | `id`, `revision` (Query Products returns it on every product, checked on a Catalog V3 store on 2026-11-23; send it unchanged in that product's update. If a product ever comes back without one, read it with [Get Product](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/products-v3/get-product.md), `GET https://www.wixapis.com/stores/v3/products/<productId>`, before its update), `name`, `visible`, `productType`, `subscriptionDetails` (present only on a product sold as a subscription), `plainDescription` (HTML), `brand.name` (absent when none), `actualPriceRange.minValue.amount` (string), `media.main.image.{url, width, height}`, `media.itemsInfo.items[].{id, image.url, image.width, image.height}` (the first item is the main photo), `createdDate` |
| Orders, last 90 days ([Search Orders](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/orders/search-orders.md)) | `POST https://www.wixapis.com/ecom/v1/orders/search` with `{"search": {"filter": {"purchasedDate": {"$gte": "<90 days ago, local midnight, UTC>"}}, "cursorPaging": {"limit": 100}}}`. While `metadata.hasNext` is `true`, send `{"search": {"cursorPaging": {"limit": 100, "cursor": "<metadata.cursors.next>"}}}`. Skip orders whose `status` is `CANCELED` | `status`; per line item, `lineItems[].catalogReference.catalogItemId` (the product's `id`) and `lineItems[].quantity`, added up per product for units sold |
| Business ([Get Site Properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties.md)) | `GET https://www.wixapis.com/site-properties/v4/properties` | `properties.businessName`, `properties.siteDisplayName`, `properties.description` |
| Marketing tags ([List Marketing Tags](https://dev.wix.com/docs/api-reference/business-management/marketing/marketing-tags/list-marketing-tags.md)) | `GET https://www.wixapis.com/marketing/v1/tags` | The entry whose `type` is `TIKTOK_PIXEL`: its `enabled` and `tikTokPixel.{domain, trackingId}`; any entry's `<tag>.domain` |
| Customers by where they came from, last 90 days ([Query Semantic Model Data](https://dev.wix.com/docs/api-reference/business-management/analytics/semantic-models/query-semantic-model-data.md)) | List and Get the model first, then `POST https://www.wixapis.com/analytics/semantic-model/v3/semantic-models/query-data`, as below | One row per source |

The last read, in the site's time zone (see [Query Site Analytics](https://dev.wix.com/docs/api-reference/business-management/analytics/skills/query-site-analytics.md) for how to set `interval`):

```json
{
  "semanticModelId": "<id of the sales model, from List Semantic Models>",
  "interval": { "start": "<90 days ago, local midnight, UTC>", "end": "<tomorrow, local midnight, UTC>", "timezone": "<site time zone>" },
  "fields": ["sales.referrer_source_name", "sales.customers_count"],
  "sort": { "fieldName": "sales.customers_count", "order": "DESC", "nullsLast": true },
  "paging": { "limit": 20 }
}
```

Find the model first, as [Query Site Analytics](https://dev.wix.com/docs/api-reference/business-management/analytics/skills/query-site-analytics.md) shows: [List Semantic Models](https://dev.wix.com/docs/api-reference/business-management/analytics/semantic-models/list-semantic-models.md) (`GET https://www.wixapis.com/analytics/semantic-model/v3/semantic-models`) and keep the `id` of the model whose `slug` is `sales`, then [Get Semantic Model](https://dev.wix.com/docs/api-reference/business-management/analytics/semantic-models/get-semantic-model.md) (`GET https://www.wixapis.com/analytics/semantic-model/v3/semantic-models/<id>`) and check that `sales.referrer_source_name` and `sales.customers_count` are among its dimensions and measures. Use the ID and field names those calls return. After the query, check that both fields appear in `results[].fields`: a field that is missing was dropped, so the read failed, and it never means zero customers. With no `sales` model, a missing field or a failed read, the note uses no number. `sales.referrer_source_name` holds values such as `TikTok`, `Instagram`, `Google` or a referring domain. A visit counts toward its last source that was not direct, and in-app browsers sometimes hide the source, so the TikTok row is a floor, never an exact share.

## The note

Three sentences at most, before the steps. It says why TikTok suits this business. It reads like someone who knows the shop, not like a report.

- Talk about the business: what it makes, who buys, how people find it. Take this from `properties.description`, the product descriptions and the best sellers.
- **Best sellers** are the products with the most units sold in the orders read. With no orders in the 90 days, use the visible physical products that have a photo, newest first (`createdDate`), and don't call them best sellers. With no description either, the note says only what the product names show; it never guesses who the customers are.
- Tie one true thing about it to why TikTok fits (people discover products there by watching them in use), and end with where to start, in the owner's terms: name a best seller.
- Use at most one number, and only one about the owner's own customers. The customers-by-source read supplies it when the TikTok row has at least 5 customers: "25 of your customers in the last three months found you through TikTok." Below 5, or when the read failed, use no number.
- Never list problems or counts of products that fail (those are the steps), never explain how the channel works, never promise results, and say nothing that was not read in this session. No follower or view counts: no public API returns them.

Example: "Your hand-dyed yarn looks best moving, being wound and knitted, and that's exactly what people stop for on TikTok. Now they can buy what they see in your ads without going looking for it. I'd start with the Ocean skein, your best seller."

## The plan

| # | The line the owner reads | What happens |
|---|---|---|
| 1 | Check that all your products fit TikTok's rules | [Step 1](#step-1-check-the-products-against-tiktoks-rules) |
| 2 | Connect your TikTok Pixel so TikTok can see your sales | [Step 2](#step-2-connect-the-tiktok-pixel) |
| 3 | Create a TikTok discount code for your posts | [Step 3](#step-3-create-a-tiktok-discount-code) |
| 4 | Schedule 2 weeks of TikTok posts from your products | [Step 4](#step-4-schedule-two-weeks-of-tiktok-posts) |
| 5 | Run an ad for your products with TikTok Ads | [Step 5](#step-5-open-tiktok-ads) |

The ad comes last: an ad on products TikTok can't show wastes money, and without the pixel TikTok can't tell which ads led to a sale. When the owner picks step 5 while step 1 has not run, run step 1's check first and say how many products the ad could show.

### Step 1: Check the products against TikTok's rules

Grade every product with `visible: true` from the products read against these rules. They follow [TikTok's catalog product parameters](https://ads.tiktok.com/help/article/catalog-product-parameters), which require a title, a description, a price, an image and a brand for every product, and Wix's [TikTok catalog article](https://support.wix.com/en/article/wix-stores-adding-store-products-to-your-tiktok-for-business-catalog), which says digital and subscription products are left out of the catalog.

| Rule | Passes when | When it fails |
|---|---|---|
| Physical product, not a subscription | `productType` is `PHYSICAL` and `subscriptionDetails` is absent | Leave it out. TikTok's catalog doesn't take digital or subscription products. Nothing to fix; say so in one line |
| Price | `actualPriceRange.minValue.amount` above 0 | Ask the owner for the price. Never invent one |
| Photo | `media.main.image` is set, its `url` ends in `.jpg`, `.jpeg` or `.png`, and its `width` and `height` are both at least 500 px | When another item in `media.itemsInfo.items` is a JPG or PNG image of at least 500 by 500 px, move it to the front (the first item is the main photo). Otherwise ask the owner for a photo of the product (a larger one when it has only a small one) |
| Title | `name` has no emoji and no promotional text such as "free shipping", "sale" or "best price" | Rewrite it as what the product is, keeping the words people search for |
| Description | `plainDescription`, with tags stripped, has at least 20 characters and is not the template's placeholder (text that starts with "I'm a product description" or contains "I'm a great place to add more details") | Write one from the product's name, its options and `properties.description`, two or three sentences, in the store's language. Never copy the placeholder |
| Brand | `brand` is set | Use `properties.businessName`. When it is empty, ask the owner for the brand name, suggesting `properties.siteDisplayName` unless it is a default name such as "My Site 12" |

Report the result before any write: how many products fit, and the fixes as one list, grouped by kind ("6 products need a fix: 3 descriptions, 2 photos, 1 title"), each with the product's name and the exact change. A fix that applies to most products is one line, not one per product: "No product has a brand. I'll set it to Yarn Loft on all 12." For descriptions, show the first two written in full and the rest by name. Missing prices and photos the owner must supply go below the list as questions. Ask once to save the fixes, with a way to say no ("Reply 'save all', the numbers to save, or 'none'"). When the owner's message already names fixes and says to save them ("set the brand to Fern & Clay and save it"), that is the approval for exactly those: run the check, save only those fixes, and ask about the rest.

Apply only the approved fixes, one product at a time, each with the product's current `revision` (a failed update leaves the product as it was; read it again and retry once):

- **Brand.** Get the brand's ID once with [Get Or Create Brand](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/brands-v3/get-or-create-brand.md), `POST https://www.wixapis.com/stores/v3/brands/get-or-create` with `{"brandName": "<business name>"}`, and take `brand.id`. Then, per product:

  ```json
  PATCH https://www.wixapis.com/stores/v3/products/<productId>
  { "product": { "id": "<productId>", "revision": "<revision>", "brand": { "id": "<brandId>" } } }
  ```

- **Description.** Send `plainDescription` as HTML, which replaces the whole description (do this only for products whose description failed the rule):

  ```json
  PATCH https://www.wixapis.com/stores/v3/products/<productId>
  { "product": { "id": "<productId>", "revision": "<revision>", "plainDescription": "<p>Hand-dyed merino yarn in deep ocean blues. 100 g, about 400 m, machine washable on wool.</p>" } }
  ```

- **Title.** The same call with `"name": "<rewritten title>"`.
- **Photo.** Send `media.itemsInfo.items` with every existing item, each by its `id`, the larger photo first. The array replaces the gallery, so an item left out is removed. See Update Media Only in [Update Product with Options](https://dev.wix.com/docs/api-reference/business-solutions/stores/skills/update-product-with-options-catalog-v3.md).

A fix changes the product on the site too, so the site and TikTok show the same product. After the writes, say what changed in one line per kind, and that TikTok picks up the changes on its next catalog update.

### Step 2: Connect the TikTok Pixel

The TikTok Pixel tells TikTok which visitors from its ads bought something, which TikTok needs to show the ads to people likely to buy.

1. Take the `TIKTOK_PIXEL` entry from the marketing tags read.
2. **It exists and `enabled` is `true`:** say the pixel is already connected, and count the step as done.
3. **It exists and `enabled` is `false`:** ask to turn it on, then send the call below with the entry's own `trackingId` and `domain`.
4. **None exists:** ask the owner for their TikTok Pixel ID, which they copy from the Events page of TikTok Ads Manager. Never invent one. Then send:

   ```json
   POST https://www.wixapis.com/marketing/v1/tags
   { "tag": { "enabled": true, "tikTokPixel": { "domain": "<site domain>", "trackingId": "<TikTok Pixel ID>" } } }
   ```

   `domain` is the host name only (`yarnloft.com`, no `https://` and no path): take it from another tag's `domain` in the read, else from the site's URL. ([Upsert Marketing Tag](https://dev.wix.com/docs/api-reference/business-management/marketing/marketing-tags/upsert-marketing-tag.md); a site has one tag of each type, so this replaces any TikTok Pixel already there.)

Say in one line that sales start to show in TikTok Ads Manager after the next purchase from TikTok.

### Step 3: Create a TikTok discount code

1. **Propose the offer** in one message: 10% off the whole store, one use per customer, a short code (for example `TIKTOK10`), ending 30 days from today. Ask the owner to approve it or change it.
2. **Create the coupon** as [Pricing: Create Coupon](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/skills/pricing-create-coupon.md) shows: its Step 1 checks first for a code already in use, then `POST https://www.wixapis.com/stores/v2/coupons` with `percentOffRate`, `scope: {"namespace": "stores"}`, `startTime`, `expirationTime`, `limitPerCustomer: 1` and `active: true`.
3. Say that step 4's posts will end with the code. Orders that use it later show which sales TikTok brought.

### Step 4: Schedule two weeks of TikTok posts

Run [Create and Publish a Social Media Post](https://dev.wix.com/docs/api-reference/business-management/marketing/skills/create-and-publish-a-social-media-post.md) once per post, with the plan answering its first questions: the channel is `TIKTOK` with the `POST` type (a photo post, `tiktokPhoto`), the subject is a product, the text is generated from that product as a site asset, and the image is the product's main photo. `privacyLevel` comes from the TikTok account, as that recipe's STEP 4b shows.

- Take the four best sellers ([The note](#the-note) says what counts as one) that pass step 1. With fewer than four, use the products that pass. When step 1 hasn't run, grade the candidates first and skip any that fail.
- Plan two posts a week for two weeks, one product each: four posts. Spread them on different weekdays at 18:00 in the site's time zone, starting tomorrow.
- When step 3 created a code, end each description with it ("Use TIKTOK10 for 10% off until December 23").
- Check the plan before writing any post (STEP 5 of that recipe, `GET https://www.wixapis.com/social-publisher/v1/features?featureTypes=PUBLISH_POST&featureTypes=SCHEDULE_POST`). When `SCHEDULE_POST` is off, say scheduling needs a Social Media Marketing plan, and offer to publish the first post now instead. When the remaining quota is below four, plan only as many posts as it allows.
- Show all the posts with their images and dates in one message, and ask once to schedule them. Then create and schedule each one as that recipe's STEP 6 and STEP 7 show. Every `scheduledDate` must be in the future when it is sent.

Not connected to TikTok in Social Media Marketing: follow STEP 4c of that recipe, then continue. That connection is the owner's TikTok account for posting, separate from the catalog.

### Step 5: Open TikTok Ads

There is no public API for TikTok ad campaigns, so the owner creates the campaign in the TikTok Ads app, the App Market app named "TikTok" (`appDefId` `c822fea2-1080-4a61-beff-eaae38134356`).

1. Say which products the ad can show: those that passed step 1, by name when there are five or fewer, else the count and the top three best sellers. When step 2 hasn't run or the pixel isn't on, say in one line that the ad can't track sales until it is.
2. **No app with `appDefId` `c822fea2-1080-4a61-beff-eaae38134356` is in the site's app list:** ask to add it, then install it as [Install Wix Apps](https://dev.wix.com/docs/api-reference/business-management/app-installation/skills/install-wix-apps.md) shows, with `appDefId` `c822fea2-1080-4a61-beff-eaae38134356`.
3. Give the link to the app's page, with what to do there: "Open TikTok Ads and create a campaign for your products."

   `https://manage.wix.com/dashboard/<siteId>/app/c822fea2-1080-4a61-beff-eaae38134356`

   This is the dashboard's app-ID link ([Dashboard Navigation](https://dev.wix.com/docs/api-reference/business-solutions/bookings/skills/dashboard-navigation.md)). The app asks the owner to connect their TikTok for Business account when it isn't connected yet.

The step is done when the owner says the campaign is running. Don't describe the ad's price: the app shows it.

## How to talk to the store owner

- **Calm, short and on their side.** One to three sentences per message outside the plan. No exclamation points, no "please", no "sorry". "I" is only for what you checked or will change.
- **Use the names the owner sees in Wix** for what they will open: TikTok Catalog, Coupons, Marketing Integrations, Social Media Marketing, TikTok Ads. Say "customers", never "shoppers" or "users". No API names, field names or error codes.
- **Real names and numbers from this store**: "3 products have no description: Ocean Skein, Moss Skein, Ember Skein."
- **Every approval names the exact change** and gives a way to say no. The pixel, the discount and the posts each get their own yes, even after "save all" in step 1.
- **After each change, say what it was before**, so the owner can ask to put it back.
- **Answer in the language the owner writes in.** Dates, times and money use the site's time zone and currency.

## Guardrails

- Never write without the owner's yes to that change. Reading is free.
- Never invent a price, a product photo, a Pixel ID, a follower or view count, or what TikTok approved.
- Never send a post or campaign whose content changed after the owner approved it: show it again.
- Use only endpoints from this recipe or the recipes it links. Anything else is confirmed in the Wix REST docs first.
- Don't ask for what the reads already hold (best sellers, the business name, the pixel, the time zone). Ask only for what the owner alone knows: a price, a photo, the Pixel ID, the offer.

## Common mistakes

| Mistake | Fix |
|---|---|
| Telling the owner TikTok rejected or approved a product | The check grades TikTok's rules on Wix's side; no API reads TikTok's verdict |
| Trying to connect the channel or read whether it's connected | No API exists; give the TikTok Catalog page link |
| Asking for a Pixel ID when the marketing tags already hold one | Read the `TIKTOK_PIXEL` tag first; it may only need turning on |
| Sending `https://` or a path in the pixel's `domain` | Send the host name only |
| Passing a digital or subscription product | TikTok's catalog leaves them out; say so, don't fix them |
| Passing a WebP or GIF main photo | TikTok takes JPG or PNG; move a JPG or PNG image to the front or ask for one |
| Sending a product update without its current `revision` | Read the product, then send its `revision` |
| Sending `media.itemsInfo.items` with only the new main photo | The array replaces the gallery; send every item, reordered |
| Setting `brand.name` on an existing product | Get Or Create Brand, then set `brand.id` |
| Scheduling posts when `SCHEDULE_POST` is off | Offer to publish one now, and name the plan that schedules |
| Stating the TikTok number as an exact share | It's a floor: say "at least" or use it as a count of customers |
| Running step 5 before any product check | Run step 1's check first and say what the ad could show |
| Passing a product whose description is the template's placeholder | "I'm a product description…" counts as no description |
| Setting the brand to a default site name | With no business name, ask; never brand products "My Site 12" |