For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello,
I'm trying to change the tracking link on an order that was created by an app (Sellbrite).
I'm using Python and the Shopify Python API Wrapper to make requests.
https://github.com/Shopify/shopify_python_api
order = shopify.Order.find(1234...).to_dict()
trackingLink = "https://parcelsapp.com/en/tracking/TRACKINGNUMBER..."
order.fulfillments[0].tracking_url = trackingLink
print(order.save()) # Returns True
After checking the order the change was not made.
Testing whether if the issue is with my code I'll also change the order note after changing the tracking_url.
...
order.fulfillments[0].tracking_url = trackingLink
order.note = "test"
print(order.save()) # Returns True
The changes to the note was made but not the tracking link.
I haven't tested this on a draft order I'd create myself, but I believe the issue is coming from the order being made by an app. As also attempting to manually edit the order it prompts me with this.
This is just on the normal Shopify Backend ( Backend > Orders > Order > Edit)
Hoping to know if anyone could provide any insight, any help would be much appreciated! Thanks
Solved! Go to the solution
This is an accepted solution.
Could you use the fulfillmentTrackingInfoUpdateV2 mutation to update the tracking URL? You can provide the `fulfillmentId` and `trackingInfoInput` as arguments to this mutation -and the `trackingInfoInput` is an object that contains the tracking URL:
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.
Could you use the fulfillmentTrackingInfoUpdateV2 mutation to update the tracking URL? You can provide the `fulfillmentId` and `trackingInfoInput` as arguments to this mutation -and the `trackingInfoInput` is an object that contains the tracking URL:
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
Woah! That worked thanks, Liam!