A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi,
I'm having an issue where trying to use the order edit API on a live store isn't working, but the same code is working fine on matching development store with a very similar order.
It's a standard order placed through the Online Store, with standard shipping (not collection) paid through Shopify Payments.
Does anyone have any idea what might be going wrong?
This is the raw response I get back (note: I'm using the Shopify API Ruby gem):
{
"data":{
"orderEditBegin":{
"calculatedOrder":"nil"
}
},
"extensions":{
"cost":{
"requestedQueryCost":72,
"actualQueryCost":10,
"throttleStatus":{
"maximumAvailable":2000.0,
"currentlyAvailable":1990,
"restoreRate":100.0
}
}
}
}
Request ID:
12f0fbbd-c24c-4104-8a3e-5925676591c2
Other posts I've looked at but didn't find a solution from:
Thanks,
Andrew
Solved! Go to the solution
This is an accepted solution.
Big facepalm on this one.
The order was archived, this stops order edits but doesn’t give any error messages through the API. Fun!
However if you try edit through the admin you get an "Unable to edit order - Archived orders can't be edited." error:
Un-archiving the order solves the problem.
This is an accepted solution.
Big facepalm on this one.
The order was archived, this stops order edits but doesn’t give any error messages through the API. Fun!
However if you try edit through the admin you get an "Unable to edit order - Archived orders can't be edited." error:
Un-archiving the order solves the problem.