Shops > Sales Channels > salesChannelsCreate
Commerce APIShopsSales ChannelssalesChannelsCreate
salesChannelsCreate
POST:sales_channels.json

Description

Create one or multiple sales channels.

Permission bit: "sales_channels.create"

Topic: Sales Channels

Arguments

data: [SalesChannelCreate!]!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

enabled: Boolean

Whether this sales channel is enabled or not


name: String!

The name of the sales channel

Example: "Amazon Integration"

Valid when: name is not empty

Valid when: name's length doesn't exceed 250 characters


storefront: Boolean

Whether this sales channel can be used via storefront API or not


Result

[SalesChannel!]

Preview (typescript)

Loading module