Why am I getting a 'Not Found' error when calling the Fulfillment Order API?

Topic summary

A developer is encountering a “Not Found” error when attempting to call Shopify’s Fulfillment Order API. The error indicates a 404 response, suggesting the URL may be incorrectly formatted or one of the provided IDs is invalid.

Likely causes identified:

  • Incorrect Order ID, Line Item ID, or Location ID
  • Improperly constructed API endpoint URL

Recommended troubleshooting steps:

  • Verify all IDs (Order, Line Item, Location) correspond correctly to the specific fulfillment
  • Use the fulfillment_order.json endpoint to retrieve valid fulfillment order data first
  • Example working endpoint format: GET https://[shop].myshopify.com/admin/api/2023-01/orders/[order_id]/fulfillment_orders.json
  • Consult Shopify’s official API documentation for the fulfillment creation endpoint

The issue remains unresolved pending verification of the correct IDs and endpoint structure.

Summarized with AI on November 19. AI used: claude-sonnet-4-5-20250929.

Hi Team,

While calling Fulfillment Order API, WE are getting “Not Found” error in it. Please help here to rectify this issue.
curl --location ‘https://4113efa8bbda90cb021f58fca896e8ab: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@sylphy.myshopify.com/admin/api/2023-04/fulfillments.json
–header ‘Content-Type: application/json’
–data ‘{
“fulfillment”: {
“line_items_by_fulfillment_order”: [
{
“fulfillment_order_id”: 4129985822925
}
],
“tracking_info”: {
“number”: “XYZ1234”,
“url”: “”
}
}
}’

{
“errors”: “Not Found”
}

Hi @MayurDhumal ,

You are getting ‘Not Found’ error which means 404 (probably the url was never mapped to a resource) or might be one of your IDs is incorrect. Confirm the Order ID, Line Item ID and the Location ID (that corresponds to this line item specifically).

If you call fulfillment_order.json then

curl -X GET "https://phatdev.myshopify.com/admin/api/2023-01/orders/4284094447825/fulfillment_orders.json" \ -H "X-Shopify-Access-Token: *token*"

will return the following json:

{
    "fulfillment_orders": [{
        "id": xxx2007420113,
        "shop_id": xxxxx918673,
        "order_id": 123456447825,
        "assigned_location_id": xxxxx011281,
        "request_status": "unsubmitted",
......

For more reference,

Please check this link,

url : https://shopify.dev/docs/api/admin-rest/2023-04/resources/fulfillment#create-2020-04

Thanks…