Fulfillment Endpoint Removals 2022-07+

Solved
joecampo
Visitor
1 0 0

Hi there,

 

I'm currently working through updating some older apps to 2023-01 and I noticed within the release notes for 2022-07, that the following endpoints are being removed from the REST API; however, looking at the documentation for even update 2023-01 /orders/{order_id}/fulfillments.json endpoint appears to be a valid, working endpoint that is still in the documentation: https://shopify.dev/api/admin-rest/2023-01/resources/fulfillment#get-orders-order-id-fulfillments – I'm inquiring to see if the release notes are correct.

 

https://shopify.dev/api/release-notes/2022-07#fulfillment-endpoints-removed-from-the-rest-admin-api

 

  • /orders/{order_id}/fulfillments.json
  • /orders/{order_id}/fulfillments/{fulfillment_id}.json
  • /orders/{order_id}/fulfillments/{fulfillment_id}/complete.json
  • /orders/{order_id}/fulfillments/{fulfillment_id}/open.json
  • /orders/{order_id}/fulfillments/{fulfillment_id}/cancel.json

 

Accepted Solution (1)
ShopifyDevSup
Shopify Staff
Shopify Staff
1200 189 417

This is an accepted solution.

Hi @joecampo 👋

Thanks for flagging the ambiguous release note! Further down here in the list of changes to REST Admin API, it specifies that the deprecation applies to `POST /orders/{order_id}/fulfillments.json` requests. The `GET /orders/{order_id}/fulfillments.json` endpoint remains supported to fetch actual fulfillments on the order. Keep in mind, we'll want to use `GET /orders/{order_id}/fulfillment_orders.json` for fulfillment orders on an order and `GET  /fulfillment_orders/{fulfillment_order_id}/fulfillments.json` for fulfillments on each FufillmentOrder.

Hope that helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 3 (3)
ShopifyDevSup
Shopify Staff
Shopify Staff
1200 189 417

This is an accepted solution.

Hi @joecampo 👋

Thanks for flagging the ambiguous release note! Further down here in the list of changes to REST Admin API, it specifies that the deprecation applies to `POST /orders/{order_id}/fulfillments.json` requests. The `GET /orders/{order_id}/fulfillments.json` endpoint remains supported to fetch actual fulfillments on the order. Keep in mind, we'll want to use `GET /orders/{order_id}/fulfillment_orders.json` for fulfillment orders on an order and `GET  /fulfillment_orders/{fulfillment_order_id}/fulfillments.json` for fulfillments on each FufillmentOrder.

Hope that helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

API_Chat
Tourist
6 0 2

Hi @joecampo @ShopifyDevSup 

 

What would the new endpoint POST /orders/{order_id}/fulfillments.json look like after depraction?

ShopifyDevSup
Shopify Staff
Shopify Staff
1200 189 417

Hi @API_Chat 👋


This legacy workflow is deprecated in favour of the new fulfillment order workflow, and I'd recommend reviewing this migration guide. To create a fulfillment, you'd make a post request `/admin/api/2023-01/fulfillments.json` in the new fulfillment flow.

 

Hope that helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog