Channel
A Channel represents a distinct sales channel and configures defaults for that channel.
- Set a channel-specific currency, language, tax and shipping defaults
- Assign only specific Products to the Channel (with Channel-specific prices)
- Create Administrator roles limited to the Channel
- Assign only specific StockLocations, Assets, Facets, Collections, Promotions, ShippingMethods & PaymentMethods to the Channel
- Have Orders and Customers associated with specific Channels.
In Vendure, Channels have a number of different uses, such as:
- Multi-region stores, where there is a distinct website for each territory with its own available inventory, pricing, tax and shipping rules.
- Creating distinct rules and inventory for different sales channels such as Amazon.
- Specialized stores offering a subset of the main inventory.
- Implementing multi-vendor marketplace applications.
- Extends:
VendureEntity
constructor
method
(input?: DeepPartial<Channel>) => Channelcode
property
stringThe name of the Channel. For example "US Webstore" or "German Webstore".
token
property
stringA unique token (string) used to identify the Channel in the vendure-token header of the
GraphQL API requests.
description
property
stringseller
property
SellersellerId
property
IDdefaultLanguageCode
property
LanguageCodeavailableLanguageCodes
property
LanguageCode[]defaultTaxZone
property
ZonedefaultShippingZone
property
ZonedefaultCurrencyCode
property
CurrencyCodeavailableCurrencyCodes
property
CurrencyCode[]trackInventory
property
booleanSpecifies the default value for inventory tracking for ProductVariants. Can be overridden per ProductVariant, but this value determines the default if not otherwise specified.
outOfStockThreshold
property
numberSpecifies the value of stockOnHand at which a given ProductVariant is considered out of stock.
customFields
property
CustomChannelFieldspricesIncludeTax
property
booleanproducts
property
Product[]productVariants
property
ProductVariant[]facetValues
property
FacetValue[]facets
property
Facet[]collections
property
Collection[]promotions
property
Promotion[]paymentMethods
property
PaymentMethod[]shippingMethods
property
ShippingMethod[]customers
property
Customer[]roles
property
Role[]stockLocations
property
StockLocation[]Was this chapter helpful?