I am getting “404 not found” on Create Fulfilment response.
This is the endpoint (Post request)
shopname.myshopify.com/admin/api/2023-04/orders/5432112345678/fulfillments.json
Post data
Array ( [location_id] => 1234567890 [line_item] => Array ( [0] => 13112345678900 ) [tracking_number] => testTracking )
Header
X-Shopify-Access-Token => sdadsddsdsd343313213ddasda
This was working fine previously but now its give 404 not found, if this endpoint not available then is there any alternative way.
Any help would be welcome.
Liam
July 11, 2023, 9:09am
2
Hi Ausaf-Daraz,
Is it possible that your app is using some endpoints that have been deprecated recently - which is causing this 404 if the requested resource is no longer available?
There were recent deprecations on some endpoint deprecations on the Fulfillment API - can you confirm you’re not making calls to any of these endpoints?
@Liam Thanks for response
I have check the link you provided
https://shopify.dev/changelog/some-endpoint-deprecations-on-the-fulfillment-api-and-the-introduction-of-fulfillment-order-api
The list of deprecated endpoints page also show me 404
https://shopify.dev/docs/api/release-notes/2022-07#fulfillment-endpoints-removed-from-the-rest-admin-api
I also check some endpoint.
shopname.myshopify.com/admin/api/2023-01/orders/5273389957374/fulfillment_orders.json . with access token
response {“fulfillment_orders”: }
shopname.myshopify.com/admin/api/2023-01/fulfillments.json
{ “fulfillment”: {
“line_items_by_fulfillment_order”: [
{
“fulfillment_order_id”: 12334,
“fulfillment_order_line_items”: [
{
“id”: 1234455,
“quantity”: 1
}]
}]
}}
response {“errors”:“Not Found”}
Liam
July 11, 2023, 11:36am
4
So requests to fulfillment_orders.json do work - Can you make GET requests to fulfillments.json? EG: this example that retrieves fulfillments associated with a fulfillment order ?
I called shopname.myshopify.com/admin/api/2023-07/orders/52686850951.json
and successfully get response
I try and pass order id as well as fulfilment id in following below endpoint as fulfillment_orders but every time Get this response {“errors”:“Fulfillment order does not exist.”}
shopname.myshopify.com/admin/api/2023-07/fulfillment_orders/46668372707/fulfillments.json
Liam
July 11, 2023, 2:11pm
6
The release notes for 2022-07 can be read here now - can you review these to see if the changes impact how your app is currently working?
Thanks @Liam .
Now this page is available and i check the endpoint that remove.
I am using that endpoint that remove and its said use FulfillmentOrder.
so My case is, when an order created then I create its fulfillment (Fulfilled, Partially fulfilled) via those api, but there is no any endpoint found in FulfillmentOrder for createfulfillment. which api i can you for this?
Liam
July 12, 2023, 6:27am
8
Hi Ausaf,
For creating fulfilments, you’ll need to follow this tutorial on how to manage fulfillments as a fulfillment service app .
Hope this helps!
@Liam in your provided doc this endpoint use for create fulfilment
https://{shop}.myshopify.com/admin/api/{api_version}/fulfillments.json
and when i call this endpoint it give me this response {“errors”:“Not Found”}
url shopname.myshopify.com/admin/api/2023-07/fulfillments.json
request
{
“fulfillment”: {
“line_items_by_fulfillment_order”: [
{
“fulfillment_order_id”: 5273389957374,
“fulfillment_order_line_items”: [
{
“id”: 13169642635518,
“quantity”: 1
}]
}],
“tracking_info”: {
“number”: “testing1234”,
“url”: “https://www.my-shipping-company.com?tracking_number=testing1234 ”
}}}
response {“errors”:“Not Found”}
Am I doing something wrong?
NikJ
September 26, 2024, 4:50pm
11
any chance you managed to fix this? getting the same issue