Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPS OAuth token and Commercial/Residential Addresses #64

Open
owi2000 opened this issue Jul 18, 2024 · 1 comment
Open

UPS OAuth token and Commercial/Residential Addresses #64

owi2000 opened this issue Jul 18, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request ups

Comments

@owi2000
Copy link

owi2000 commented Jul 18, 2024

With the UPS change to use OAuth tokens for their APIs, I'm having trouble with setting the residential flag for delivery addresses. UPS offers the Address Validation API free to it's customers that we've been using to get the residential/commercial status of addresses. The problem is that ShippingRates neither has the AddressValidation API included in it, nor does not allow access to get the OAuth token (it's an internal class). This means in order to access this API, I would need to generate my own token, even though the token acquired using ShippingRates would be valid for any UPS API requests for several hours. (I would prefer not to have to do this, since the goal of using ShippingRates is to simplify our interactions with the different carriers.)

I would like to see either the ShippingRates utilizing the AddressValidation API (so the dev doesn't need to set the Residential flag in requests) or the token be made available to the dev (this would necessarily include the requirement for methods to obtain a new token automatically in the event the current one expired).

I should note that the FedEx also has an Address Validation API, so this could also apply to FedEx. The rates for both services is dependent upon whether or not the address is a residential address, so including these API's in ShippingRates would make sense.

@alexeybusygin
Copy link
Owner

Sounds like a good idea! Will take this in work.

@alexeybusygin alexeybusygin self-assigned this Jul 23, 2024
@alexeybusygin alexeybusygin added ups enhancement New feature or request labels Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ups
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants