Covers all questions related to inventory management, order fulfillment, and shipping.
Hello,
I have to update the fulfillment in 2 times.
The first one to fulfill the items, this step causes the fulfillment_status to close.
/admin/api/{{api_version}}/fulfillments.json
After that, I have to update the tracking info but it tells me that it is closed.
/admin/api/{{api_version}}/fulfillments/{{fulfillment_id}}/update_tracking.json
I can't report the tracking info in the same call of the fulfillment.
How can I update the tracking info once I have fulfilled each item in a second call?
Thanks in advance.
Solved! Go to the solution
This is an accepted solution.
Hi SiLogisticsSup,
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:
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
}
}
}
fulfillmentId
, input the fulfillment_id
that you have. For the trackingInfoInput
object, input the tracking information. For example:{
"fulfillmentId": "gid://shopify/Fulfillment/255858046",
"notifyCustomer": true,
"trackingInfoInput": {
"company": "UPS",
"number": "1Z001985YW99744790"
}
}
This should update the tracking information for the fulfillment. Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
For anyone getting the "NOT Found" error - the Fulfillment ID is NOT the Order ID.
You have to query the Order ID to find the fulfillment ID within the "fulfillments" object.
This is an accepted solution.
Hi SiLogisticsSup,
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:
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
}
}
}
fulfillmentId
, input the fulfillment_id
that you have. For the trackingInfoInput
object, input the tracking information. For example:{
"fulfillmentId": "gid://shopify/Fulfillment/255858046",
"notifyCustomer": true,
"trackingInfoInput": {
"company": "UPS",
"number": "1Z001985YW99744790"
}
}
This should update the tracking information for the fulfillment. Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Thank you very much!
This is an accepted solution.
For anyone getting the "NOT Found" error - the Fulfillment ID is NOT the Order ID.
You have to query the Order ID to find the fulfillment ID within the "fulfillments" object.