Invalid API Key in cart
-
Summary: My store is integrated with Printful (drop-shipper) using its Printful Integration plugin. When I put an order in my cart, the “Shipping” field shows “Invalid API Key.” After multiple rounds with Printful and my hosting service, the latter identified that Woo is calling for the TaxJar plugin. (I had updated to Woo 9.0, but Printful had me revert to 8.2.2.) I request your advice on what to do next, please.
Full details:
My Woocommerce store is integrated with Printful, my drop-shipper. Shipping rates in the Woo Cart are populated through the Printful Integration plugin. Currently in my Cart, at “Shipping,” this error message appears: “Error: Invalid API key.” I do not know how long the problem has existed; I just noticed it on Saturday. I tried creating a new key in Woo and entering it with Printful. I have also tried both the Legacy Rest API (using that Woo plugin) and creating a new one.
Printful Customer Support reviewed the store’s integration logs and found multiple cases of this message: “Error: Invalid response from your WooCommerce store. Please make sure your site is working and no plugins are blocking WooCommerce API access.”
I contacted Printful, which had me revert to an earlier version of Woo, then sent other suggestions on the server side. My hosting service responded:
———–
Checking on amrevnc.com, everything seems to be in order. The error logs
show no issues related to WooCommerce and, while there are a few warnings
related to the must use plugins on the site, the install shows no
permission issues on files or anything else that would cause a 403 error
from our end.
That being said, I turned on WordPress debugging mode and tried
calculating shipping for an item, and got the same error. The debug log
shows the following:
[09-Jul-2024 12:20:27 UTC] :::: TaxJar Plugin requested :::: (WCS Tax)
[09-Jul-2024 12:20:27 UTC] :::: TaxJar API called :::: (WCS Tax)
[09-Jul-2024 12:20:27 UTC] :::: TaxJar API request validation :::: (WCS
Tax)
[09-Jul-2024 12:20:27 UTC] API request is in good format. (WCS Tax)
[09-Jul-2024 12:20:27 UTC] Requesting: taxjar/v2/taxes -
{"from_country":"US","from_state":"NC","from_zip":"27713","from_city":"Durham","from_street":"5414
Loyal
Place","to_country":"default","to_state":"California","to_zip":"90210","to_city":"Beverly
Hills","to_street":false,"shipping":"0","plugin":"woo","line_items":[{"id":"6517-aea82fd1c73faba8d41ea7f4d78447cb","quantity":1,"product_tax_code":"","unit_price":"25.99","discount":"0"}]}
(WCS Tax)
[09-Jul-2024 12:20:27 UTC] Error retrieving the tax rates. Received
(406): {"status":"406","error":"Not Acceptable","detail":"to_country must
be a two-letter ISO code."} (WCS Tax)
[09-Jul-2024 12:20:27 UTC] Received: none. (WCS Tax)
According to this, a plugin called TaxJar is being called, however, I
don't see any install for the plugin, not even a directory created for it
on the server, so it's likely this is the cause. My suggestion would be
to reach out to WooCommerce's support, explain the situation, and maybe
even providing the errors printed on the debug log above, to see what
they say.The page I need help with: [log in to see the link]
- The topic ‘Invalid API Key in cart’ is closed to new replies.