php-shopify icon indicating copy to clipboard operation
php-shopify copied to clipboard

How can I create a tracking on a fulfillment?

Open petervanackooij opened this issue 5 years ago • 2 comments

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 avatar Apr 02 '20 09:04 petervanackooij

@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.

tareqtms avatar Apr 25 '20 13:04 tareqtms

@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.

natanrufino avatar Jan 14 '24 20:01 natanrufino