orderEditBegin returns empty calculatedOrder object on Plus store, not on development store

Solved

orderEditBegin returns empty calculatedOrder object on Plus store, not on development store

Andrew-W
Shopify Partner
27 3 16

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:

 

https://community.shopify.com/c/shopify-apis-and-sdks/graphql-access-denied-ordereditbegin/td-p/6397...

https://community.shopify.com/c/shopify-apis-and-sdks/graphql-unable-to-use-mutation-ordereditbegin-...

 

Thanks,

Andrew

Accepted Solution (1)

Andrew-W
Shopify Partner
27 3 16

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:

AndrewW_0-1637835522543.png

 

Un-archiving the order solves the problem.

View solution in original post

Reply 1 (1)

Andrew-W
Shopify Partner
27 3 16

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:

AndrewW_0-1637835522543.png

 

Un-archiving the order solves the problem.