New Shopify Certification now available: Liquid Storefronts for Theme Developers

Create fulfillment order problem

Solved
Dennis_Law
Tourist
3 0 2

I create a fulfillment order via /admin/api/2022-04/fulfillments.json with error. The message is "errors""Not Found".  below is my post data. please help it.

I have put order_id at  fulfillment_order_id. Is it correct? If no, how can I get this id which is related into order_id.

TinyTake22-07-2022-02-47-31.png

Accepted Solution (1)
JamesG
Shopify Staff
Shopify Staff
42 10 9

This is an accepted solution.

Hi @Dennis_Law ,

The Order_id and FulfillmentOrder_id reference two separate objects. 

 

If you've got the order's id already you could query the FulfillmentOrder id with this endpoint:

/api/2022-07/orders/{{order_id}}/fulfillment_orders.json

 

Alternatively, your FulfillmentService could look up any assigned fulfillment orders by using the AssignedFulfillmentOrder resource.

 

Cheers,

JamesG | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me 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 6 (6)
JamesG
Shopify Staff
Shopify Staff
42 10 9

This is an accepted solution.

Hi @Dennis_Law ,

The Order_id and FulfillmentOrder_id reference two separate objects. 

 

If you've got the order's id already you could query the FulfillmentOrder id with this endpoint:

/api/2022-07/orders/{{order_id}}/fulfillment_orders.json

 

Alternatively, your FulfillmentService could look up any assigned fulfillment orders by using the AssignedFulfillmentOrder resource.

 

Cheers,

JamesG | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me 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

Dennis_Law
Tourist
3 0 2

Dear James

 

Thanks for your explanation.  I have tried to find information on /api/2022-07/orders/4470735372453/fulfillment_orders.json, the message shows 

 "fulfillment_orders": [].
In my target, I would like to update Fulfillment status in an order as below screen. 

TinyTake26-07-2022-10-03-36.png

We use "/admin/api/2022-04/orders/450789469/fulfillments.json"  to create fulfillment currently, but "/admin/api/{{version}}/orders/{{order_id}}/fulfillments.json" does not exist in 2022-07 version. 

I have tried to used "/admin/api/2022-07/fulfillments.json" to create fulfillment, but it is fail. Please advise which API to replace "/admin/api/2022-04/orders/450789469/fulfillments.json".

 

Many thanks

 

 
Drasty1
Shopify Partner
2 0 2

Hi @Dennis_Law how you have fixed this issue? I'm getting "fulfillment_orders": [] when I call /admin/api/2022-07/orders/4612221796528/fulfillments.json

lmathieu
Tourist
5 0 3

Hello @Dennis_Law @Drasty1 I am looking for the same thing, did you find it? Thx !

lmathieu
Tourist
5 0 3

Can't anyone help me? 😞

Dennis_Law
Tourist
3 0 2

Dear James

 

I can create fulfillment order successfully. Thanks for your help.