- changed status to resolved
some REST API endpoints return 401
Issue #896
resolved
Comments (4)
-
-
reporter - changed status to open
I have tried this myself. The availabilities endpoint works ok, but the appointments endpoint doesn't. Both have the same product_id attribute and same creds.
-
reporter Another user reported this.
-
reporter - changed status to resolved
In my case, the issue was the wrong auth type. I was using API Key instead of “OAuth 1.0”.
- Log in to comment
Cannot reproduce. The error is most likely a result of the lack of correct API configuration. Customer should go through the configuration here: https://woocommerce.com/document/woocommerce-rest-api/. Once the Consumer Key and Consumer Secret password are created, they should add this as username/password to their API platform/client (Basic Auth).
In the past, API was open to all users with read/write priviliges, but now also requires a working API keys created on their WooCommerce sites.