Loading...
Was this page helpful?
This documentation provides a reference to the createProductsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more products.
CreateProductDTO[]
CreateProductDTO[]title
stringid
stringOptionalsubtitle
stringOptionaldescription
stringOptionalis_giftcard
booleanOptionaldiscountable
booleanOptionalthumbnail
stringOptionalhandle
stringOptionalhandle
attribute of the product is set to the slug version of the title
attribute.external_id
stringOptionaltype_id
stringOptionalcollection_id
stringOptionaltag_ids
string[]Optionalcategory_ids
string[]Optionalwidth
numberOptionalheight
numberOptionallength
numberOptionalweight
numberOptionalorigin_country
stringOptionalhs_code
stringOptionalmaterial
stringOptionalmid_code
stringOptionalProductDTO[]
ProductDTO[]id
stringtitle
stringhandle
stringsubtitle
null | stringdescription
null | stringis_giftcard
booleanstatus
ProductStatusthumbnail
null | stringwidth
null | numberweight
null | numberlength
null | numberheight
null | numberorigin_country
null | stringhs_code
null | stringmid_code
null | stringmaterial
null | stringcollection_id
null | stringtype_id
null | stringexternal_id
null | stringcreated_at
string | Dateupdated_at
string | Datedeleted_at
string | Datediscountable
booleanOptional