A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I get some draft orders with incomplete addresses and I am trying o update them but everything I tried failed to work. Now I am passing the exact same draft order json and yet it continues to give me the same error,
Response: {"errors":{"draft_order":"Required parameter missing or invalid"}}
Hi @safwanadnan
There is an issue with the parameters. Please send your request parameters for processing.
Hi @safwanadnan
I need to request parameters, such as the following code:
{
"draft_order":{
"id":"123198237",
"line_items":[{"variant_id":447654529,"quantity":1}]
}
}
That's what I'm saying, I fetched the entire order and first replaced the address in the order with itself just for testing purposes so that nothing is actually changed, it threw the same error, so I passed the entire order json as parameter to see if something is missing maybe that works but no same error persists. Funny thing is that both versions of codes worked perfectly fine with ny test store but the actual store e throws an error.
As you can see in the code I fetched a draft order, parsed it's contents and then passed that exact same json which contained the contents but it says error.