Http Status Code Not Found when calling fulfillments.json

Http Status Code Not Found when calling fulfillments.json

lsardinas
Visitor
1 0 0

When trying to update the tracking information on an order I receive a status 404 Not Found without an error message, see the body below

 

{

"fulfillment":{"location_id":45175750,"tracking_number":"TrackingNumber","tracking_company":"USPS","line_items":[{"id":12703665389780}]

}

}

 

X-Request-ID=606e6a0c-b707-470a-876e-0f9074b2f421

 

Has anyone experienced this error before?

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 512

Hey @lsardinas, 

After taking a closer look into logs using the request-id shared, it appears the endpoint used didn't match our documentation - instead use the POST /admin/api/2022-07/fulfillments/{fulfillment_id}/update_tracking.json endpoint and required fields, working from the example payload we share as a starting point. The endpoint we saw in the logs is intended for creating creating a fulfillment on one or more fulfillment orders, and requires additional details - more here

Best!

 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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