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.

406 Not Acceptable Error Header while Creating Fulfillment

406 Not Acceptable Error Header while Creating Fulfillment

CRajeshKumar
Shopify Partner
1 0 0

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://<shop-name>.myshopify.com/admin/api/2024-01/orders/<order-id>/fulfillments.json' \
-H 'X-Shopify-Access-Token: <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
}
]
}
]
}
}'

Reply 1 (1)

nminaya
Shopify Partner
2 0 0