Sorry, you are not allowed to create resources - WooCommerce

Sorry, you are not allowed to create resources - WooCommerce

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


    • Related Articles

    • Invalid response from WooCommerce

      Problem You are receiving the following error message in Extensiv Integration Manager: Invalid response from WooCommerce. Integration Manager only uses the native functionality built into WooCommerce without modifying it in any way. Integration ...
    • Error adding notes to order - WooCommerce

      Problem After orders ship, Extensiv Integration Manager is raising the following alert: Error adding notes to order Could not add tracking note to order: XXXX You do not have permission to create order notes Solution In the left pane of the ...
    • Cannot connect to WooCommerce site

      Problem Extensiv Integration Manager cannot connect to WooCommerce site. Solution Make sure you have WooCommerce version 3.0.0 or above. Having the latest version can help as well. This can be found at WooCommerce > System Status > WC Version Upgrade ...
    • Cannot communicate securely with peer - WooCommerce

      Problem CarotRover displays the following error message when trying to communicate with WooCommerce: Could not confirm order: Cannot communicate securely with peer: no common encryption algorithm(s). Solution If you see this error, go into you ...
    • API key provided does not have write permissions - WooCommerce

      Problem Extensiv Integration Manager displays the following error message when trying to communicate with WooCommerce: Could not confirm order: The API key provided does not have write permissions Solution In the left pane of the WooCommerce ...