parseProductCsvStep - Medusa Core Workflows Reference
This documentation provides a reference to the parseProductCsvStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step parses a CSV file holding products to import, returning the products as objects that can be imported.
Example#
Input#
string
string
string
stringstring
string
string
stringOutput#
AdminCreateProduct[]
AdminCreateProduct[]
AdminCreateProduct[]
AdminCreateProduct[]title
stringThe product's title.
title
stringoptions
AdminCreateProductOption[]The product's options.
options
AdminCreateProductOption[]subtitle
stringOptionalThe product's subtitle.
subtitle
stringOptionaldescription
stringOptionalThe product's description.
description
stringOptionalis_giftcard
booleanOptionalWhether the product is a gift card.
is_giftcard
booleanOptionaldiscountable
booleanOptionalWhether discounts can be applied on the product.
discountable
booleanOptionalimages
object[]OptionalThe product's images.
images
object[]Optionalthumbnail
stringOptionalThe product's thumbnail URL.
thumbnail
stringOptionalhandle
stringOptionalThe product's handle.
handle
stringOptionalThe product's status.
type_id
stringOptionalThe ID of the product's type.
type_id
stringOptionalexternal_id
stringOptionalThe ID of the product in an external or third-party system.
external_id
stringOptionalcollection_id
stringOptionalThe ID of the product's collection.
collection_id
stringOptionalshipping_profile_id
stringOptionalThe ID of the product's shipping profile.
shipping_profile_id
stringOptionalcategories
object[]OptionalThe product's categories.
categories
object[]Optionaltags
object[]OptionalThe product's tags.
tags
object[]OptionalThe product's variants.
sales_channels
object[]OptionalThe sales channels that the product is available in.
sales_channels
object[]Optionalweight
numberOptionalThe product's weight.
weight
numberOptionallength
numberOptionalThe product's length.
length
numberOptionalheight
numberOptionalThe product's height.
height
numberOptionalwidth
numberOptionalThe product's width.
width
numberOptionalhs_code
stringOptionalThe product's HS code.
hs_code
stringOptionalmid_code
stringOptionalThe product's MID code.
mid_code
stringOptionalorigin_country
stringOptionalThe product's origin country.
origin_country
stringOptionalmaterial
stringOptionalThe product's material.
material
stringOptionalmetadata
Record<string, unknown>OptionalKey-value pairs of custom data.
metadata
Record<string, unknown>OptionalWas this page helpful?