so I’ve been trying to get the WooCommerce REST API to give me single users and all users information to no avail, I keep getting the error:
{
"code": "woocommerce_rest_cannot_view",
"message": "Sorry, you cannot list resources.",
"data": {
"status": 403
}
}
Using Basic Auth with an https address, the API has both read/write permissions as well.
Using the format of:
https://exampledomain.com/wp-json/wc/v3/customers/
2
Answers
Reset admin and it worked like a charm, weird as hell but yep.
It might be that your server doesn’t parse the Authorization header correctly. Try to to send the credentials as query string parameters like this: