Skip to main content
Skip to main content

deleteInventoryItemLevelByLocationId - Inventory Next Module Reference

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

This method soft deletes inventory item's level by the associated location.

Example

await inventoryModuleService.deleteInventoryItemLevelByLocationId(
"loc_123"
)

Parameters

locationIdstring | string[]Required
The locations' IDs.
contextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<[object[], Record<string, unknown[]>]>Required
An array, where the first item is an array includes the soft-deleted inventory levels, and the second is an object that includes the IDs of related records that were soft-deleted.
Was this section helpful?