How to detect orders ready to be shipped?

Parsas
Tourist
3 0 0

Hi,

I'm trying to use /admin/api/2021-04/orders.json to find the orders that are ready to be shipped. However, I got confused when I look at the API. There is status that has open, close, cancelled, and any. Also, there is financial_status and fulfillment_status. I also found confirmed which I don't know what is it for.

Thanks,

 

Replies 2 (2)
HunkyBill
Shopify Expert
4838 60 590

You want to pay attention to status and fulfillment status. First off, you probably only want to examine orders that are open. Why bother with closed or canceled ones. Second, since you care about orders ready to be shipped, you want the fulfillment_status as unshipped. You can probably ignore financial status, although if you ship an unpaid order, that might seem a bit odd.

So what exactly confused you? Note too, the GraphQL uses the same filters as the RestAPI even though that seems really not right nor normal. So you setup using GQL but use the RestAPI for your actual filter values.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
Parsas
Tourist
3 0 0

Tbh, this makes sense and that's what I planed to do, but confirmed attribute set me off and I couldn't find any documentation for it. It also makes sense I get status open and confirmed true. I just don't have any idea what is confirmed.

Thanks