fulfillmentCreateV2 Returning 'invalid id' for Order

Solved
mt686
Shopify Partner
18 3 4

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
            }
         }
    }`

 

Accepted Solution (1)

Accepted Solutions
mt686
Shopify Partner
18 3 4

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...

 

View solution in original post

Reply 1 (1)
mt686
Shopify Partner
18 3 4

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...