WooCommerce connection failing because of Cloudflare or firewall blocking
If your WooCommerce store shows an error when connecting to Greenspark, but your WooCommerce credentials are correct, your website security settings may be blocking our integration from reaching your store.
This can happen when your store uses Cloudflare, a firewall, a security plugin, or hosting-level protection that blocks traffic from certain countries, regions, IP ranges, or automated API requests.
Why this happens
Greenspark connects to your WooCommerce store through the WooCommerce REST API so we can fetch the data needed to power your impact automation. If Cloudflare or another security tool blocks requests from our integration servers, the connection may fail even when:
- Your store URL is correct
- Your WooCommerce Consumer Key is correct
- Your WooCommerce Consumer Secret is correct
- The API key has the correct permissions
- In some cases, the initial connection may appear to work, but order syncing may fail afterwards if API requests are still being blocked.
How to fix it
Please ask the person who manages your Cloudflare, firewall, hosting, or website security settings to allow Greenspark API requests. The user agent to allow is:
"user_agent": "Greenspark API / 1.0 (+https://www.getgreenspark.com/)"
In Cloudflare, this usually means creating a custom rule that allows or skips blocking rules for requests with this user agent. For best security, we recommend applying the allow rule only to WooCommerce API routes, for example:
/wp-json/wc/
or your WooCommerce REST API endpoint.
Example Cloudflare rule guidance
Your developer or hosting provider can create a Cloudflare WAF/custom rule that says:
If User Agent equals:
Greenspark API / 1.0 (+https://www.getgreenspark.com/)
Then allow the request or skip the geo-blocking/firewall rule.
If you intentionally block traffic from certain countries or regions, you do not need to disable that protection for your whole website. You only need to allow Greenspark’s API requests so the WooCommerce integration can fetch your orders.
Check your WooCommerce API credentials
Before changing firewall settings, please also make sure your WooCommerce credentials were created correctly:
- In WordPress, go to WooCommerce -> Settings
- Open the Advanced tab
- Click REST API
- Create or open your API key
- Make sure the key has the required permissions
- Copy the Consumer Key and Consumer Secret into Greenspark
- Make sure your store URL is the main website URL, for example: https://yourstore.com/
Still having issues?
If the connection still fails after allowing the Greenspark user agent, please contact us and include:
- Your WooCommerce store URL
- Confirmation that the user agent rule has been added
- Whether you use Cloudflare, another firewall, or a hosting security tool
- A screenshot of the error message
- Confirmation that your WooCommerce REST API credentials are active
Updated on: 08/05/2026
Thank you!