I am creating an app for my client. The client already has website set up on Shopify. I want to fetch the list of discount codes and price rules that are being used on website.
The Shopify dev documentation mentions that access scopes are required for the same. However, the access scope for discount and price rules is not available explicitly anywhere in the Shopify partners account.
How to get these access scopes which help in fetching discount and price rules using the APIs given in the Shopify API documentation.
When I go to the app setup option in the SHopify partners account, I have an option to request access scopes to read all orders.
I can further request access for
Subscriptions
Payment
Checkout
Post Purchase
But there is no option to request access for Discounts/Price rules. And this is where i am getting confused.
I am using the REST API. And I want to fetch the discounts and price rule. I have shared the problem i am facing above. Kindly suggest what next steps should be taken so that I will be able to fetch price rules/discounts.