A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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
Solved! Go to the solution
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
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
What would the new endpoint POST /orders/{order_id}/fulfillments.json look like after depraction?
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