406 Not Acceptable Error Header while Creating Fulfillment

Topic summary

A user is encountering a 406 Not Acceptable error with an empty response body when attempting to create a fulfillment via Shopify’s REST API. They’re using the /admin/api/2024-01/orders/<order-id>/fulfillments.json endpoint with what appears to be valid headers (including X-Shopify-Access-Token and Content-Type: application/json) and request body containing fulfillment details (location ID, tracking info, line items).

Current Status:

  • Another user suggests the endpoint may be deprecated, referencing a community discussion about REST Fulfillment API deprecation lacking proper documentation.
  • The issue remains unresolved with no definitive solution provided.

Key Question: Whether the 406 error stems from API deprecation, incorrect request formatting, or missing/malformed headers. The user seeks guidance on diagnosing the exact cause of the error.

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

Hi Team,

I am getting 406 Not Acceptable Response Header & empty Response Body while Creating Fulfillment, though I am passing valid body & headers. Could not find exact issue? How to find the exact issue? Please anyone help.

I am passing cURL for to check.

curl -v -L ‘https://.myshopify.com/admin/api/2024-01/orders//fulfillments.json’
-H ‘X-Shopify-Access-Token: ’
-H ‘Content-Type: application/json’
-H ‘Accept: application/vnd.api+json’
-d ‘{
“fulfillment”:{
“message”:“The package was shipped this morning.”,
“notify_customer”:true,
“location_id”:66877095993,
“tracking_info”:{
“number”:“4”,
“url”:“https://tracking.agsystems.com/”,
“company”:“AGS”
},
“line_items_by_fulfillment_order”:[
{
“fulfillment_order_id”:6088550711548,
“fulfillment_order_line_items”:[
{
“id”:12901933547772,
“quantity”:1
}
]
}
]
}
}’

Looks like that endpoint is deprecated

https://community.shopify.com/post/1567517