Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

REST API Multiple Order Status Filter returns no records

REST API Multiple Order Status Filter returns no records

bsee65
Visitor
1 0 0

When filtering orders by order status, can we filter by multiple order statuses using the REST API or am I experiencing a bug?

 

Example:

If I make the following call:

/admin/api/2023-10/orders.json?status=closed

I receive my closed orders in the response

 

/admin/api/2023-10/orders.json?status=cancelled

I receive my cancelled orders in the response

 

/admin/api/2023-10/orders.json?status=closed,cancelled

I receive no records, just an empty array.

 

Bizarrely if combine the status filters in the following manner:

/admin/api/2023-10/orders.json?status=open,cancelled

I receive records back. Seemingly open can be combined with the other filter statuses.

 

Is the above behavior a bug or intended that closed and cancelled orders cannot be filtered with each other?

Is there an intended way to combine order status filters?

 

 

Replies 0 (0)