Skip to main content
Skip to main content

updateInventoryLevels - Inventory Next Module Reference

This documentation provides a reference to the updateInventoryLevels method. This belongs to the Inventory Next Module.

updateInventoryLevels(updates, context?): Promise<InventoryLevelDTO[]>

This method updates existing inventory levels.

Example

const inventoryLevels =
await inventoryModuleService.updateInventoryLevels([
{
inventory_item_id: "iitem_123",
location_id: "loc_123",
id: "ilev_123",
stocked_quantity: 20,
},
])

Parameters

The list of The attributes to update in an inventory level. The inventory level is identified by the IDs of its associated inventory item and location.
contextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<InventoryLevelDTO[]>Required
The updated inventory levels.

updateInventoryLevels(updates, context?): Promise<InventoryLevelDTO>

This method updates an existing inventory level.

Example

const inventoryLevel =
await inventoryModuleService.updateInventoryLevels({
inventory_item_id: "iitem_123",
location_id: "loc_123",
stocked_quantity: 20,
})

Parameters

The attributes to update in an inventory level. The inventory level is identified by the IDs of its associated inventory item and location.
contextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<InventoryLevelDTO>Required
The updated inventory level.
Was this section helpful?