Service eligibility and regional restrictions
PuppyIP serves only compliant overseas businesses and their authorized personnel. Proxy services are not available in mainland China. The service may only be used for lawful business activities outside mainland China. Use of this service within mainland China is prohibited.
Hosting a proxy IP or server overseas does not change these restrictions. The service must not be provided to end users in mainland China through relaying, forwarding, sharing or resale. Before use, read the Terms of Service.
Key Takeaways
- The announcement applies to every supported Admin API version.
- The check applies when you add a new discount code or enable automatic discounts on a draft that did not already accept them.
- Keeping or removing existing discounts still works.
- Check the app's access scope separately from the acting staff member's discount permission.
Identify the change that triggered the check
The rule applies to draftOrderCreate and draftOrderUpdate. On create, any nonempty discountCodes list or acceptAutomaticDiscounts set to true counts as adding a discount. On update, the check applies when the input adds a code the draft does not have or enables automatic discounts that were previously off.
Suppose the draft already has SAVE10. Editing its note while retaining SAVE10, or removing that code, will not trigger a refusal under this particular rule. Replacing it with a code that is not already on the draft counts as an addition. Other draft permissions and input validation still apply.
Check the app scope and staff permission separately
First confirm which type of access token the app uses for that store and whether the app has write_draft_orders. For a request made on behalf of a staff member, also check that person's role for the permissions to manage draft orders and apply discounts. A staff member may be able to open the draft or edit other fields while lacking permission to add discounts.
Shopify excludes requests that do not run on behalf of staff, such as requests with an offline token, from this new check. Keep the existing identity and authorization model. When a role change is necessary, the merchant administrator should grant only the permissions the role requires.
Handle the failure in your UI and background jobs
When parsing the GraphQL response, check top-level errors first. Record the relevant code and path and check whether the corresponding mutation payload is null. Reading only the payload's userErrors misses this denial. If a payload is present, check its userErrors and confirm that the expected draft was returned.
Mark a permission denial as a failed operation and point the operator to the staff permission. In an authorized test store, compare a request that retains an existing discount with one that adds a code. Once the permission or request condition is corrected, retry with only the input you need.
Why the same action can fail for only some staff members
Suppose two staff members can edit a draft, but only one can apply discounts. If the app calls the API as the current staff member, the same discount edit can produce different outcomes. Record the store, request time, API version, operation name, and error code, then check the acting staff role. Success under another staff account does not establish that this role has the permission.
Also check whether your form sends a suggested code or automatic discount setting with other edits. A note-only change in the UI can still be rejected if the generated input adds a discount. Compare an ordinary edit that retains the current discounts with a discount addition in a test store, and keep access tokens and customer data out of diagnostics.
Sources
Frequently Asked Questions
Will switching API versions fix it?
Shopify says the change applies to all supported versions. Confirm which staff member the request represents, then check the app's scope and that person's permissions separately.
Do I need to clear existing discounts to edit a note?
No. Keeping or removing existing discounts does not count as adding one. Check the generated input if your app automatically includes a different code.
Why did the draft fail to save if the HTTP request succeeded?
Check the GraphQL response even when the HTTP request succeeds. A top-level ACCESS_DENIED error with a null payload for the mutation means this discount change was not saved.