Skip to main content

Create a channel

Add a new channel to the platform. A channel represents a separate storefront or sales context (e.g. a B2B portal, a regional shop).

Mutation

mutation CreateChannel($input: ChannelCreateInput!) {
channelCreate(input: $input) {
channelId
name
catalogRootId
anonymousUserId
}
}

Variables

{
"input": {
"name": "Dealer Portal DE",
"descriptions": [
{ "language": "EN", "value": "German dealer portal" },
{ "language": "NL", "value": "Duits dealerportaal" }
],
"catalogRootId": 2050,
"anonymousUserId": 14551
}
}

Response

{
"data": {
"channelCreate": {
"channelId": 72,
"name": "Dealer Portal DE",
"catalogRootId": 2050,
"anonymousUserId": 14551
}
}
}

How it works

Only the name field is required. Use catalogRootId to control which part of the category tree is visible on the channel. The anonymousUserId sets the default user context for unauthenticated visitors, controlling which prices and product visibility rules apply. Use descriptions to provide localized display names.

See also