Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

errors: Not Found

Solved

errors: Not Found

Leoh1
Tourist
5 0 2

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.

 

3.png

1.png

2.png

Accepted Solution (1)
zakariachahboun
Shopify Partner
1 1 0

This is an accepted solution.

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

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

 

View solution in original post

Replies 3 (3)

Leoh1
Tourist
5 0 2

Can anyone help me?

Alguém pode me ajudar?

¿Alguien puede ayudarme?

zakariachahboun
Shopify Partner
1 1 0

This is an accepted solution.

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

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

 

Leoh1
Tourist
5 0 2

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