Platform: Shopify Plus
I have granted my private app read & write access to every scope available in the API permissions section including write_order_edits. Screenshot https://d.pr/i/WtCQ09
The private app is also set to 2020-01 (Latest) webhooks API version in case that matters.
Below is the mutation I am posting to admin/api/2020-01/graphql.json as well as the access denied response received.
Request:
mutation { orderEditBegin(id: "gid://shopify/Order/1955740057670") { calculatedOrder { id } userErrors { field message } } }
Response:
{"data":{"orderEditBegin":{"calculatedOrder":null,"userErrors":[{"field":null,"message":"Access Denied."}]}},"extensions":{"cost":{"requestedQueryCost":10,"actualQueryCost":10,"throttleStatus":{"maximumAvailable":2000,"currentlyAvailable":1990,"restoreRate":100}}}}
Solved! Go to the solution
This is an accepted solution.
With Shopify Plus, order editing is not quite rolled out yet! Here is where this is stated: https://help.shopify.com/en/manual/orders/edit-orders
You can contact your MSM to have this enabled on a development store for testing in the meantime.
Vix | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
Hey @vix
We're having the issue with a Shopify plus app user. It's not on every order, only on a few. OrderEditBegin, on these occasions, returns null:
{"extensions":{"cost":{"actualQueryCost":10,"throttleStatus":{"maximumAvailable":2000,"restoreRate":100,"currentlyAvailable":1990},"requestedQueryCost":17}},"data":{"orderEditBegin":{"calculatedOrder":null}}}
An order only a few hours before (and many others) work absolutely fine. The edit we're making is also the same. Removing the same product from the order and adding another.
Please could you investigate? Happy to provide exact order IDs and the store privately.
I'd go over the standard troubleshooting:
There are lots of other ideas on the forum board. If you can't get that to work, note the next time this happens and get the request-id and we can check into the logs!
Vix | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
User | Count |
---|---|
26 | |
7 | |
6 | |
6 | |
4 |