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
$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']]
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!
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.