skip to Main Content

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


  1. Chosen as BEST ANSWER

    Reset admin and it worked like a charm, weird as hell but yep.


  2. 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:

    https://www.example.com/wp-json/wc/v3/customers?consumer_key=123&consumer_secret=abc
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search