bulkCreateProductsWithInventory( )


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: 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
Product write in v3 catalog
Inventory write in v3 catalog
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
productsArray<ProductWithInventory>Required

List of products to create with inventory.


optionsBulkCreateProductsWithInventoryOptions
Returns
Return Type:Promise<BulkCreateProductsWithInventoryResponse>
Errors
400Invalid Argument

There are 11 errors with this status code.

404Not Found

There are 3 errors with this status code.

428Failed Precondition

There are 2 errors with this status code.

500Internal

There are 3 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?