REST price_rule to Graphql discount codes

I have been trying to migrate my app over to using the graphql discountCodeBasicCreate instead of using the rest api to create price rules.

In code terms, this is relatively straightforward, however what is very frustrating is the requirement for different scopes. We’ve been asking for write_price_rules for nearly eight years, but for the graphql version we need write_discountsThe acceptance screen for the merchant looks no different, they have always allowed us to create discounts on their behalf.

As it stands, just over half of our merchants have accepted the new scope, but as I understand it the REST price_rule endpoints will stop working soon.

Is there no other option here other than to hope that all our merchants accept the new scope? I read that with the new write_app_proxy scope there was potential to back-fill the scope (App Proxy, write_app_proxy scope and old merchants - #4 by Liam-Shopify), can the same approach be adopted here?

Hey Alex,

In certain cases we do have backfill processes but this does not occur for all migrations or deprecations. Which REST operation specifically were you using in your app that relies on the write_price_rules scope?

Thanks, Liam.

When I built the app about 8 years ago the way to generate a discount code was to use the rest api to create a price rule and then add a discount code to it. We’ve operated with that for many years - PriceRule

These are now being removed at some point and we are being advised to use discountCodeBasicCreate, which isn’t an issue as such, but the scope requirements are different, albeit the merchant has already accepted a scope that from their point of view allowed us to create discount code.

My worry is that we don’t get all our merchants to accept that new scope before the endpoints are removed.