- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createDefaultSalesChannelStep - Medusa Core Workflows Reference
This documentation provides a reference to the createDefaultSalesChannelStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates a default sales channel if none exist in the application. This is useful when creating seed scripts.
Example#
Input#
CreateDefaultSalesChannelStepInput
CreateDefaultSalesChannelStepInputThe data to create a default sales channel.
CreateDefaultSalesChannelStepInput
CreateDefaultSalesChannelStepInputThe default sales channel data.
Output#
SalesChannelDTO
SalesChannelDTOThe sales channel details.
SalesChannelDTO
SalesChannelDTOid
stringThe ID of the sales channel.
id
stringname
stringThe name of the sales channel.
name
stringdescription
null | stringThe description of the sales channel.
description
null | stringis_disabled
booleanWhether the sales channel is disabled.
is_disabled
booleanmetadata
null | Record<string, unknown>Holds custom data in key-value pairs.
metadata
null | Record<string, unknown>The locations of the sales channel.
Was this page helpful?