Order edit mutation results in Required parameter missing or invalid

Highlighted
Tourist
26 0 0

Hi All,

I wanted to add a variant after the order gets placed and am using nodejs app.

Had been following the guide: https://shopify.dev/tutorials/edit-an-existing-order-with-admin-api#add-a-discount-to-the-variant

 body: JSON.stringify({
        mutation : `beginEdit {
          orderEditBegin(id:"gid://shopify/Order/"+orderID) {
            calculatedOrder {
              id
            }
          }
        }`
      })
 
Am getting error as  { errors: { query: 'Required parameter missing or invalid' } }
Can anyone let me know what am i missing here?
 
0 Likes
Highlighted
Tourist
26 0 0

Any suggestions @HunkyBill 

0 Likes
Highlighted
Shopify Expert
4262 32 434

No one can help you if you do not provide data. Showing off a query is not helpful except in the grossest of syntax errors and your error is clearly not that. Edit your post to show your data, and Shopify also asks you to post a header with the problem request so they can help you debug.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes