- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
generateProductCsvStep - Medusa Core Workflows Reference
This documentation provides a reference to the generateProductCsvStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step generates a CSV file that exports products. The CSV file is created and stored using the registered File Module Provider.
Example#
Input#
GenerateProductCsvStepInput
GenerateProductCsvStepInputThe products to export.
GenerateProductCsvStepInput
GenerateProductCsvStepInputvariants
null | AdminProductVariant[]The product's variants.
variants
null | AdminProductVariant[]type
null | AdminProductTypeThe product's type.
type
null | AdminProductTypeoptions
null | AdminProductOption[]The product's options.
options
null | AdminProductOption[]images
null | AdminProductImage[]The product's images.
images
null | AdminProductImage[]id
stringThe product's ID.
id
stringtitle
stringThe product's title.
title
stringhandle
stringThe product's handle.
handle
stringsubtitle
null | stringThe product's subtitle.
subtitle
null | stringdescription
null | stringThe product's description.
description
null | stringis_giftcard
booleanWhether the product is a gift card.
is_giftcard
booleanstatus
ProductStatusThe product's status.
status
ProductStatusthumbnail
null | stringThe product's thumbnail.
thumbnail
null | stringwidth
null | numberThe product's width.
width
null | numberweight
null | numberThe product's weight.
weight
null | numberlength
null | numberThe product's length.
length
null | numberheight
null | numberThe product's height.
height
null | numberorigin_country
null | stringThe product's origin country.
origin_country
null | stringhs_code
null | stringThe product's HS code.
hs_code
null | stringmid_code
null | stringThe product's MID code.
mid_code
null | stringmaterial
null | stringThe product's material.
material
null | stringcollection_id
null | stringThe ID of the associated product collection.
collection_id
null | stringtype_id
null | stringThe ID of the associated product type.
type_id
null | stringdiscountable
booleanWhether the product is discountable.
discountable
booleanexternal_id
null | stringThe ID of the product in external systems.
external_id
null | stringcreated_at
null | stringThe date the product was created.
created_at
null | stringupdated_at
null | stringThe date the product was update.
updated_at
null | stringdeleted_at
null | stringThe date the product was deleted.
deleted_at
null | stringThe product's collection.
The product's categories.
The sales channels that the product is available in.
The product's tags.
metadata
null | Record<string, unknown>OptionalKey-value pairs of custom data.
metadata
null | Record<string, unknown>OptionalOutput#
GenerateProductCsvStepOutput
GenerateProductCsvStepOutputThe export's details.
GenerateProductCsvStepOutput
GenerateProductCsvStepOutputid
stringThe ID of the generated file as returned by the File Module Provider.
id
stringfilename
stringThe name of the generated file as returned by the File Module Provider.
filename
stringWas this page helpful?