I have two Apps one i use for local development and one for live testing. i have added scopes “read_discounts” and “write_discounts” in .env file which is common for both of my projects. somehow on my local environment, i am able to create discounts with graphql mutation and no any error is coming but when i push the code to the server and try to make discount code, it says -
‘Access denied for discountCodeBasicCreate field. Required access: Apps must have write_discounts access scope.’
i have also tried with uninstalling and installing the app many times but nothing worked.
Please Reply if anyone has solved this issue.