About wix-stores-versioning
A skill for developers working with Wix Stores APIs across its incompatible V1 and V3 catalog versions. It emphasizes checking a site's version before operations and consulting API documentation for method permissions.
Key features
- 01Check catalog version before operations
- 02Handle V1 and V3 API differences
- 03Consult API documentation and permissions
- 04Account for webhooks from both versions
Use cases
- 01Choose the correct product API for a site
- 02Adapt field handling between catalog versions
- 03Verify permissions before calling an API
MCP support
It directs developers to use Wix MCP tools to search SDK documentation and read full API articles, including required permissions.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ wix/ skills --skill wix-stores-versioningAfter installing, type/wix-stores-versioningin Claude Code to confirm it loaded.
Details
From the project READMEWix Stores Catalog Versioning
Wix Stores has two catalog versions that are NOT backwards compatible:
| Version | Status |
|---|---|
| V1_CATALOG | Legacy (e.g., products, inventory) |
| V3_CATALOG | Current (e.g., productsV3, inventoryItemsV3) |
V3 modules typically have a V3 suffix. Use Wix MCP to search for the specific module you need.
Core Pattern
Always check catalog version before any Stores operation:
import { catalogVersioning, products, productsV3 } from '@wix/stores';
async function getProducts() {
const { catalogVersion } = await catalogVersioning.getCatalogVersion();
if (catalogVersion === 'STORES_NOT_INSTALLED') {
return [];
}
if (catalogVersion === 'V3_CATALOG') {
// Use V3 module
const result = await productsV3.queryProducts().limit(10).find();
return result.items;
}
// Use V1 module
const result = await products.queryProducts().limit(10).find();
return result.items;
}
Required Permissions
Always look up permissions for each API method you use:
- Search for the method using
SearchWixSDKDocumentation - Read the full docs with
ReadFullDocsArticleto get the required permissions - Return the required permissions to the user
Key Rules
- Call
getCatalogVersion()at the start of each flow - Catalog version is permanent per site (won't downgrade from V3 to V1)
- V1 and V3 have different payload structures — field names, nesting, and types differ
- Subscribe to both V1 and V3 webhooks to handle all sites
Finding SDK Details
Use MCP tools to search for version-specific documentation:
SearchWixSDKDocumentation- Search for methods and permissionsReadFullDocsArticle- Read full documentation when needed
Search queries (results show both V1 and V3 namespaces):
"getCatalogVersion"→ permissions and usage"createProduct"→productsV3(V3) andproducts(V1)"queryProducts"→productsV3(V3) andproducts(V1)"getInventoryItem"→inventoryItemsV3(V3) andinventory(V1)
Important: After finding the method, use ReadFullDocsArticle to get the full documentation including required permissions. Return them to the user.
API Differences Reference
V1 and V3 have different field structures. For field mapping, see: Catalog V1 to V3 Migration Guide