I am integrating a WooCommerce website into an application I've built.
I am attempting to retrieve orders based on customer email address ( i billing address) using the API.
here is the URL I am using to fetch:
https://MYURL/wp-json/wc/v2/orders?consumer_key=ck_xx&consumer_secret=cs_xx&search=myemailcom
The main problem occurred when I want to filter based on metadata, which contain a unique membership number added while ordering. Not sure how this can be achieved.