Get list of fulfilled orders using rest api

Get list of fulfilled orders using rest api

shop_dev1
Shopify Partner
34 0 2

Hello all,

I am working on to delete product automatically from admin when order fulfilled. I have getting all orders using api but I want only fulfilled orders for that I am using following line of api, for this I can not get fulfilled orders.

Can anyone please help me in this issue ?

 

 

 

 

 

 

 

 

$getOrders = shopify_call($access_token, $shop, "/admin/api/2023-04/orders.json", array("fulfillment_status" => 'partial'), 'GET');

 

 

 

 

 

 

 

 

Replies 4 (4)

okur90
Shopify Partner
126 20 18

If you want to get only the orders that are fulfilled, you should filter the orders using the value 'fulfilled'.

 

$getOrders = shopify_call($access_token, $shop, "/admin/api/2023-04/orders.json", array("fulfillment_status" => 'fulfilled'), 'GET');
Code Slingin, Pixel Wranglin - Laugh it up at onlinex.com.au
shop_dev1
Shopify Partner
34 0 2

Hello @okur90 ,

I have tried this way but it is not working. It display all orders except fulfilled and I want only fulfilled orders.

Buildcode1
New Member
4 0 0

Have you managed to find the solution? I am having the same problem...

 

Alirok
Shopify Partner
3 0 0

you should use query params in the request, for example:

 -> yourstore.com/2023-10/orders.json, won't bring fulfilled orders, so you should do:

-> yourstore.com/2023-10/orders.json?status=any <- the status is the "secret"