Need new fulfilment endpoint for version 2023-01 replacement of older endpoint in 2022-01

Hi,

We are trying to update our Shopify fulfilment with the latest endpoint (/admin/api/2023-01/fulfillments/{order_id}/update_tracking.json). But it is not working, we are getting error as “404 NOT FOUND”. We tested it in DEV environment.

We tried with order_id (4899467231487) and passed payload as

{ “fulfillment”: { “tracking_info”: { “number”: “123433”, “url”: “https:www.ups.com” }, “notify_customer”: true } }

For order fulfilment, right now we are using this endpoint (admin/api/2022-01/orders/{order_id}/fulfillments.json) which is working. But as per Shopify before 31st March 2023 we need to change this URL to new URL (as suggested by Shopify Support /admin/api/2023-01/fulfillments/{order_id}/update_tracking.json). We tried with the update_tracking POST action but it is not working we received 404 Not Found error.

Please help us with this. For reference we are attaching the Postman screenshots.

Only difference we found for both endpoints is location ID in payload.

Thanks & Regards

Hi @DeepikaBimmini :waving_hand:

I would recommend reviewing this guide to migrating to the new fulfillment order workflow. Updating to 2023-01 from 2022-01 will require more than just updating the endpoint. As you can see in these breaking changes for 2022-07, many fulfillment endpoints were removed in favour of our new fulfillment order workflow.

Hope that helps!

Hi Deepika,

Do you mind sharing what changes you did on your end to make it work?

Thanks

Raj

Hi,

Thank you for your response.

We are using dev-gol-ca store for DEV environment in our project.

We tried this endpoint https://dev-gol-ca.myshopify.com/admin/api/2023-01/fulfillments.json, but we received “404 Not Found” error. We provided payload as

{
“fulfillment”: {
“message”: “The package was shipped this morning.”,
“notify_customer”: true,
“tracking_info”: {
“number”: 1562678,
“url”: “https://www.my-shipping-company.com”,
“company”: “my-shipping-company”
},
“line_items_by_fulfillment_order”: [
{
“fulfillment_order_id”: 4899461726463,
“fulfillment_order_line_items”: [
{
“id”: 12474899955967,
“quantity”: 1
},
{
“id”: 12474899988735,
“quantity”: 1
}
]
}
]
}
}

Please find the screenshot attached below.

We need confirmation that, Is this endpoint is active in dev-gol-ca store as we are getting not found error.

Are Replacement of all the deprecated endpoints are active in this dev-gol-ca store or not?

If not, please suggest how we can activate this endpoint in our store?

Thanks & Regards

Subject: Replacement of fulfilment endpoint from current endpoint (admin/api/2022-01/orders/{order_id}/fulfillments.json) to latest endpoint in 2023-01 (we tried with this endpoint /admin/api/2023-01/fulfillments.json as per the documentation suggest)

We are using dev-gol-ca store for DEV environment in our project.

Q1. Does all the deprecated endpoints are replaced/active in this dev-gol-ca store or not? If not, please suggest how we can activate this endpoint in our store? Or can you please provide the store name and required access to the store where all the new endpoints are available, so that we can test.

Q2. Please find our observation on fulfilment endpoint below and suggest the way forward.

For order fulfilment, right now we are using this endpoint (https:// dev-gol-ca.myshopify.com/admin/api/2022-01/orders/{order_id}/fulfillments.json) which is working. But as per Shopify before 31st March 2023 we need to change this URL to new URL as suggested by Shopify Support we tried with this POST: https:// dev-gol-ca.myshopify.com/admin/api/2023-01/fulfillments.json endpoint but it is not working we received “404 Not Found” error.

We provided payload as

{

“fulfillment”: {

“message”: “The package was shipped this morning.”,

“notify_customer”: true,

“tracking_info”: {

“number”: 1562678,

“url”: “https://www.my-shipping-company.com”,

“company”: “my-shipping-company”

},

“line_items_by_fulfillment_order”: [

{

“fulfillment_order_id”: 4899461726463,

“fulfillment_order_line_items”: [

{

“id”: 12474899955967,

“quantity”: 1

},

{

“id”: 12474899988735,

“quantity”: 1

}

]

}

]

}

}

For reference we are attaching the Postman screenshots.

Note: Please find the support ticket numbers 36816256 & 36991044 for your reference

1 Like

Hey @DeepikaBimmini - the endpoints should be available for all stores, including developer preview stores. Can you confirm what action you’re trying to take with the POST call? Are you trying to create a new fulfillment or update the tracking details?

With the new fulfillment API we no longer allow fulfillments to be created, instead, they are created automatically when needed and are then managed using fulfillment orders and fulfillment events. You still can update tracking details using the fulfillment resource through the update_tracking.json endpoint here.

If we have an idea of what you need to accomplish with your call, we can help provide some next steps.

Hope this helps - and please reply back here if we can help out further!

Al | Shopify Developer Support

try to replace this line “fulfillment_order_line_items” in your json with this “line_items” and let us know