Hi @ariban99,
With the WooCommerce REST API, 401 Unauthorized errors usually indicate your requests are not being authenticated. These will usually look something like this below.
“code”: “woocommerce_rest_cannot_view”,
“message”: “Sorry, you cannot view this resource.”,
“data”: {
“status”: 401
With regards to the WooCommerce REST API, access codes for that can be set from inside your WooCommerce site by following this documentaiton.
https://docs.woocommerce.com/document/woocommerce-rest-api/
For the developer level documentation, you can find located on this site below and this covers authentication and all of the endpoints and parameters which can be accessed via the REST API.
https://woocommerce.github.io/woocommerce-rest-api-docs/#introduction
To test API calls, there is some information on testing API calls using an App called Postman and I’ve referenced that for you below too.
https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API
I hope this helps.