Scope undefined for API access: discounts_next

New Member
6 0 0

I have given complete scope to my app but i'm getting error while process below api request

'https://' . $API_KEY . ':' . $SECRET . '@' . $STORE_URL . '/admin/discounts.json'

[errors] => Scope undefined for API access: discounts_next. Valid scopes: admin_notifications, all_orders, analytics, analytics_overviews, apps, capital, channels, checkout_settings, checkouts, content, customer_tags, customers, disputes, domains, draft_orders, fulfillments, gdpr_data_request, gift_card_adjustments, gift_cards, home, images, inventory, locations, marketing_events, meta_tags, mobile_payments, mobile_platform_applications, notifications, online_store, online_store_navigation, online_store_pages, online_store_preferences, orders, payment_gateways, payment_settings, price_rules, product_engagements, product_listings, product_tags, products, publications, reports, resource_feedbacks, script_tags, scripts, shipping, shopify_payments, shopify_payments_accounts, shopify_payments_balance_debits, shopify_payments_bank_accounts, shopify_payments_bank_accounts_sensitive, shopify_payments_disputes, shopify_payments_legal_entities, shopify_payments_payouts, social_network_accounts, taxes, themes, tracking_pixels, translations, and users

Any help would be highly appreciated.

0 Likes
Highlighted
Shopify Partner
1588 121 329

Hi,

 

Are you sure the endpoint is correct? I am not aware of a /admin/discounts.json API endpoint. There are price_rules and discount_codes AFAIK.

 

Best wishes!

I turn coffee in to code - since 1998
0 Likes
Shopify Partner
1588 121 329

Hi, are you sure that the /admin/discounts.json endpoint is correct? I am not aware of such and would have used discount_codes and price_rules APIs.

 

Best wishes!

I turn coffee in to code - since 1998
0 Likes
New Member
6 0 0

how to recheck endpoints in my running app ?

0 Likes