Issue with new version of Fulfillment API

Solved

Issue with new version of Fulfillment API

Coco_Jiang
Tourist
4 0 0

Hello Everyone, 


How can I implement the functionality of the
/admin/api/2022-04/orders{order_id}/fulfillments.json
API in Shopify's API version after July 2022?

 

Any help will be greatly appreciated

 

Thanks!

Accepted Solution (1)

garyrgilbert
Shopify Partner
428 41 179

This is an accepted solution.

There are two paths you can take, the one where you are an order management app and the other where you are a fulfillment service app.  It kind of depends what you are doing. Never the less the steps are pretty straightforward if you don't go the fulfillment service app approach.

 

  1. get the fulfillment orders from /orders/{order_id}/fulfillment_orders.json
  2. this returns an array of all the fulfillment orders for the specific order
  3. get the fulfillmentorder.id of the fulfillment order you want to fulfill and optionally which line_items and quantities
  4. use the new fullfillment endpoint to fulfill the fulfillment order.

Cheers,

 

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution

View solution in original post

Replies 2 (2)

garyrgilbert
Shopify Partner
428 41 179

This is an accepted solution.

There are two paths you can take, the one where you are an order management app and the other where you are a fulfillment service app.  It kind of depends what you are doing. Never the less the steps are pretty straightforward if you don't go the fulfillment service app approach.

 

  1. get the fulfillment orders from /orders/{order_id}/fulfillment_orders.json
  2. this returns an array of all the fulfillment orders for the specific order
  3. get the fulfillmentorder.id of the fulfillment order you want to fulfill and optionally which line_items and quantities
  4. use the new fullfillment endpoint to fulfill the fulfillment order.

Cheers,

 

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Coco_Jiang
Tourist
4 0 0

Thank you so much for your help!