Hi,
I am unable to fulfill an order that has a request to fulfill an order. This is the error I get Cannot create fulfillment for the fulfillment order..
The scenario is that with shopify admin a request to fulfill an item in order was made which puts the fulfillment order in the state In Progress. Once this is made I am unable to fulfill an order with my APP through graphql.
I checked the data and the GraphQl call from ShopifyAdmin, where the fulfillment is successful. The GraphQL and Variables look basically the same except in trackingInfo and notifyCustomer.
I send what is required from your documentation https://shopify.dev/api/admin-graphql/2022-04/input-objects/FulfillmentTrackingInput but you send over this:
trackingInfo: {
number: null,
link: null, // this is not a valid data point from your schema validation nor your documentation
company: null,
},
notifyCustomer: false // I send over true
This is the data I send over and the query:
mutation createFulfillment($fulfillment: FulfillmentV2Input!) {
fulfillmentCreateV2(fulfillment: $fulfillment) {
fulfillment {
id
status
trackingInfo {
company
number
url
}
}
userErrors {
field
message
}
}
}
{
"operationName":"createFulfillment",
"variables":{
"fulfillment":{
"lineItemsByFulfillmentOrder":[
{
"fulfillmentOrderId":"gid://shopify/FulfillmentOrder/5910722281710",
"fulfillmentOrderLineItems":[
{
"id":"gid://shopify/FulfillmentOrderLineItem/12619822301422",
"quantity":1
}
]
}
],
"trackingInfo":{
"company":"testcomapny",
"number":"0xaf25bdc96",
"url":"https://something"
},
"notifyCustomer":true
}
}
}
Scope used with my app at the moment:
read_customers,read_inventory,read_content,write_content,read_fulfillments,write_fulfillments,read_orders,write_assigned_fulfillment_orders,read_assigned_fulfillment_orders,read_merchant_managed_fulfillment_orders,write_third_party_fulfillment_orders,read_third_party_fulfillment_orders,write_products,write_merchant_managed_fulfillment_orders,write_orders