Hey @chamois_blanc,
Could you let us know which version of the REST API you’re working with? You can find them all listed at the top of this document:
https://woocommerce.github.io/woocommerce-rest-api-docs/#introduction
Thanks
I am working with the latest REST API version: v3
I am using ...?status=pending,completed and it seems to work, but it would be great to get it documented.
Hello @chamois_blanc,
Thanks for getting with me about that. So for items in an array, separating the values with commas works for me as well. On my test site, this will pull products that have variations with these terms. It leaves out the products that don’t have those terms.
/wp-json/wc/v3/products?attribute=pa_color&attribute_term=42,41
If you do run into trouble formatting them that way, let me know.
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
Thank you for the responses. Please remember to update the REST API documentation.
Hello, I have the same issue. I’m trying to get the subscription with email=abc@gmail.com & Billing address fields = address_1,address_2,status
Im using the below
/wp-json/wc/v1/subscriptions?email=abc@gmail.com &_fields=address_1,address_2,status
Here, address_1,address_2 is inside ;
“status”: “on-hold”,
“billing”: {
“first_name”: “”,
“last_name”: “”,
“company”: “sss”,
“address_1”: “23232323”,
“address_2”: “”,
“city”: “”,
“state”: “”,
“postcode”: “”,
“country”: “IN”,
“email”: “abc@gmail.com”,
“phone”: “9898989898”
},