Covers all questions related to inventory management, order fulfillment, and shipping.
Hi! So here's the problem: I'm currently working with the fulfillmentCreateV2 API in a GQL request, and no matter what, I keep getting this error: 'invalid id'. I'm using the global order ID to mark an order as fulfilled, this is the ID: "gid://shopify/Order/4035491463266". I really appreciate any insight! Here's the full GQL mutation:
` mutation {
fulfillmentCreateV2(fulfillment:
{
lineItemsByFulfillmentOrder:
{
fulfillmentOrderId:"gid://shopify/Order/4035491463266"
},
notifyCustomer:true
}
) {
userErrors {
field
message
}
}
}`
Solved! Go to the solution
This is an accepted solution.
So I fixed the error, turns out it just needs to be 'gid://shopify/FulfillmentOrder/4035491463266' instead of 'gid://shopify/Order/4035491463266', yeah...
This is an accepted solution.
So I fixed the error, turns out it just needs to be 'gid://shopify/FulfillmentOrder/4035491463266' instead of 'gid://shopify/Order/4035491463266', yeah...