Skip to main content
Solved

Unable to access: woocommerrce-shop-url.com/wc-api/v1. 403 authorization error


Forum|alt.badge.img+2

I’m trying to integrate my woocommerce shop with klaviyo. I regenerated my access keys and secret and have tried connecting using postman and that works fine. 

The postman URL that i tried is https://in.boredgamecompany.com/wp-json/wc/v3/orders/

My shop URL is https://in.boredgamecompany.com and my secret and password is in the integration. However i get error 

Unable to access: https://in.boredgamecompany.com/wp-json/wc/v3/. 403 authorization error

 

Im not sure how to proceed since all my campaigns are blocked due to this.

 Please assist

Best answer by moizmb

This is solved. We had to add the Klaviyo user agent to allow access to our api in our firewall settings

View original
Did this topic or the replies in the thread help you find an answer to your question?

5 replies

Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 1 reply
  • Answer
  • May 1, 2021

This is solved. We had to add the Klaviyo user agent to allow access to our api in our firewall settings


David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • May 1, 2021

Hello @moizmb,

Thanks for contributing to our Klaviyo Community and sharing that solution! 

Just to add on for other users who may have a similar issue in the future, Klaviyo/1.0 is the user agent request header Klaviyo sends in any outgoing requests. This can be used to make sure that firewalls aren't blocking Klaviyo traffic for the integration.

-David


Forum|alt.badge.img+1

Hi there - I have the same issue but I do not understand what the solution suggested is? Can you clarify step to take to fix the issue?

Thank you


Taylor Tarpley
Community Manager
Forum|alt.badge.img+60
  • Community Manager
  • 2148 replies
  • January 28, 2022

Hi @Cool Cats Cartel

 

Would love to help shed some clarity on exactly what’s happening here! 

 

 The 403 authorization error is connected to firewalls you have set up. If you have any type of firewall or protective layer that tries blocking suspicious looking requests, it could be blocking Klaviyo’s integration request which would stop the integration from being created. Since your firewall is potentially blocking our requests, as Klaviyo uses dynamic IPs, we do not provide a range of IPs to our customers. Instead, we recommend whitelisting our user agent, which is 'Klaviyo/1.0'. Whitelisting our user agent will help let your server know that request from Klaviyo can be trustworthy and safe! Thus, allowing your the integration/sync to be complete!

 

Have a great weekend! 

-Taylor 


Forum|alt.badge.img+1

Still clear as mud. LOL Whitelist where? Wordfence? cPanel? htaccess? other?

thanks.