Hi! I’m getting this error when i try to Connect to WooCommerce from Klaviyo Integrations:
Unable to access the orders API, please check connection settings and try again.
If I generate a new pair of keys and select Legacy API, it connects, but I want to use the new API so it can sync periodically. The site is behind Cloudflare. I tried to set a firewall rule to allow Klaviyo user agent but no luck.
I would like to know what may be causing this.
Best answer by Diyafury
I had the same issue… the credentials worked with the legacy api and not the current rest api…
Basically I discovered that If there’s an error with the orders response, then you won’t be able to connect… this happened in my case.
I tested the woocommerce orders request url with my consumer key and secret with the Postman app and noticed that there was an error in my code (a missing null check)… a very simple fix and now I can connect woocommerce with Klaviyo.
To test in postman… please see here: https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API