Skip to main content

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.

Required scope: products:write

Grant 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​

OK

Response Headers
    Content-Type