{"errors":{"query":"Required parameter missing or invalid"}}

Hi All,

When I send a request like below:

{“mutation”:“{ fulfillmentCreateV2 ( fulfillment: {lineItemsByFulfillmentOrder: { fulfillmentOrderId: "gid://shopify/FulfillmentOrder/4895903678719"}} ) { fulfillment { id } userErrors {message}}”}

I get an error.

{“errors”:{“query”:“Required parameter missing or invalid”}}

(I’m coding in java, in the query I got it successfully)

Is there anything missing in the json I passed?

My code:

"
CloseableHttpClient httpClient = HttpClientBuilder.create().build();
HttpPost http = new HttpPost(urlStr);
http.addHeader("x-shopify-access-token", access_token);
http.addHeader("Accept", "application/json");
http.addHeader("Content-Type", "application/json");
http.setEntity(new StringEntity(myJson));
HttpResponse response = httpClient.execute(http);
"

I solved this problem!

Can you tell us please how you solve it, because I’m facing the same problem