This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates an inventory item.
The combination of variantId
and locationId
is unique.
function createInventoryItem(
inventoryItem: InventoryItem,
): Promise<InventoryItem>;
Inventory item to create.
import { inventoryItemsV3 } from "@wix/stores";
async function createInventoryItem(inventoryItem) {
const response = await inventoryItemsV3.createInventoryItem(inventoryItem);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.