Waylo Commerce
Commerce

Sales channels

Where products are sold, and how publishable API keys pick the channel.

A sales channel is a place you sell: a storefront, a buyer portal, a mobile app, or an integration. One tenant can run several storefronts by giving each its own channel.

What a channel controls

Rule
ProductsA product is sold only in the channels it is added to. Store routes return only products in the request's channels.
StockA stock location serves only the channels linked to it. Availability counts only those locations.
Carts and ordersEvery cart and order belongs to exactly one channel.
Disabled channelsA cart can't be created in a disabled channel.

Publishable API keys

Every store request sends a publishable API key in x-publishable-api-key. The key decides which channels the request can see. Keys are not secret; they are meant to ship in browser code.

Key hasResult
No channelsThe cart gets the store's default sales channel.
One channelThe cart gets that channel.
Several channels400. Send sales_channel_id.
  • A sales_channel_id that isn't linked to the key fails with 400.
  • A revoked key stops working on every store route.
curl -X POST http://localhost:9000/store/carts \
  -H "x-publishable-api-key: pk_..." \
  -H "Content-Type: application/json" \
  -d '{ "region_id": "reg_...", "sales_channel_id": "sc_..." }'

Publishable keys only scope store requests. They grant no admin access. Admin and server integrations use a secret API key. See Authentication.

Admin routes

On this page