createInventoryLevelsStep - Medusa Core Workflows Reference
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)
Input#
CreateInventoryLevelsStepInput
CreateInventoryLevelsStepInputThe data to create the inventory levels.
CreateInventoryLevelsStepInput
CreateInventoryLevelsStepInputinventory_item_id
stringThe ID of the associated inventory item.
inventory_item_id
stringlocation_id
stringThe ID of the associated location.
location_id
stringstocked_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[]id
stringThe ID of the inventory level.
id
stringinventory_item_id
stringThe associated inventory item's ID.
inventory_item_id
stringlocation_id
stringThe associated location's ID.
location_id
stringstocked_quantity
numberThe stocked quantity of the inventory level.
stocked_quantity
numberreserved_quantity
numberThe reserved quantity of the inventory level.
reserved_quantity
numberincoming_quantity
numberThe incoming quantity of the inventory level.
incoming_quantity
numberavailable_quantity
numberThe available quantity of the inventory level.
available_quantity
numbermetadata
null | Record<string, unknown>Holds custom data in key-value pairs.
metadata
null | Record<string, unknown>created_at
string | DateThe creation date of the inventory level.
created_at
string | Dateupdated_at
string | DateThe update date of the inventory level.
updated_at
string | Datedeleted_at
null | string | DateThe deletion date of the inventory level.
deleted_at
null | string | DateWas this page helpful?