All skills
wix avatar

/wix-manage

@4895cc9 official
by Wix.comwix/skills33 stars
33

REST recipes to configure and manage a Wix site's business solutions — stores, bookings, payments, CMS, and more. Open the matching recipe for the exact endpoint, method, and payload before calling — never guess a Wix API, never write Wix dashboard URL from memory. Routes to: stores, bookings, get-paid, CMS, contacts, forms, media, app-installation, pricing-plans, restaurants, ricos rich-content, sites, blog, calendar, domains, events, site-properties, ecommerce, marketing, google-ads, google-business-profile, analytics, accessibility, seo, dashboard-navigation.

Use this Skill: https://skilld.dev/gh/wix/skills/wix-manage

This session only. Nothing lands on disk.

referencesstoresupdate-product-pre-order.md

≈1.4k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Update Product Pre-Order Information (Catalog V3)

This recipe outlines the steps to manage pre-orders for product variants, including enabling/disabling pre-orders, setting messages, and configuring limits.

Prerequisites

  • Wix Stores app installed
  • Product with variants already created
  • API access with stores permissions

Required APIs

  • Products Search API: REST
  • Query Inventory Items API: REST
  • Bulk Update Inventory Items API: REST
  • Update Inventory Item API: REST

Step 1: Find the Product and Get Variant Information

1.1 Search for the Product

Endpoint: POST https://www.wixapis.com/stores/v3/products/search

{
  "search": {
    "expression": "Product Name"
  }
}

1.2 Query Inventory Items for Variant Details

Use the productId from the search to get variant information:

Endpoint: POST https://www.wixapis.com/stores/v3/inventory-items/query

{
  "query": {
    "filter": {
      "productId": {
        "$in": ["<PRODUCT_ID>"]
      }
    }
  }
}

The response includes:

  • product.variantName - identifies each variant
  • inventoryItemId - needed for updates
  • revision - required for update operations
  • locationId - inventory location
  • Current preorderInfo settings

IMPORTANT NOTES:

  • I MUST get user input on which specific variant(s) to update
  • I MUST NEVER update all variants without explicit user selection
  • I MUST ask the user whether to enable or disable pre-orders for each variant
  • If enabling, I MUST get the pre-order message from the user
  • If setting a pre-order limit, I MUST ensure trackQuantity: true is set

Step 2: Update Pre-Order Information

Method A: Bulk Update (PREFERRED for multiple variants)

Use when applying the same pre-order settings to multiple variants:

Endpoint: POST https://www.wixapis.com/stores/v3/bulk/inventory-items/update

Request Body (Enable Pre-Order):

{
  "inventoryItems": [
    {
      "inventoryItem": {
        "id": "<inventoryItemId_variant1>",
        "revision": "<revision_as_integer>",
        "preorderInfo": {
          "enabled": true,
          "message": "Available for pre-order! Ships in 2 weeks."
        }
      }
    },
    {
      "inventoryItem": {
        "id": "<inventoryItemId_variant2>",
        "revision": "<revision_as_integer>",
        "preorderInfo": {
          "enabled": true,
          "message": "Available for pre-order! Ships in 2 weeks."
        }
      }
    }
  ],
  "returnEntity": true,
  "reason": "MANUAL"
}

Request Body (With Pre-Order Limit):

{
  "inventoryItems": [
    {
      "inventoryItem": {
        "id": "<inventoryItemId>",
        "revision": "<revision_as_integer>",
        "trackQuantity": true,
        "quantity": 100,
        "preorderInfo": {
          "enabled": true,
          "message": "Pre-order now!",
          "limit": 50
        }
      }
    }
  ],
  "returnEntity": true,
  "reason": "MANUAL"
}

IMPORTANT NOTES:

  • Pre-order limits ONLY work when trackQuantity: true
  • If variant wasn't tracking quantity, I MUST ask user for initial quantity
  • The revision field is required and must be an integer

Method B: Individual Update (Single variant or unique settings)

Endpoint: PATCH https://www.wixapis.com/stores/v3/inventory-items/{inventoryItemId}

Request Body (Enable Pre-Order):

{
  "inventoryItem": {
    "id": "<inventoryItemId>",
    "revision": "<revision_as_integer>",
    "preorderInfo": {
      "enabled": true,
      "message": "Coming soon! Pre-order today."
    }
  },
  "reason": "MANUAL"
}

Request Body (Disable Pre-Order):

{
  "inventoryItem": {
    "id": "<inventoryItemId>",
    "revision": "<revision_as_integer>",
    "preorderInfo": {
      "enabled": false,
      "limit": null
    }
  },
  "reason": "MANUAL"
}

Pre-Order Limit Behavior

When you set a preorderInfo.limit:

  • It specifies how many units can be pre-ordered after stock reaches zero
  • Example: 10 in stock + limit of 50 = customers can order up to 60 total (10 regular + 50 pre-order)

CRITICAL: Enabling Quantity Tracking

If setting a limit on a variant that wasn't tracking quantity:

  1. Inform the user: "trackQuantity will be enabled for this variant"
  2. Ask for initial quantity: "What initial stock quantity should I set?"
  3. Include both in update:
{
  "inventoryItem": {
    "id": "<inventoryItemId>",
    "revision": "<revision_as_integer>",
    "trackQuantity": true,
    "quantity": "<USER_PROVIDED_QUANTITY>",
    "preorderInfo": {
      "enabled": true,
      "message": "Pre-order message",
      "limit": 50
    }
  },
  "reason": "MANUAL"
}

Next Steps

After updating pre-order settings:

  • Confirm the changes with the user
  • Offer to update other products or variants
  • Consider updating product descriptions to mention pre-order availability

Source: SKILL.md on GitHub

1 warning1d4 checks · Risk SAFE
  • Gen Agent Trust Hub1d

    The wix-manage skill is an extensive collection of management recipes for Wix sites, covering business solutions such as eCommerce, Bookings, SEO, and site provisioning. It utilizes official Wix REST endpoints and incorporates robust safety patterns, including mandatory user confirmation for sensitive operations and careful validation of site data before mutation.

  • Socket1d

    No alerts

  • Snyk1d

    Risk: MEDIUM · 1 issue

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 4895cc9. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated yesterday
compatibility
Requires Wix REST API access (API key or OAuth).
  • wix
  • rest-api
  • ecommerce
  • bookings
  • cms
  • contacts
  • blog
  • domains
  • restaurants
  • site-configuration
  • api-integration

README badge

README badge for wix/skills/wix-manage

REST API operations for configuring Wix business solutions including stores, bookings, CMS, contacts, domains, and ecommerce. Routes to site setup, entity management (products, services, staff), bulk administrative operations, and server-to-server integrations across Wix's business app ecosystem.

Generated from the current SKILL.md.

Do I need API credentials to use these recipes?
Yes. The skill requires Wix REST API access via either an API key or OAuth token to execute any management operations.
Can I use these recipes to display data on my site frontend?
No. These recipes are for backend REST API operations only — site configuration, entity management, and administrative tasks. They do not cover frontend development or displaying data to users.
What business domains do these recipes cover?
The skill covers stores, bookings, payments, CMS, contacts, forms, media, apps, pricing plans, restaurants, rich content, sites, blogs, calendars, domains, and site properties.
Do these recipes handle OAuth authentication with external services like Google Calendar?
Yes. The external calendar integration recipe covers OAuth-based setup with Google Calendar, Microsoft Outlook, and Apple Calendar for bidirectional event sync.

Generated from the current SKILL.md. These answers refresh after source changes.