-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"write_discounts" and "read_discounts" scopes not available? #286
Comments
@brianruff This is late, but... Two things:
Hope this helps. |
It looks like Shopify is getting away from using Price Rules and using the 'write_discounts' and 'read_discounts' scopes primarily. I can't seem to get these scopes added using phpclassic/php-shopify. (All other scopes are working for me).
Here's my code that is crashing once I add the 'discount' scopes:
\PHPShopify\ShopifySDK::config($config); $scopes = 'read_products,write_products,read_customers,read_discounts,write_discounts'; $accessToken = \PHPShopify\AuthHelper::createAuthRequest($scopes);
There's a note on this page about it. Does anybody know why the php-shopify is crashing with you added "write_discounts, read_discounts" scope?
https://shopify.dev/api/admin-rest/2023-01/resources/discountcode
The text was updated successfully, but these errors were encountered: