# Fixing HTTP 401 Unauthorized when calling WooCommerce's REST API

DevFeed: [Fixing HTTP 401 Unauthorized when calling WooCommerce's REST API](<https://devfeed.tech/articles/fixing-http-401-unauthorized-when-calling-woocommerce-s-rest-api-29329.md>)

Original publisher: [Read original article](<https://www.schakko.de/2020/09/05/fixing-http-401-unauthorized-when-calling-woocommerces-rest-api/>)

Author: Schakko

Published: 2020-09-05T11:39:45Z

Content type: tutorial

Language: en

Sources: [Schakko](<https://devfeed.tech/sources/schakko.md>)

Topics: [REST API](<https://devfeed.tech/topics/rest-api.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [WordPress](<https://devfeed.tech/topics/wordpress.md>), [TLS (Transport Layer Security)](<https://devfeed.tech/topics/tls.md>), [OAuth](<https://devfeed.tech/topics/oauth.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [http](<https://devfeed.tech/tags/http.md>), [oauth](<https://devfeed.tech/tags/oauth.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>), [ssl](<https://devfeed.tech/tags/ssl.md>), [tls](<https://devfeed.tech/tags/tls.md>), [wordpress](<https://devfeed.tech/tags/wordpress.md>)

## AI overview

This tutorial explains why WooCommerce's REST API can return HTTP 401 Unauthorized errors and describes troubleshooting steps involving HTTPS, Consumer Key and Consumer Secret credentials, OAuth 1.0a, environment settings, and the HTTP Authorization header.

## Source excerpt

WooCommerce returns an HTTP 401 error if you are not using HTTPS or the Authorization header is not parsed correctly by your webserver. Receiving HTTP 401 during authentication WooCommerce provides an extensive REST API with which you can automate your WordPress WooCommerce shop. WooCommerce uses a Consumer Key and Consumer [...] The post Fixing HTTP 401 Unauthorized when calling WooCommerce's REST API appeared first on schakko.de.