Skip to main content

Set Wholesale Channels

PUT 

/api/reporting/profitability/wholesale-channels

Marks which channels are wholesale. The list replaces the current marks: listed channels are marked, every other channel is unmarked. Built-in wholesale channels stay wholesale whether or not they are listed. Returns the channel list as List Profitability Report Channels does.

Required scope: reports:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Body: sales_channel_ids (array of sales channel ids, required, may be empty).

Authentication: Bearer token with the reports scope and permission to update sales channels. 422 when an id is not a sales channel.

Request​

Responses​

OK

Response Headers
    Content-Type