This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates multiple inventory items.
Each time an inventory item is updated, revision
increments by 1.
The current revision
must be passed when updating an inventory item.
This ensures you're working with the latest inventory item and prevents unintended overwrites.
function bulkUpdateInventoryItems(
inventoryItems: Array<MaskedInventoryItem>,
options: BulkUpdateInventoryItemsOptions,
): Promise<BulkUpdateInventoryItemsResponse>;
Inventory items to update.
import { inventoryItemsV3 } from "@wix/stores";
async function bulkUpdateInventoryItems(inventoryItems, options) {
const response = await inventoryItemsV3.bulkUpdateInventoryItems(
inventoryItems,
options,
);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.