Update tracking information of fulfillment

1 0 0

Hi Team

Please guide how to update the tracking number and of an fulfillment.  I am using this guide and tried it but it's not updating 

API Guide 

Sample code

$response = $client->post("https://" . $SHOPIFYAPIKEY . ':' . $SHOPIFYPASS . '@' . $SHOPIFYDOMAIN . "/admin/api/2021-10/fulfillments/".$fulfillment_id."/update_tracking",
"fulfillment" => [
"notify_customer" => true,
"tracking_info" => [
"number" => "1111111111",
"url" => "http://webtrack.dhlglobalmail.com/?trackingnumber=1111111111",
"company" => "my-company"
],['headers' => ['Content-Type' => 'application/json','Accept' => 'application/json']]

Replies 4 (4)

Shopify Staff
402 66 100

Hey @azharfarooq 

Thanks for getting in touch! So, testing the REST updated_tracking endpoint against 2021-10 with your input data, this works fine for me today. Would you mind sending me the x-request_id of this call if you have it, and any error messages you are receiving, and  I can try take a look at what's going on. Thanks!


| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!

Shopify Partner
4 1 6

Has your problem been solved?
I found that some of my stores also have this situation, while the other part is normal

Shopify Partner
4 1 6


Through the shopify team, my problem has been solved. In addition to the permission of write_merchant_managed_fulfillment_orders , the permission of write_third_party_fulfillment_orders needs to be added.

Shopify Partner
44 0 7

Thanks for everyone's help. This only kind of worked. If you use company foo and url https://foo.bar, in the customer's order  details the Carrier is set to Other, not very useful. If you use company "DPD", i.e. one that's in Shopify's drop down the company is now correct but there is no URL displayed, which in the case of DPD Germany is even less useful.