- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createInventoryItemsStep - Medusa Core Workflows Reference
This documentation provides a reference to the createInventoryItemsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more inventory items.
Input#
CreateInventoryItemsStepInput
CreateInventoryItemsStepInputThe data to create the inventory items.
CreateInventoryItemsStepInput
CreateInventoryItemsStepInputsku
null | stringOptionalThe SKU of the inventory item.
sku
null | stringOptionalorigin_country
null | stringOptionalThe origin country of the inventory item.
origin_country
null | stringOptionalmid_code
null | stringOptionalThe MID code of the inventory item.
mid_code
null | stringOptionalmaterial
null | stringOptionalThe material of the inventory item.
material
null | stringOptionalweight
null | numberOptionalThe weight of the inventory item.
weight
null | numberOptionallength
null | numberOptionalThe length of the inventory item.
length
null | numberOptionalheight
null | numberOptionalThe height of the inventory item.
height
null | numberOptionalwidth
null | numberOptionalThe width of the inventory item.
width
null | numberOptionaltitle
null | stringOptionalThe title of the inventory item.
title
null | stringOptionaldescription
null | stringOptionalThe description of the inventory item.
description
null | stringOptionalthumbnail
null | stringOptionalThe thumbnail of the inventory item.
thumbnail
null | stringOptionalmetadata
null | Record<string, unknown>OptionalHolds custom data in key-value pairs.
metadata
null | Record<string, unknown>Optionalhs_code
null | stringOptionalThe HS code of the inventory item.
hs_code
null | stringOptionalrequires_shipping
booleanOptionalWhether the inventory item requires shipping.
requires_shipping
booleanOptionalOutput#
InventoryItemDTO[]
InventoryItemDTO[]
InventoryItemDTO[]
InventoryItemDTO[]InventoryItemDTO
InventoryItemDTOThe inventory item details.
InventoryItemDTO
InventoryItemDTOWas this page helpful?