Sorry, you are not allowed to create resources - WooCommerce

Problem

CartRover 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 CartRover to miss orders because WooCommerce does not return an error message when we download orders. After resolving this issue, you must contact CartRover 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:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

.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