This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Increments quantities of multiple inventory items by variant and location.
Note: trackQuantity
must be true
to allow for incrementing the quantity.
function bulkIncrementInventoryItemsByVariantAndLocation(
incrementData: Array<IncrementDataByVariantAndLocation>,
options: BulkIncrementInventoryItemsByVariantAndLocationOptions,
): Promise<BulkIncrementInventoryItemsByVariantAndLocationResponse>;
Variant and location IDs, as well as increment data.
import { inventoryItemsV3 } from "@wix/stores";
async function bulkIncrementInventoryItemsByVariantAndLocation(
incrementData,
options,
) {
const response =
await inventoryItemsV3.bulkIncrementInventoryItemsByVariantAndLocation(
incrementData,
options,
);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.