Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Ability to fetch a list of orders matching more than one status, bonus using a status search wildcard #114

Closed
AmandaRiu opened this issue Jul 26, 2018 · 1 comment
Assignees

Comments

@AmandaRiu
Copy link

AmandaRiu commented Jul 26, 2018

Currently the Woo API endpoint for /orders only allows filtering by a single order status. It would be helpful if we could pass in a list or array of order statuses to match results on. Example:

"status":"processing, pending, on-hold"

or

"status":{"processing", "pending", "on-hold"}

An even cooler feature would be to allow for wildcard matching on an order status filter:

"status":"wc-%"

in this example above the % would be the wildcard and an example of statuses it would match would be:

  • wc-new-order
  • wc-yay
  • wc-red

Thanks!

@AmandaRiu AmandaRiu changed the title Ability to fetch a list of orders matching more than one status, or using a status search wildcard Ability to fetch a list of orders matching more than one status, bonus using a status search wildcard Jul 26, 2018
@claudiosanches claudiosanches self-assigned this Aug 8, 2018
@claudiosanches
Copy link
Contributor

REST API v3 already supports multiple statuses, but we are not looking for a wildcard, maybe we can look at it in the future, please feel free to submit a Pull Request if you should like to implement it, you can submit to WooCommerce core. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants