To use the ProductsV3 API, install the @wix/stores
package using npm or Yarn:
or
Then import { productsV3 }
from @wix/stores
:
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Adds info sections to multiple products.
List of product IDs and revisions.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Adds info sections to multiple products, given the provided filter and search expression.
Filter object.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Adds multiple products, given the provided filter and search expression, to up to 5 categories.
Learn more about the Categories API.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Adjusts the price and cost of multiple variants, given the provided filter and search expression.
Only the following variant fields can be increased/decreased by amount or percentage:
basePrice
salePrice
cost
salePriceFromBasePrice
Filter object.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates up to 100 products.
Note: The following limits apply to the total number of creatable entities in a single request. For example, you can create 10 products with up to 10 options for each product (10 x 10 = 100), or one product with 100 options. Alternatively, you can create 100 products with up to 10 variants in each (100 x 10 = 1000), or one product with 1000 variants.
options
: 100modifiers
: 100infoSections
: 100variantsInfo.variants
: 1000
List of products to create.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates up to 100 products, and can create the products' inventories in the variants' default locations.
Note: The following limits apply to the total number of creatable entities in a single request. For example, you can create 10 products with up to 10 options for each product (10 x 10 = 100), or one product with 100 options. Alternatively, you can create 100 products with up to 10 variants in each (100 x 10 = 1000), or one product with 1000 variants.
options
: 100modifiers
: 100infoSections
: 100variantsInfo.variants
: 1000
List of products to create with inventory.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Deletes multiple products.
IDs of products to delete.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Delete multiple products, given the provided filter.
Filter object.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Removes info sections from multiple products.
List of product IDs and revisions.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Removes info sections from multiple products, given the provided filter and search expression.
Filter object.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Removes multiple products, given the provided filter and search expression, from up to 5 categories.
Learn more about the Categories API.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates a variant of multiple products, given the provided filter and search expression.
Only the following variant fields can be updated:
visible
price
revenueDetails.cost
physicalOptions
Filter object.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates up to 100 products.
Note: The following limits apply to the total number of updatable entities in a single request. For example, you can update 10 products with up to 10 options for each product (10 x 10 = 100), or one product with 100 options. Alternatively, you can update 100 products with up to 10 variants in each (100 x 10 = 1000), or one product with 1000 variants.
options
: 100modifiers
: 100infoSections
: 100variantsInfo.variants
: 1000
List of products to update.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates multiple products, given the provided filter.
To update infoSections
, brand
or ribbon
fields, you must also pass their existing id
.
Note: The following fields cannot be updated with this endpoint:
slug
options
modifiers
variantsInfo
To update these fields, use Bulk Update Products.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates up to 100 products, and can update the products' inventories in the variants' default locations.
Note: The following limits apply to the total number of updatable entities in a single request. For example, you can update 10 products with up to 10 options for each product (10 x 10 = 100), or one product with 100 options. Alternatively, you can update 100 products with up to 10 variants in each (100 x 10 = 1000), or one product with 1000 variants.
options
: 100modifiers
: 100infoSections
: 100variantsInfo.variants
: 1000
List of products to update.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Counts the number of products that match the provided filtering.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a new product.
This endpoint also allows to add a ribbon, brand, info sections, options, and modifiers.
Product to create.
At least 1 variant must be provided and each variant must have relevant item in choices
field for every item in options
.
If options
is empty one default variant must be provided with empty choices
list.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a new product, and can create the product's inventory in the variants' default locations.
This endpoint also allows to add a ribbon, brand, info sections, options, and modifiers.
Product to create with inventory.
At least one variant must be provided and each variant must have relevant item in choices
field for every item in options
.
If options
is empty one default variant must be provided with empty choices
list.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Deletes a product and all its variants.
Product ID.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a product.
Note:
To retrieve a non-visible product (visible: false
), your app must have the required SCOPE.STORES.PRODUCT_READ_ADMIN
permission scope.
Product ID.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a product by slug.
Note:
To retrieve a non-visible product (visible: false
), your app must have the required SCOPE.STORES.PRODUCT_READ_ADMIN
permission scope.
Product slug.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.