php-shopify
php-shopify copied to clipboard
How can I create a tracking on a fulfillment?
First of all: Very nice work guys! So far, your code works perfectly 👍
Now I want to create a tracking on an existing fulfillment and I can't figure out how to do that. I expect something like this, but that doesn't seem to work:
$sdk->Order->Fulfillment($fulfillmentId)->update_tracking([
"notify_customer": true,
"tracking_info": {
"number": "1111",
"url": "http://www.my-url.com",
"company": "my-company"
}
]);
The action in Shopify's documentation: https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/fulfillment#update_tracking-2020-01
@petervanackooij Thanks for notifying this. This is not included so far. Will try to implement that as early as possible. Btw, for the time being, you can update all those info with a PUT request.
@petervanackooij Thanks for notifying this. This is not included so far. Will try to implement that as early as possible. Btw, for the time being, you can update all those info with a PUT request.
Hey brother, that's a good information. Could you, please, give us a little bit of code just as an example? Thank you very much.