- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateInventoryLevelsStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateInventoryLevelsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates one or more inventory levels.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { updateInventoryLevelsStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = updateInventoryLevelsStep({8 "inventory_item_id": "{value}",9 "location_id": "{value}"10 })11 }12)
Input#
UpdateInventoryLevelsStepInput
UpdateInventoryLevelsStepInputThe data to update the inventory levels.
UpdateInventoryLevelsStepInput
UpdateInventoryLevelsStepInputinventory_item_id
stringThe ID of the associated inventory item.
inventory_item_id
stringlocation_id
stringThe ID of the associated location.
location_id
stringid
stringOptionalID of the inventory level to update
id
stringOptionalstocked_quantity
numberOptionalThe stocked quantity of the associated inventory item in the associated location.
stocked_quantity
numberOptionalincoming_quantity
numberOptionalThe incoming quantity of the associated inventory item in the associated location.
incoming_quantity
numberOptionalOutput#
InventoryLevelDTO[]
InventoryLevelDTO[]
InventoryLevelDTO[]
InventoryLevelDTO[]InventoryLevelDTO
InventoryLevelDTOThe inventory level details.
InventoryLevelDTO
InventoryLevelDTOWas this page helpful?