Errors: Not Found

Im trying to recover a tracking number on a third party API, but isnt working, here are some details about it

I tried Post and Put mode, and tried a order_id, id, and all id’s numbers.

2 Likes

Can anyone help me?

Alguém pode me ajudar?

¿Alguien puede ayudarme?

Hi Leoh1
In the tracking data you have to provide the fulfillment ID not the fulfillment_orders ID and not the order ID.
You can get the fulfillment ID by the order ID:
https://[YOUR-STORE].myshopify.com/admin/api/2024-01/orders/[ORDER-ID].json

They you will get the fulfillment ID in the body exactly in fulfillment[0].id

Then you will use that fulfillment[0].id in your tracking info in the url

It really works! Thanks!

I have a question regarding an order that has two fulfillments: one was cancelled and the other was successful. Can I update the first one to ‘successful’ and delete the other with my code? Because when I tried to update the first one, nothing happened in Shopify since it is cancelled. However, when I updated the second one, everything worked fine.

I have another question: how can I create a fulfillment when my order doesn’t have one? I tried, but I got a ‘Not Found’ error. LOL