> 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: Pinterest Catalogs Sales Plan

## Article: Pinterest Catalogs Sales Plan

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

## Article Content:

# Pinterest Catalogs Sales Plan

A plan for a store whose product catalog already reaches a Pinterest business account through the Pinterest Catalogs sales channel. Pinterest turns the catalog into shoppable Pins, 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.

**Two facts shape the plan.**
- **There is no public API for the sales channel.** Nothing here can connect a store to Pinterest, read whether it is connected, or read what Pinterest 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 Pinterest's published catalog rules, on Wix's side. Never tell the owner that Pinterest 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 Pinterest and asks what to do next, how to sell more on Pinterest, or how to get their products seen there.
- The owner asks one step on its own ("check my products for Pinterest", "schedule Pins of my products"): run that step only.

Not for:
- **Connecting the store to Pinterest.** No public API does it. Give the link to the Pinterest Catalogs page, `https://manage.wix.com/dashboard/<siteId>/wix-stores/channel/pinterest` (the route in [Stores Dashboard Navigation](https://dev.wix.com/docs/api-reference/business-solutions/stores/skills/stores-dashboard-navigation.md)), and say the owner connects it there.
- A single Pin 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: both steps read products through the Catalog V3 API, so say this plan needs Catalog V3 and stop.

## 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 time zone and the Wix Stores line of the app list. 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): say this plan needs Catalog V3, because both of its steps read products through the Catalog V3 API, and stop before any read.
2. **Read once.** Make the three 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.
3. **Write the note** from those reads ([The note](#the-note)).
4. **Show the plan:** the note, then the two 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"). Use each step's line from [The plan](#the-plan) word for word, with nothing under it, and say nothing about whether a step suits the store yet: a step's caveats come up only when the owner starts that step.
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 three 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 first, 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", "URL", "MEDIA_ITEMS_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`, `plainDescription` (HTML), `actualPriceRange.minValue.amount` (string), `url.url` (the product page), `media.main.image.{url, width, height}`, `media.itemsInfo.items[]`, `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` | Units sold per product from `lineItems[].quantity` |
| 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.description` |

## The note

Three sentences at most, before the steps. It says why Pinterest 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 products that have a photo, newest first (`createdDate`), and don't call them best sellers.
- Tie one true thing about it to why Pinterest fits (people save ideas there long before they buy), and end with where to start, in the owner's terms: name a best seller.
- Never list problems or counts of products that fail (that's step 1), never explain how the channel works, never promise results, use no follower counts, and say nothing that was not read in this session.

Example: "Your linen sets look like the bedrooms people plan for months on Pinterest. Now a saved Pin can take them straight to your shop when they're ready. I'd start with the Sage duvet cover, your best seller."

## The plan

| # | The line the owner reads | What happens |
|---|---|---|
| 1 | Check that all your products fit Pinterest's rules | [Step 1](#step-1-check-the-products-against-pinterests-rules) |
| 2 | Schedule 8 Pins of your products over the next month | [Step 2](#step-2-schedule-a-month-of-pins) |

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

Grade every product with `visible: true` from the products read against these rules. They follow [Pinterest's catalog requirements](https://help.pinterest.com/en/business/article/before-you-get-started-with-catalogs), which require a title, a description, a link, an image, a price and availability for every product.

| Rule | Passes when | When it fails |
|---|---|---|
| Price | `actualPriceRange.minValue.amount` above 0 | Ask the owner for the price. Never invent one |
| Photo | `media.main.image` is set, it's the product's own photo, and its `width` is at least 1000 px and its `height` at least 1500 px | When another item in `media.itemsInfo.items` is an image of at least 1000 by 1500 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); a tall photo shows best on Pinterest |
| Title | `name` has 1 to 500 characters | Shorten it, keeping the words people search for |
| Description | `plainDescription`, with tags stripped, has 20 to 10,000 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 |

Report the result before any write: how many products fit, and the fixes as one list, grouped by kind ("5 products need a fix: 3 descriptions, 2 photos"), each with the product's name and the exact change. 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):

- **Description.** Send `plainDescription` as HTML, which replaces the whole description (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>Stonewashed linen duvet cover in sage green. Double size, with a button closure.</p>" } }
  ```

- **Title.** The same call with `"name": "<shortened 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).

After the writes, say what changed in one line per kind, and that Pinterest picks up the changes on its next catalog update.

### Step 2: Schedule a month of Pins

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 Pin, with the plan answering its first questions: the channel is `PINTEREST` with the `POST` type (`pinterestPost`), the subject is a product, the text is generated from that product as a site asset, the image is the product's main photo, and the `link` is the product's `url.url`. The `boardId` is the connected Pinterest account's `pinterest.board.id`, as that recipe's STEP 4b shows; with several Pinterest accounts, use the one that recipe picks (`settings.default: true`, or ask).

- Take the eight best sellers that pass step 1. With fewer, use the products that pass. With none passing, schedule no Pins: say so and offer step 1's fixes instead. When step 1 hasn't run, grade the candidates first and skip any that fail.
- Plan two Pins a week for four weeks, one product each. Spread them on different weekdays at 20:00 in the site's time zone, starting tomorrow.
- Check the plan before writing any Pin (STEP 5 of that recipe). When `SCHEDULE_POST` is off, say scheduling needs a Social Media Marketing plan, and offer to publish the first Pin now instead. When the remaining quota is below eight, plan only as many Pins as it allows.
- Show all the Pins with their images, titles 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 Pinterest in Social Media Marketing: follow STEP 4c of that recipe, then continue.

## 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: Pinterest Catalogs, Social Media Marketing. Say "customers", never "shoppers" or "users". No API names, field names or error codes.
- **Every approval names the exact change** and gives a way to say no. The Pins 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 follower count, or what Pinterest approved.
- Never send a Pin 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.

## Common mistakes

| Mistake | Fix |
|---|---|
| Telling the owner Pinterest approved or rejected a product | The check grades Pinterest's rules on Wix's side; no API reads Pinterest's verdict |
| Trying to connect the channel or read whether it's connected | No API exists; give the sales channels page link |
| A Pin with no `link`, or a link to the home page | Link each Pin to its product's `url.url` |
| Using a board other than the account's | Use `pinterest.board.id` from the account, as the social-post recipe's STEP 4b shows |
| 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 |
| Passing a product whose description is the template's placeholder | "I'm a product description…" counts as no description |