- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createInventoryItemsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the createInventoryItemsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates one or more inventory items. It's used by the Create Inventory Item Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to create inventory items in your custom flows.
Source CodeExamples#
Steps#
Input#
CreateInventoryItemsWorkflowInput
CreateInventoryItemsWorkflowInputThe data to create the inventory items.
CreateInventoryItemsWorkflowInput
CreateInventoryItemsWorkflowInputitems
CreateInventoryItemInput & object[]The items to create.
items
CreateInventoryItemInput & object[]Output#
InventoryItemDTO[]
InventoryItemDTO[]
InventoryItemDTO[]
InventoryItemDTO[]InventoryItemDTO
InventoryItemDTOThe inventory item details.
InventoryItemDTO
InventoryItemDTOWas this page helpful?