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[]id
stringThe ID of the inventory item.
id
stringrequires_shipping
booleanWhether the inventory item requires shipping.
requires_shipping
booleancreated_at
string | DateThe creation date of the inventory item.
created_at
string | Dateupdated_at
string | DateThe update date of the inventory item.
updated_at
string | Datedeleted_at
null | string | DateThe deletion date of the inventory item.
deleted_at
null | string | Datesku
null | stringOptionalThe SKU of the inventory item.
sku
null | stringOptionalorigin_country
null | stringOptionalThe origin country of the inventory item.
origin_country
null | stringOptionalhs_code
null | stringOptionalThe HS code of the inventory item.
hs_code
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>OptionalWas this page helpful?