401 Unauthorized API Response (and fix)

Created on 2 December 2024, about 2 months ago

Problem/Motivation

I received the following error code after enabling debugging and not seeing any rates returned.

Client error: `POST https://onlinetools.ups.com/api/rating/v1/Shop` resulted in a `401 Unauthorized` response: {"response":{"errors":[@"code":"250002","message":"Invalid Authentication Information."]}}

The issue was that I did not enable "Rating" as a service in the API key setup on UPS. This is clearly documented on the home page of the module but I somehow missed this during setup and did some searching for the error but didn't find any results. So posting this here for easier future searches if someone else runs into the same issue.

Steps to reproduce

Add API information and go to checkout.

Proposed resolution

Read the documentation!

For the mods I wasn't sure how to categorize this so feel free to alter/close it.

πŸ“Œ Task
Status

Active

Version

3.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States dbroll

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024