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 3 (3)
L_J_K
Shopify Staff
367 54 65

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!

 

| API Support @ Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
jiaLi
Tourist
4 1 1

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

jiaLi
Tourist
4 1 1

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.