A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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
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