Sales channel under price rule configuration using Admin API

Shopify Partner
2 0 0

Hey, I am using my internal service to create price rule and discounts automatically on events basis in the shopify using the admin API. However I am not able to use created discounts on any other sales channel apart from shopify web.

There is no sales channel selected under price rule configuration, I want to allow specific channels to use created discount codes but I am not able to configure the same from the admin rest endpoint. Please let us know how can we configure price rules to allow specific sales channel apart from manual configuration.


Screenshot 2022-11-09 at 6.59.30 PM.png

Replies 2 (2)

Shopify Staff (Retired)
22 3 2

Hi @sroshan106!


Because Sales Channels are also just apps and because being able to see what apps a merchant has installed is not something that we would surface through a public API, there is no Sales Channel field for the PriceRule resource. Any discount or pricerule made through the API will be for Online store only.

Mike M (mikerowave) | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know!
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit or the Shopify Web Design and Development Blog

Shopify Partner
2 0 0

Hey @mikerowave 

Thanks for your reply,I agree with you that we should not expose other apps information, however I think there should be option to atleast allow all sales channel by default or some configuration if possible.