Set Wholesale Sales Channels
PUT/api/v2/product-lifecycle/channels/wholesale
Choose which sales channels are wholesale. The list replaces the current marks: listed channels become wholesale, every other channel becomes retail. Channels that are always wholesale (B2B portal, EDI, NuORDER, Faire, SPS Commerce) stay wholesale whether or not they are listed. Products in a state whose channel_quantity is wholesale_only are recalculated on every channel that changed. The same marks drive the Retail / Wholesale split in the profitability report.
products:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Body:
- sales_channel_ids (required, array of sales channel ids, may be empty)
Response fields:
- sales_channels: every sales channel [{id, name, integration, integration_instance_id, is_wholesale (bool), wholesale_source (built_in: B2B portal, EDI, NuORDER, Faire and SPS Commerce are always wholesale; flag: marked wholesale by the merchant; null: retail)}]. Products in a state whose channel_quantity is wholesale_only publish 0 on the retail ones.
Requires a Bearer token with the products read/write scope and the sales_channels.update permission.
Request
Responses
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.