Solved

GraphQl FulfillmentCreateV2 returning Order doesn't exist

khaoulaLysi
Visitor
2 1 0

Hey Team

 

hope you are doing well!

 

i'm trying to fulfill an Order in Shopify with multi Tracking Numbers but it returning 

 

khaoulaLysi_0-1692018082645.png

 

The Order actually is On Hold but when i release the fulfillment and run it again it still shows same error 

Mutation : 

mutation fulfillmentCreateV2($fulfillment: FulfillmentV2Input!) { fulfillmentCreateV2(fulfillment: $fulfillment) { fulfillment { id status trackingInfo { company number url } } userErrors { field message } } }


Variables 


{
"fulfillment": {
"lineItemsByFulfillmentOrder": [
{
"fulfillmentOrderId": "gid://shopify/FulfillmentOrder/5431752130834",
"fulfillmentOrderLineItems": [
{
"id": "gid://shopify/FulfillmentOrderLineItem/14156771164434",
"quantity": 1
},
{
"id": "gid://shopify/FulfillmentOrderLineItem/14156771197202",
"quantity": 1
}
]
}
],
"notifyCustomer": true,
"originAddress": {
"address1": "Test",
"address2": "",
"city": "Test",
"countryCode": "US",
"provinceCode": "Test",
"zip": "Test"
},
"trackingInfo": {
"company": "UPS",
"numbers": [
"1ZXXXXXXXXXXXXXXXX"
],
"urls": [
"https://www.ups.com/track?loc=en_US&requester=ST&trackNums=1ZXXXXXXXXXXXXXXXX/trackdetails"
]
}
}
}

 

This Order is Exist in Shopify 

Thanks 

Accepted Solution (1)

khaoulaLysi
Visitor
2 1 0

This is an accepted solution.

The Issue is fixed i was using Order ID instead of fullfillmentOrderID

View solution in original post

Reply 1 (1)

khaoulaLysi
Visitor
2 1 0

This is an accepted solution.

The Issue is fixed i was using Order ID instead of fullfillmentOrderID