Loading...
Was this page helpful?
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 CodeWorkflow hook
Step conditioned by when
View step details
CreateInventoryItemsWorkflowInput
CreateInventoryItemsWorkflowInputitems
CreateInventoryItemInput & object[]InventoryItemDTO[]
InventoryItemDTO[]id
stringrequires_shipping
booleancreated_at
string | Dateupdated_at
string | Datedeleted_at
null | string | Datesku
null | stringOptionalorigin_country
null | stringOptionalhs_code
null | stringOptionalmid_code
null | stringOptionalmaterial
null | stringOptionalweight
null | numberOptionallength
null | numberOptionalheight
null | numberOptionalwidth
null | numberOptionaltitle
null | stringOptionaldescription
null | stringOptionalthumbnail
null | stringOptionalmetadata
null | Record<string, unknown>Optional