Update tracking information of fulfillment

azharfarooq
New Member
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 
https://shopify.dev/api/admin-rest/2021-10/resources/fulfillment#[post]/admin/api/2021-10/fulfillmen...

Sample code

try{
$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)
Luke_K
Shopify Staff
Shopify Staff
402 64 90

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!
jiaLi
Shopify Partner
4 1 5

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

jiaLi
Shopify Partner
4 1 5

Hi,

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.

IGIT
Excursionist
31 0 3

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.