AdminSalesChannelsResource
admin/sales-channels.AdminSalesChannelsResource
Methods
addLocation
addLocation(salesChannelId
, payload
, customHeaders?
): ResponsePromise
<AdminSalesChannelsRes
>
Add a location to a sales channel
This feature is under development and may change in the future.
To use this feature please enable featureflag sales_channels
in your medusa backend project.
Parameters
salesChannelId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminSalesChannelsRes
>
the Medusa SalesChannel
Description
Add a stock location to a SalesChannel
addProducts
addProducts(salesChannelId
, payload
, customHeaders?
): ResponsePromise
<AdminSalesChannelsRes
>
Add products to a sales channel
This feature is under development and may change in the future.
To use this feature please enable featureflag sales_channels
in your medusa backend project.
Parameters
salesChannelId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminSalesChannelsRes
>
a medusa sales channel
Description
Add products to a sales channel
create
create(payload
, customHeaders?
): ResponsePromise
<AdminSalesChannelsRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminSalesChannelsRes
>
delete
delete(salesChannelId
, customHeaders?
): ResponsePromise
<DeleteResponse
>
Delete a sales channel
This feature is under development and may change in the future.
To use this feature please enable featureflag sales_channels
in your medusa backend project.
Parameters
salesChannelId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<DeleteResponse
>
an deletion result
Description
gets a sales channel
list
list(query?
, customHeaders?
): ResponsePromise
<AdminSalesChannelsListRes
>
Retrieve a list of sales channels
This feature is under development and may change in the future.
To use this feature please enable featureflag sales_channels
in your medusa backend project.
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminSalesChannelsListRes
>
the list of sales channel as well as the pagination properties
Description
Retrieve a list of sales channels
removeLocation
removeLocation(salesChannelId
, payload
, customHeaders?
): ResponsePromise
<AdminSalesChannelsRes
>
remove a location from a sales channel
This feature is under development and may change in the future.
To use this feature please enable featureflag sales_channels
in your medusa backend project.
Parameters
salesChannelId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminSalesChannelsRes
>
an deletion result
Description
Remove a stock location from a SalesChannel
removeProducts
removeProducts(salesChannelId
, payload
, customHeaders?
): ResponsePromise
<AdminSalesChannelsRes
>
Remove products from a sales channel
This feature is under development and may change in the future.
To use this feature please enable featureflag sales_channels
in your medusa backend project.
Parameters
salesChannelId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminSalesChannelsRes
>
a medusa sales channel
Description
Remove products from a sales channel
retrieve
retrieve(salesChannelId
, customHeaders?
): ResponsePromise
<AdminSalesChannelsRes
>
retrieve a sales channel
This feature is under development and may change in the future.
To use this feature please enable featureflag sales_channels
in your medusa backend project.
Parameters
salesChannelId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminSalesChannelsRes
>
a medusa sales channel
Description
gets a sales channel
update
update(salesChannelId
, payload
, customHeaders?
): ResponsePromise
<AdminSalesChannelsRes
>
update a sales channel
This feature is under development and may change in the future.
To use this feature please enable featureflag sales_channels
in your medusa backend project.
Parameters
salesChannelId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminSalesChannelsRes
>
the updated medusa sales channel
Description
updates a sales channel