UPS API Changes

  • Posts: 24
  • Thank you received: 2
  • Hikashop Essential
5 months 1 week ago #361764

-- HikaShop version -- : 5.1.0
-- Joomla version -- : 3.10.11
-- PHP version -- : 8.0.30

Hey Support,

We are using UPS plugin for shipping method and we got this email from UPS company. We are using the plugin the way it is configuring the settings in the backend. Here is the email from UPS and we would like to know if this impacts the UPS hikashop plugin.

Email from UPS

"API Access Key Deprecation
On June 5, 2023 UPS began the sunset process for access key authentication in favor of the more secure OAuth 2.0 model for all APIs. This change impacts all API integrations and requires updates to your existing application interface. If your integration is managed by a 3rd party, please contact the provider. The migration guide linked below can help answer questions about the transition from access keys to OAuth 2.0"

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82956
  • Thank you received: 13392
  • MODERATOR
5 months 1 week ago #361767

Hi,

HikaShop has two UPS plugins included by default in it. The legacy one and the OAuth one.
I'm not clear on which one you're using. If you're using the OAuth one, then you're fine. You're already using the new API.
If you're using the legacy one, then you need to switch to the new one.
You can read more about the UPS OAuth plugin here:
www.hikashop.com/support/documentation/5...p-shipping-ups2-form

Please Log in or Create an account to join the conversation.

  • Posts: 24
  • Thank you received: 2
  • Hikashop Essential
5 months 4 days ago #361822

I will confirm which one is installed and get back to you.

The following user(s) said Thank You: Philip

Please Log in or Create an account to join the conversation.

  • Posts: 24
  • Thank you received: 2
  • Hikashop Essential
4 months 4 days ago #362454

Hey Support,

I'm using the new UPS OAuth, but I'm getting an error in the frontend. I attached some screenshots.
Can you help me understand what is missing?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82956
  • Thank you received: 13392
  • MODERATOR
4 months 3 days ago #362456

Hi,

From what I can read online ( stackoverflow.com/questions/76131695/ups...tication-information ) it seems that this issue happens when you didn't add the necessary APIs to your app in your UPS account.
As explained in the documentation link I provided in my previous message, your app needs to have an access to the Authentication API, the Rating API and the TimeInTransit API.

Please Log in or Create an account to join the conversation.

  • Posts: 24
  • Thank you received: 2
  • Hikashop Essential
3 months 2 days ago #362972

Hey Support,

Which one of the options do I need to choose to make the app works with the hikashop plugin? See screenshot.
- I want to integrate UPS technology into my business
- I want to integrate with UPS technology to represent many users

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82956
  • Thank you received: 13392
  • MODERATOR
3 months 2 days ago #362974

Hi,

You want to choose "I want to integrate UPS technology into my business"

Please Log in or Create an account to join the conversation.

  • Posts: 24
  • Thank you received: 2
  • Hikashop Essential
2 months 3 weeks ago #363136

Hey Support,

Thanks for the help. I was able to add Rating, Authorization and the Time In Transit to the app. Now I'm getting a different error. I just want to know where do I need to change the Unit of Measurement to avoid this issue. See screenshots

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82956
  • Thank you received: 13392
  • MODERATOR
2 months 3 weeks ago #363137

Hi,

In the settings of your UPS shipping method, you've selected "KG" for the "Weight unit" setting. It seems that you're based in the USA, so you want to select "LB" in that setting. You won't get that "Invalid Unit of Measurement for the given country" error anymore after that.

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum