Platform Release 14 July 2020

You can now add Product Distribution Channels to Stores. When querying ProductProjections, you can then use the query parameter storeProjection to remove all prices from the response payload that don’t correspond to the Channels set in the Store.

Setting Product Distribution Channels on Stores also affects cart line items. If a cart is bound to a store and the store has Product Distribution Channels set, then only prices from these channels (and prices not linked not any channel) are included in the product variant information of the line item. Additionally, the distributionChannel field on the cart used for the LineItem Price Selection can only be set to one of the channels set in the store.

To enable the configuration of product distribution channels in Stores, the following changes have been made:

Introduced the following changes to the GraphQL schema (in SDL format):

extend type Store {
  distributionChannels: [Channel!]!
  distributionChannelsRef: [Reference!]!
}

extend input StoreUpdateAction {
  setDistributionChannels: SetStoreDistributionChannels
  addDistributionChannel: AddStoreDistributionChannel
  removeDistributionChannel: RemoveStoreDistributionChannel
}

extend input CreateStore {
  distributionChannels: [ResourceIdentifierInput!]
}

input SetStoreDistributionChannels {
  distributionChannels: [ResourceIdentifierInput!]
}

input AddStoreDistributionChannel {
  distributionChannel: ResourceIdentifierInput!
}

input RemoveStoreDistributionChannel {
  distributionChannel: ResourceIdentifierInput!
}