• Resolved akimbokm

    (@akimbokm)


    I am working on a client’s website that is using the USPS Extension to calculate shipping. (The site was built with GoDaddy’s web design service and they hold the license to the plugin extension, so I can’t get support directly from WooCommerce.)

    I noticed that our site is no longer offering USPS shipping rates, and see in the logs that the default user ID is not authorized. Per some of the other posts I have seen, I went ahead and created my own USPS ID to use. Unfortunately, I am still getting the same error message in the log whether I use my own USPS ID or the default one. This is the message:

    10-18-2021 @ 12:32:18 - Error: Unexpected USPS Response: <?xml version="1.0" encoding="UTF-8"?>
    <Error><Number>80040B1A</Number><Description>Authorization failure.  You are not authorized to connect to this server.</Description><Source>USPSCOM::DoAuth</Source></Error> (calculate_shipping)
    

    Can anyone advise me on what to do next? Thank you!!

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter akimbokm

    (@akimbokm)

    UGH. Never mind.

    I just poked through all the shipping options on the site and they were NOT using the extension correctly. I think I am good now.

    Is that issue solved for you?

    Thread Starter akimbokm

    (@akimbokm)

    Yes, it’s been resolved.

    Can you share how you resolved it? And is this the WooCommerce Shipping & Tax extension? Or just Shipping? (There is no place to enter a username for Shipping & Tax).

    I’d love to hear, too, how this was resolved.

    Thread Starter akimbokm

    (@akimbokm)

    The client’s website has both the WooCommerce Shipping & Tax plugin AND the WooCommerce USPS Shipping plugin (paid extension) installed.

    The shipping zones were all set up to use the Shipping & Tax plugin connection to the USPS API. This is what is broken and giving the error message.

    I switched the shipping zones to use the WooCommerce USPS Shipping plugin instead, and now the rates are being retrieved correctly. (This is the plugin that allows for adding the username from the post office.)

    I believe the WooCommerce USPS Shipping plugin is the one that is $79 a year. Maybe they’re kicking us off the free one :'(

    I’m having the same issue.

    Here is an answer from WooCommerce support for this plugin as of this morning:

    Hi there,
    
    Welcome to WooCommerce support, we are glad to help you out!
    
    10-19-2021 @ 00:59:40 - Error: Unexpected USPS Response: <?xml version="1.0" encoding="UTF-8"?>
    <Error><Number>80040B1A</Number><Description>Authorization failure. You are not authorized to connect to this server.</Description><Source>USPSCOM::DoAuth</Source></Error> (calculate_shipping)
    
    We have learned there is an issue with our default USPS API account that is pre-populated when you activate the USPS Shipping extension. I am very sorry for the inconvenience at this time. In the meantime, please move forward with the steps below toy fix the issue right away.
    Please follow the steps below.
    
    Step 1
    
    Visit this USPS site Web Tools APIs > Click Register Now button
    https://www.usps.com/business/web-tools-apis/welcome.htm
    
    Fill our all necessary information, then click "Submit" button.
    
    Step 2
    
    After successful sign up, you will receive an email from USPS. Please copy the Username ID shown there in the email.
    
    https://d.pr/i/yZYrPP
    Image link: https://d.pr/i/yZYrPP
    
    Final Step
    
    Navigate to WooCommerce > Settings > Shipping > USPS then paste to swap the current one with the User ID you just copied.
    
    https://d.pr/i/qJOrPK
    Image link: https://d.pr/i/qJOrPK
    
    Sometimes, this does not solve the issue right away. If you still cannot see the rates returned, please clear server-side/website cache.
    
    Moving forward, we will be asking our customers who use USPS Shipping to obtain their own User ID (rather than pre-populating the User ID on our end). So once you are finished, you will be good to go!
    
    Please let us know so we can help you out further, thanks!
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘USPS API not authorized’ is closed to new replies.