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.

Re: Removing a fulfillment also cancels the fulfillment request. Any workarounds?

Removing a fulfillment also cancels the fulfillment request. Any workarounds?

BrianRose
Visitor
3 0 0

We are a fulfillment service that receives fulfillment requests from Shopify. After an order ships, we create a fulfillment for that order with the carrier and tracking number details.

 

Sometimes, we need to void the original shipping label and create a new label with a new tracking number. Sometimes, we may not create the new label immediately - imagine that the customer asked us to hold their order for one week because they are on vacation. So we can't simply use the fulfillmentTrackingInfoUpdateV2 function.

 

If we removing the current tracking number via the fulfillmentCancel function, that has the effect of ALSO canceling the fulfillmentRequest. Now, the order is no longer assigned to our fulfillmentService in Shopify.

 

Is there a way to void a tracking number - to remove a fulfillment - without impacting the fulfillmentRequest?

Replies 2 (2)

Michael_AG
Shopify Staff
47 8 11

Hi!

 

You can unset the tracking number with calling fulfillmentTrackingInfoUpdateV2 with an empty trackingInfo parameter. Does this suite your case?

To learn more visit the Shopify Help Center or the Community Blog.

BrianRose
Visitor
3 0 0

Hi Michael,

 

Well, we tried entering dummy text first, but when we edit the original trackingInfo, we get a "Delivery Failed" badge that persists even after the new tracking number is replaced. 

 

Would a null value for trackingInfo avoid that issue?

Screenshot 2023-08-31 at 3.26.31 PM.pngScreenshot 2023-08-31 at 3.30.45 PM.png