Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

invalidId in draftOrderCreate mutation

invalidId in draftOrderCreate mutation

mhirrrrr
Shopify Partner
1 0 0

I am trying to create a draftOrder using GraphQL I am getting an invalid query error

 

{"errors":[{"locations":[{"column":13,"line":2}],"message":"invalid id","path":["draftOrderCreate"]}]}

 

I have checked the checkout object and used the customer id which is present in the same

 

 

 

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 522

Hey @mhirrrrr -

 

If you're still encountering an issue - can you share the body of your API call? Generally, this message would indicate that either the customer ID or the product variant ID being used as variables are incorrect. Hope to hear from you soon - happy to help out with this. 

Al | Shopify Developer Support 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog