Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

API return 404 (Not Found)-Updates the tracking information for a fulfillment

API return 404 (Not Found)-Updates the tracking information for a fulfillment

PaulYang
Visitor
1 0 1

When I call admin api to update the order tracking, there is an exception that returns 404.

In addition, I confirm to use fulfillment_ id to call this interface.

 

API: Updates the tracking information for a fulfillment

 

https url: 

    https://myshopdomain/admin/api/2022-04/fulfillments/4074256236714/update_tracking.json

 

http params:

{
    "fulfillment": {
        "notify_customer": false,
        "tracking_info": {
            "number": "MyTrackingNumber",
            "url": "https://mytrackingdomain/tracking/index?trackingNumber=MyTrackingNumber",
            "company": "Demo-Express"
        }
    }
}

 

http response (http status code is 404):

{
    "errors": "Not Found"
}
Replies 3 (3)

Alan
Shopify Staff
129 15 25

Hi @PaulYang - thanks for reaching out. I was able to confirm that the fulfillment ID you provided appears to be a valid one, so it is odd that it's not returning the expected response (per the documentation that you shared). 

Could you share a Request ID ( also called a Shopify X-Request-ID) that would have be returned in the response headers to your API call? This would allow us to pull more in depth logs on our end so that we can see what may have caused the 404 response. 

 

Hope to hear from you soon - let us know if we can clarify anything on our end. 

 

Alan | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

mishac
Shopify Partner
1 0 0

I'm having a similar issue when creating a fulfillment, 404 error.  Line item/order/location ids are verified correct.

 

Seems to occur only on the 2022-07 api version.  Reverting to 2022-04 fixes it.

 

EDIT:

here are some request ids so you can see what's happening.  I can get more if you want.

eefcab8d-8914-4639-b78b-2092c3e10d09 c79851e0-0cd1-4900-9343-60bbc4b0f70e

469c482b-a014-40ec-8636-2efff54c9d01

9ceef986-9e59-4085-ac1e-f078de247d9a

 

gaurava
Visitor
1 0 0

I am also facing same issue. please help. Here is my request id in response: 

84ff72ef-5bbc-4c15-b71f-e043a0f96501