WooCommerce

Sorry, you are not allowed to create resources - WooCommerce

0.8 min read

| September 14, 2024

Problem
 

Extensiv Integration Manager is raising the following alert when trying to mark your orders as shipped:

Subject: Error adding tracking to Tracking Extension
Message: Could not add tracking data to order: XXXXXX woocommerce_rest_cannot_create: Sorry, you are not allowed to create resources.


 

Missing orders

This issue will also cause Integration Manager to miss orders because WooCommerce does not return an error message when we download orders. After resolving this issue, you must contact Integration Manager support to have any missed orders re-pulled.

 


 

Solution 1

This issue is usually caused because your WooCommerce API user is not an administrator. To fix this:
 

  1. Go to WooCommerce > Settings > Advanced > REST API
     
  2. Click on the API description you previously setup
     
  3. Select a different user who has Administrator access.
     

 

Solution 2

This issue can also be caused by your WooCommerce server settings blocking or removing certain header data required by the WooCommerce API.
 

To solve this issue, you must correct the Basic Auth header. In Apache this can be done using a rewrite rule in either your Apache config file, or in the WooCommerce .htaccess file:

 

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]


 

.htaccess

WooCommerce may overwrite changes you make to your .htaccess file. Contact WooCommerce support if you continue to have trouble with this issue.

 


 

This article explains the issue and several possible solutions: https://github.com/WP-API/Basic-Auth/issues/35
 

 

Not finding the help you need?

Contact Support