Loading...
Was this page helpful?
This documentation provides a reference to the createInventoryLevelsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more inventory levels.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { createInventoryLevelsStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = createInventoryLevelsStep({8 "inventory_item_id": "{value}",9 "location_id": "{value}"10 })11 }12)
CreateInventoryLevelsStepInput
CreateInventoryLevelsStepInputinventory_item_id
stringlocation_id
stringstocked_quantity
numberOptionalincoming_quantity
numberOptionalInventoryLevelDTO[]
InventoryLevelDTO[]id
stringinventory_item_id
stringlocation_id
stringstocked_quantity
numberreserved_quantity
numberincoming_quantity
numberavailable_quantity
numbermetadata
null | Record<string, unknown>created_at
string | Dateupdated_at
string | Datedeleted_at
null | string | Date