Create fulfillment order problem

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.

1 Like

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,

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

Dear James

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

1 Like

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

2 Likes

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

1 Like

Can’t anyone help me? :disappointed_face:

2 Likes

Dear Cheers

It is workable now. thanks for your help

Regards

Dennis