Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

fulfillmentCreateV2 Returning 'invalid id' for Order

Solved

fulfillmentCreateV2 Returning 'invalid id' for Order

mt686
Shopify Partner
64 9 19

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)

mt686
Shopify Partner
64 9 19

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
64 9 19

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