bulkUpdateProductsWithInventory( )


Developer Preview

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: 100
  • modifiers: 100
  • infoSections: 100
  • variantsInfo.variants: 1000
Authentication
  • When developing websites or building an app with Blocks, this method may require elevated permissions, depending on the identity of the user calling it and the calling user's permissions.
  • When building apps without Blocks or for headless projects, you can only call this method directly when authenticated as a Wix app or Wix user identity. When authenticated as a different identity, you can call this method using elevation.
  • Elevation permits users to call methods they typically cannot access. Therefore, you should only use it intentionally and securely.
Permissions
Manage Stores - all permissions
Manage Products
Manage v3 catalog
Manage Stores
Product write in v3 catalog
Manage Restaurants - all permissions
Inventory write in v3 catalog
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
productsArray<MaskedProductWithInventory>Required

List of products to update.


optionsBulkUpdateProductsWithInventoryOptions
Returns
Return Type:Promise<BulkUpdateProductsWithInventoryResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?