• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio 
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • WordPress AI Features
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio  
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • WordPress AI Features
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / WooCommerce REST API 401 Error – “Sorry, you cannot list resources

WooCommerce REST API 401 Error – “Sorry, you cannot list resources

  • Unknown's avatar
    ashwinlohiya16 · Member · Apr 22, 2026 at 11:38 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hi,

    I’m facing an issue with WooCommerce REST API authentication.

    Error

    When I try to connect using API credentials, I get:

    401 Unauthorized
    WooCommerce: “Sorry, you cannot list resources.”

    Setup

    • Generated Consumer Key and Consumer Secret
    • Permissions set to Read/Write
    • Using external application (n8n) to connect via API
    • Store URL is correct

    What I’ve already tried

    • Regenerated API keys multiple times
    • Disabled all plugins one by one (no change)
    • Checked user role (Admin)
    • Retested multiple times

    Issue

    Even with correct credentials, the API always returns 401 Unauthorized

  • Unknown's avatar
    james3265166 · Member · Apr 22, 2026 at 5:30 pm
    • Copy link Copy link

    The most likely culprit for a 401 error when the keys are correct is that your server’s Apache or Nginx configuration is stripping the ‘Authorization’ header before it reaches WordPress. This happens frequently on shared hosting or behind certain firewalls. To fix this, you should try adding a specific ‘Rewrite’ rule to your .htaccess file that explicitly tells the server to pass the Authorization header through to PHP. Additionally, ensure your Permalink settings are set to anything other than ‘Plain,’ as the REST API requires ‘pretty’ permalinks to function. If you are using HTTPS (which is required for the REST API), make sure n8n is hitting the https:// version of your URL, as a redirect from http to https will often drop the authentication headers in transit.

Log in or create an account to reply
Log in Create Account

Tags

  • account
  • payment
  • WooCommerce

About this topic

  • In: Support
  • 2 participants
  • 1 reply
  • Last activity 2 weeks
  • Latest reply from ashwinlohiya16

Have a question?

Get in touch
Back to Top

Couldn't find what you needed?

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • WordPress AI Features
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions