GraphQL: Unable to use Mutation orderEditBegin using unstable version

Highlighted
New Member
3 0 0

Using orderEditBegin is giving me a null calculatedOrder id. Reference: https://help.shopify.com/en/api/guides/editing-orders#begin-order-editing

 

By doing this query in POSTMAN:

 

mutation beginEdit{
 orderEditBegin(id: "gid://shopify/Order/<ORDER ID>"){
    calculatedOrder{
      id
    }
  }
}

Result:

 

{
    "data": {
        "orderEditBegin": {
            "calculatedOrder": null
        }
    },
}

URL: https://shop_name.myshopify.com/admin/api/unstable/graphql.json


Headers

 

X-Shopify-Access-Token: Private App Password
Content-Type: application/json

 

 

0 Likes
Shopify Staff
Shopify Staff
469 36 92

Hi @JaypeeGaran,

 

Are you attempting this mutation on a developer preview shop?  Currently the only way to test Order Editing is using the unstable version on a Developer Preview.

 

See https://developers.shopify.com/changelog/edit-orders-with-our-new-order-editing-apis for more information.

 

Best Regards,

Ryan

 

 

Developer Experience @ Shopify
0 Likes