Skip to main content
Contributor I
February 10, 2021
Solved

Woocommerce integration: Unable to Access API with Credentials Specified

  • February 10, 2021
  • 15 replies
  • 2200 views

Hi, 

I’m having issue with the integration of my WooCommerce with Klaviyo. 

I generated an API key with read,write permission. I have my consumer key and consumer secret wich I paste in my integrations settings. But when I click « Connect to WooCommerce» this message appear « Unable to access API with credentials specified». I’m stuck here and don’t jnow what to do

 

 

    This topic has been closed for replies.
    Best answer by nate-klaviyo

    Hi there!

    The WooCommerce integration settings form makes a few test API calls using the provided store URL and consumer key and secret. If the calls fail or returns an unexpected response, then an error is displayed. Often times the culprit is a firewall or other plugin interfering with the API.

    One check you can perform is to make a test API call yourself and inspect the response. You can do this by navigating to a URL in your browser with the below structure, filling in the placeholders with the appropriate information:

    {store-url}/wp-json/wc/v3/products?consumer_key={consumer-key}&consumer_secret={consumer-secret}

     

    For example, if my store URL was “https://www.example.com” and my key and secret are “my-consumer-key” and “my-consumer-secret” respectively, the URL would look like this:

    https://www.example.com/wp-json/wc/v3/products?consumer_key=my-consumer-key&consumer_secret=my-consumer-secret

     

    If you paste the resulting URL into your browser, you should see product data presented in JSON format:

     

    Can you give this a try and let me know the results?

    15 replies

    nate-klaviyo
    Klaviyo Employee
    Klaviyo Employee
    February 10, 2021

    Hi there!

    The WooCommerce integration settings form makes a few test API calls using the provided store URL and consumer key and secret. If the calls fail or returns an unexpected response, then an error is displayed. Often times the culprit is a firewall or other plugin interfering with the API.

    One check you can perform is to make a test API call yourself and inspect the response. You can do this by navigating to a URL in your browser with the below structure, filling in the placeholders with the appropriate information:

    {store-url}/wp-json/wc/v3/products?consumer_key={consumer-key}&consumer_secret={consumer-secret}

     

    For example, if my store URL was “https://www.example.com” and my key and secret are “my-consumer-key” and “my-consumer-secret” respectively, the URL would look like this:

    https://www.example.com/wp-json/wc/v3/products?consumer_key=my-consumer-key&consumer_secret=my-consumer-secret

     

    If you paste the resulting URL into your browser, you should see product data presented in JSON format:

     

    Can you give this a try and let me know the results?

    MarAuthor
    Contributor I
    February 10, 2021

    Hey, 

    just tried, this the result: 

     

    nate-klaviyo
    Klaviyo Employee
    Klaviyo Employee
    February 10, 2021

    The WordPress plugin also creates some custom API endpoints that are tested by the settings form. These checks could also be triggering a settings form error if they are sending back unexpected results. What do you see for this API call (filling in placeholders where appropriate)?

    {store-url}/wp-json/klaviyo/v1/products/count?consumer_key={consumer-key}&consumer_secret={consumer-secret}

    MarAuthor
    Contributor I
    February 10, 2021

    That’s the response I get 

     

    MarAuthor
    Contributor I
    February 11, 2021

    @nate-klaviyowhat would be the next step ?

    nate-klaviyo
    Klaviyo Employee
    Klaviyo Employee
    February 11, 2021

    This error means that the Klaviyo WordPress plugin is not installed or another plugin is interfering with this API endpoint. Have you gone through the setup process for the Klaviyo WP plugin?

    https://help.klaviyo.com/hc/en-us/articles/115005255808-How-to-Integrate-with-WooCommerce#install-the-klaviyo-woocommerce-plugin1

    If the plugin is installed and this behavior persists, I would recommend opening a support ticket so we can work with you more closely - we may need to work with your IT/hosting provider to track down why this API endpoint is unavailable.

    MarAuthor
    Contributor I
    February 11, 2021

    The Klaviyo wordpress plugin as been installed. I am following every step in the « How to integrate with WooCommerce» article. 

    I have written 3 times to the Klaviyo costumer support since monday and I still no response. 

    I will look is another plugin is interfering. 

    Thank you 

    February 22, 2021

    I am experiencing the same exact problem! So frustrating. @Mar  were you able to find a solution? Thank you!

     

    I will add that my Klaviyo account was previously connected to my Shopify store, and now I am migrating over to Worpress/Woocommerce….

    February 22, 2021
    I deleted and reinstalled the Klaviyo plugin, but I still get this error message. so frustrating! What to do?

     

    June 15, 2021

    The same here :/ 

    I can access : {store-url}/wp-json/wc/v3/products?consumer_key={consumer-key}&consumer_secret={consumer-secret} 

    but in klaviyo panel I get 403