For the Not Found error, it could be due to the fulfillment_id being incorrect or that the fulfillment does not exist in the system. Ensure that you are using the correct fulfillment_id.
For the error Fulfillment order {{fulfillment_id}} has an unfulfillable status= closed, it could be because the fulfillment is already fulfilled and closed in the system, so you cannot update the tracking info.
You could try the following steps:
Use the fulfillmentTrackingInfoUpdateV2 mutation to update the tracking information for a fulfillment. This mutation takes in a fulfillmentId and a trackingInfoInput object as parameters.
Here is an example:
mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {
fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {
fulfillment {
id
status
trackingInfo {
company
number
url
}
}
userErrors {
field
message
}
}
}
For the fulfillmentId, input the fulfillment_id that you have. For the trackingInfoInput object, input the tracking information. For example: