Zen Cart Logo
Forums / Addon Shipping Modules / UPS Shipping using RESTful/OAuth API [Support Thread]

UPS Shipping using RESTful/OAuth API [Support Thread]

Sticky

Views: 45,486

Results 121 to 140 of 221
26 Apr 2024, 1:56 PM
#121
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,717
Plugin Contributions:
56

UPS Shipping using RESTful/OAuth API [Support Thread]

This is a weird situation that might be worth documenting on

https://github.com/lat9/upsoauth/wiki/Creating-Your-OAuth-Client-ID-and-Client-Secret

below "associate an existing account or create a new one"

If a developer is installing this module, and the business does not have an existing account, you will have to choose "create a new account."

It's best to get the storeowner to go through the account creation process, because they will verify your identity with an EIN or Credit Card number (which the developer probably won't have).

(It seems odd to me that someone would not have a shipping account set up, but this has happened to me a few times and it's always a pain. I think the most common explanation is that they just need a price from UPS, and somehow the shipping is being taken care of by someone else or in some other way.)

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Apr 2024, 3:21 PM
#122
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
370
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

swguy:

The old UPS API had a way to look up tracking numbers based on the order ID that a shipper used:

$tracking = new Ups\Tracking($accessKey, $userId, $password);
$tracking->setShipperNumber($my_shipper_number);
$shipment = $tracking->trackByReference($order_id);

Have you seen anything like this in your travels with the new API? It seems like they expect you to have the tracking number.
(The use case is shipping packages using UPS Worldship and then wanting to pull the tracking numbers into Zen Cart.)

One side note regarding this post, maybe not related.

We are using Shipworks software and we import order details from the website. When we create the shipping labels for new orders, shipworks will automatically put the order number as the reference number to the shipping label. Maybe other shipping softwares have the similar features.

I just tried to search the package via reference number/order number on UPS websites and it worked. I also need to enter ship date range and zipcode info together with the order number.

26 Apr 2024, 4:15 PM
#123
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,717
Plugin Contributions:
56

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

We are using Shipworks software and we import order details from the website. When we create the shipping labels for new orders, shipworks will automatically put the order number as the reference number to the shipping label.

This is very useful - thanks for the idea.

I just tried to search the package via reference number/order number on UPS websites and it worked. I also need to enter ship date range and zipcode info together with the order number.

Yes, the just don't have this capability from the API (although they claim to be working on it).

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

23 May 2024, 8:52 PM
#124
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,104
Plugin Contributions:
56

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

v1.3.5 of UPS/OAuth-RESTful is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2374

This release removes the string type-hints from the API class' function, enabling the shipping module to be used without edits on sites still running PHP 5.6.

Those sites really, really need to be upgraded but given that the UPS-XML method's going to disappear in a week, I'm giving them a break.

2 Jul 2024, 3:58 PM
#125
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
142
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

Any chance we will see shipping dimensions added to this module to take advantage of the new feature in 2.0 Zen Cart Release?

2 Jul 2024, 5:12 PM
#126
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,104
Plugin Contributions:
56

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

n8pbm:

Any chance we will see shipping dimensions added to this module to take advantage of the new feature in 2.0 Zen Cart Release?
I'll need to review the UPS API to see where that information can be supplied.

13 Jul 2024, 9:21 PM
#127
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

running UPS 1.3.5v on zc 2.0.1

The UPS shipping option is not displayed as a shipping option. USPS does display as a shipping option.

UPS Rates Client ID in the setup matches UPS Website

UPS Client Secret ID in the setup matches UPS Website

Plugin files in same folders as the plugin download

Uninstalled and re-installed just to make sure I did not make a mistake installing.

The log file has the following information.

Error "code": "250002","message": "Invalid Authentication Information."

Does anyone have any idea what Authentication Information the error might be referring to?

13 Jul 2024, 9:39 PM
#128
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,104
Plugin Contributions:
56

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

jodean:

running UPS 1.3.5v on zc 2.0.1

The UPS shipping option is not displayed as a shipping option. USPS does display as a shipping option.

UPS Rates Client ID in the setup matches UPS Website

UPS Client Secret ID in the setup matches UPS Website

Plugin files in same folders as the plugin download

Uninstalled and re-installed just to make sure I did not make a mistake installing.

The log file has the following information.

Error "code": "250002","message": "Invalid Authentication Information."

Does anyone have any idea what Authentication Information the error might be referring to?
Did you follow the instructions provided in the Wiki (https://github.com/lat9/upsoauth/wiki/Creating-Your-OAuth-Client-ID-and-Client-Secret%29? Especially, adding the App?

If you enable the shipping-module's debug, perhaps the UPS response would contain additional details ... you could post the results back here.

14 Jul 2024, 1:41 PM
#129
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

Yes, the installation instructions were followed. Bellow is the contents of the log file. The only clue that I saw was at the bottom indicating that there is "Invalid Authentication Information" but the client ID and client secret in the setup match's the application setup on the UPS website. Not knowing what "Invalid Authentication Information" could be missing leaves me at a loss to the cause of the problem.

2024-07-13 16:08:36: Existing OAuth token is present.
2024-07-13 16:08:37: Existing OAuth token is present.

2024-07-13 16:08:37: RAW Rate Request
{
"RateRequest": {
"Request": {
"TransactionReference": {
"CustomerContext": "CustomerContext",
"TransactionIdentifier": "TransactionIdentifier"
}
},
"PickupType": {
"Code": "03"
},
"CustomerClassification": {
"Code": "04"
},
"Shipment": {
"Shipper": {
"Address": {
"City": "Nolensville",
"StateProvinceCode": "TN",
"PostalCode": "37135",
"CountryCode": "US"
},
"ShipperNumber": "J3706H"
},
"ShipTo": {
"Address": {
"City": "Nolensville",
"StateProvinceCode": "TN",
"PostalCode": "37135",
"CountryCode": "US",
"ResidentialAddressIndicator": "Y"
}
},
"DeliveryTimeInformation": {
"PackageBillType": "02"
},
"ShipmentRatingOptions": {
"NegotiatedRatesIndicator": "Y"
},
"Package": [
{
"PackagingType": {
"Code": "02"
},
"PackageWeight": {
"UnitOfMeasurement": {
"Code": "LBS"
},
"Weight": "0.01650"
},
"PackageServiceOptions": {
"DeclaredValue": {
"CurrencyCode": "USD",
"MonetaryValue": "2"
}
}
}
]
}
}
}

2024-07-13 16:08:37: {
"response": {
"errors": [
{
"code": "250002",
"message": "Invalid Authentication Information."
}
]
}
}

14 Jul 2024, 2:37 PM
#130
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

Based on google searches you may have not selected all of the products associated with the created app in your UPS account

"O Auth will be chosen automatically; you'll need to tick the boxes next to Rating and Time in Transit products.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

14 Jul 2024, 7:56 PM
#131
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

Yes, that was the solution. It didn't make much sense based on the error message. Thanks

25 Aug 2024, 3:22 PM
#132
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,104
Plugin Contributions:
56

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

v1.3.6 of UPS/OAuth-RESTful is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2374

This release contains changes associated with these GitHub issues:

#33: Return error messages for display to the customers.
#34: Don't warn admins when an auto-update is going to occur.
#35: Include zc158+ array-formatted language file; required for zc210 and later.

3 Nov 2024, 2:45 PM
#133
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,717
Plugin Contributions:
56

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

It appears the "Who should we contact?" screen you have to fill out during App creation has been broken by UPS. (You can't submit the form.).
This will block you from setting up UPS REST for now until it is fixed.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

4 Nov 2024, 2:37 PM
#134
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,104
Plugin Contributions:
56

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

swguy:

It appears the "Who should we contact?" screen you have to fill out during App creation has been broken by UPS. (You can't submit the form.).
This will block you from setting up UPS REST for now until it is fixed.
Sweet ....

4 Nov 2024, 4:39 PM
#135
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,717
Plugin Contributions:
56

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

OK this issue has been fixed.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

14 Jan 2025, 4:53 PM
#136
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,104
Plugin Contributions:
56

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

v1.3.7 of UPS-Oauth/RESTful is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2374

This release contains changes associated with the following GitHub issues:

#38: Correct returned array when UPS reports an error
#42: tax_class needs to be set for "Edit Orders" to determine shipping tax rate

10 Feb 2025, 4:20 PM
#137
pazdar avatar

pazdar

Zen Follower

Join Date:
Jan 2008
Posts:
174
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

Ground service option is not showing up in test order. Yes, it is checked off on the UPS module. I checked the error log, on the error page it "ground service" does not show up under "getConfiguredUpsQuotes"

Any ideas

10 Feb 2025, 5:47 PM
#138
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,104
Plugin Contributions:
56

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

pazdar:

Ground service option is not showing up in test order. Yes, it is checked off on the UPS module. I checked the error log, on the error page it "ground service" does not show up under "getConfiguredUpsQuotes"

Any ideas
I just verified that UPS Ground shows as an option on my test site. If it's enabled, I'm not sure what is different for your site.

10 Feb 2025, 7:02 PM
#139
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
370
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

lat9:

I just verified that UPS Ground shows as an option on my test site. If it's enabled, I'm not sure what is different for your site.

UPS ground is displayed properly on my site as well.

19 Feb 2025, 5:54 PM
#140
pazdar avatar

pazdar

Zen Follower

Join Date:
Jan 2008
Posts:
174
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

I've been getting the run around from UPS for the past week; they don't seem to be able to get the information I sent them concerning this. Maybe some here could direct me. Here is what I'm seeing:

Attachment 20913

https://www.pazdarwinery.com
Website Admin Settings
UPS shipping module
(I “X”’d out my client secret

United Parcel Service v1.3.7

United Parcel Service

UPS OAuth Version
1.3.7

Enable UPS Shipping
True

Sort order of display.
2

Tax Class
--none--

UPS Api Class
UpsOAuthApi

Shipping Zone
--none--

UPS Rates Client ID
xwzH1woJ5SqYd0EZbjUnHtyzZrXgF3V4bByc4yAzqGKeQuUs

UPS Rates Client Secret
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Test or Production Mode
Production

UPS Rates Shipper Number
E7Y067

Shipping Origin
US Origin

Origin Country
US

Origin State/Province
NY

Origin City
Scotchtown

Origin Zip/Postal Code
10941

Pickup Method
Letter Center

Packaging Type
Customer Package

Customer Classification Code
00

UPS Display Options
Display transit time

Shipping Delay
1

Unit Weight
LBS

Quote Type
Residential

UPS Currency Code
USD

Enable Insurance
False

Shipping Methods
Next Day Air [01], 2nd Day Air [02], Ground [03], 3 Day Select [12], Next Day Air Saver [13], Next Day Air Early [14], Express Saver [65]

Handling Fee: Next Day Air
8.75

Handling Fee: 2nd Day Air
8.75

Handling Fee: Ground
8.75

Handling Fee: Worldwide Express

Handling Fee: Worldwide Expedited

Handling Fee: Standard

Handling Fee: 3 Day Select
8.75

Handling Fee: Next Day Air Saver
8.75

Handling Fee: Next Day Air Early
8.75

Handling Fee: Worldwide Express Plus

Handling Fee: 2nd Day Air A.M.

Handling Fee: Express Saver
8.75

Fixed Handling Fee, Order or Box?
Order

Check for Updates?
Always

Enable debug?
true