invalidId in draftOrderCreate mutation

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)

Shopify Staff
1436 234 488

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 or the Shopify Web Design and Development Blog