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…