Loading...
Was this page helpful?
This documentation provides a reference to the createProductVariantsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more product variants.
CreateProductVariantDTO[]
CreateProductVariantDTO[]title
stringproduct_id
stringOptionalsku
stringOptionalbarcode
stringOptionalean
stringOptionalupc
stringOptionalallow_backorder
booleanOptionalmanage_inventory
booleanOptionalmanage_inventory
is enabled.hs_code
stringOptionalorigin_country
stringOptionalmid_code
stringOptionalmaterial
stringOptionalweight
numberOptionallength
numberOptionalheight
numberOptionalwidth
numberOptionaloptions
Record<string, string>OptionalProductVariantDTO[]
ProductVariantDTO[]id
stringtitle
stringsku
null | stringbarcode
null | stringean
null | stringupc
null | stringallow_backorder
booleanmanage_inventory
booleanrequires_shipping
booleanhs_code
null | stringorigin_country
null | stringmid_code
null | stringmaterial
null | stringweight
null | numberlength
null | numberheight
null | numberwidth
null | numbermetadata
null | Record<string, unknown>product_id
null | stringcreated_at
string | Dateupdated_at
string | Datedeleted_at
string | Datevariant_rank
null | numberOptional