Errors: Not Found

Topic summary

Problem: Retrieving a tracking number via a third‑party/Shopify Fulfillment API returned Not Found. Attempts included POST/PUT with order_id, id, and fulfillment_orders IDs.

Key clarification: Tracking updates require the fulfillment ID (not the order ID and not the fulfillment_orders ID). You can obtain it from the order endpoint (/admin/api/2024-01/orders/[ORDER-ID].json), then use fulfillment[0].id in the tracking request URL.

Outcome: Using the fulfillment ID resolved the tracking update; the requester confirmed it works.

Open questions:

  • An order has two fulfillments (one cancelled, one successful). Can the cancelled fulfillment be updated to successful and the other deleted? Attempting to update the cancelled one had no effect; updating the successful one worked.
  • How to create a fulfillment when an order has none? A Not Found error occurred when trying to create one.

Status: Initial issue solved with correct ID usage. Follow-up questions about changing a cancelled fulfillment’s status and creating a new fulfillment remain unanswered/ongoing.

Notes: Screenshots of API requests/responses were attached but the essential fix was identifying and using the correct fulfillment ID.

Summarized with AI on January 2. AI used: gpt-5.

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