ALWAYS use this recipe as the entry point when the user wants to create a product from an image. Do NOT skip version detection — even if you believe you know the catalog version from dynamic context.
This recipe determines the site's catalog version and then delegates to the version-specific "Create Product from Image" recipe.
Prerequisites:
https:// or http://).API Endpoint: GET https://www.wixapis.com/stores/v3/provision/version
No request body is needed — this is a GET request.
Expected response:
Possible values for catalogVersion:
| Value | Meaning |
|---|---|
V3_CATALOG | Site uses Catalog V3 |
V1_CATALOG | Site uses Catalog V1 |
STORES_NOT_INSTALLED | Wix Stores is not installed on this site |
Based on the catalogVersion value from Step 1, follow the appropriate path:
V3_CATALOG:Follow the Create Product from Image (Catalog V3) recipe.
This is a 2-step flow:
POST https://www.wixapis.com/stores/v3/productsV1_CATALOG:Follow the Create Product from Image (Catalog V1) recipe.
This is a 4-step flow:
POST https://www.wixapis.com/stores/v1/productsSTORES_NOT_INSTALLED:Do NOT proceed. Inform the user: "The Wix Stores app is not installed on this site. Please install Wix Stores first before creating products. You can install it using the Install Wix Apps recipe with the Stores app ID."
The API key may not have permission to access Stores APIs, or Stores may not be installed. Verify that the Stores app is installed on the site.
The response field is catalogVersion. Map it as follows:
V3_CATALOG → use V3 recipeV1_CATALOG → use V1 recipeSTORES_NOT_INSTALLED → do not proceed with product creation