Skip to main content
Skip to main content

create - Sales Channel Module Reference

This documentation provides a reference to the create method. This belongs to the Sales Channel Module.

create(data, sharedContext?): Promise<SalesChannelDTO[]>

This method creates sales channels.

Example

const salesChannels = await salesChannelModuleService.create([
{
name: "B2B",
},
])

Parameters

dataCreateSalesChannelDTO[]Required
The sales channels to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<SalesChannelDTO[]>Required
The created sales channels.

create(data, sharedContext?): Promise<SalesChannelDTO>

This method creates a sales channel.

Example

const salesChannel = await salesChannelModuleService.create({
name: "B2B",
})

Parameters

The sales channel to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<SalesChannelDTO>Required
The created sales channel.
Was this section helpful?