Forums / Addon Shipping Modules / USPS Shipping (RESTful) (USPSr)

USPS Shipping (RESTful) (USPSr)

Sticky

Views: 54,964

Results 421 to 440 of 558
11 Feb 2026, 8:54 PM
#421
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

USPS Shipping (RESTful) (USPSr)

wsworx:

The USPS "WEB Tools API" is now discontinued.
This is what appears in my checkout window now under the "United States Postal Service" title

80040B1A - Web Tools has been retired effective January 25, 2026. For migration support, go to https://emailus.usps.com/s/usps-APIs select Onboarding radio button and API issue of API Onboarding/Upgrade or attend the daily webinars from 12pm-2pm ET through March 26, 2026. Review the latest Industry Alert at https://postalpro.usps.com/node/14807. To request an extension please go to https://forms.office.com/g/2R7Nu4X6Lq.

Does the new USPSr overcome this issue? If not is there another plugin available that uses the new USPS system?

Thanks for your help!

Yes this module serves quotes from the new API. You will need to obtain new credentials (hold your old ones) and use the module

13 Feb 2026, 11:26 AM
#422
swguy avatar

swguy

Administrator

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

Re: USPS Shipping (RESTful) (USPSr)

Two small asks: please remove the trailing { from the comment lines on line 871, 903 of includes/modules/shipping/uspsr.php so that brace matching in vim works.

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.

13 Feb 2026, 12:04 PM
#423
swguy avatar

swguy

Administrator

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

Re: USPS Shipping (RESTful) (USPSr)

When I request international quotes. I get Priority International Small/Medium/Large flat rate box quotes, but not Priority International or Priority Express International. Any idea why?

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.

13 Feb 2026, 1:29 PM
#424
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: USPS Shipping (RESTful) (USPSr)

swguy:

When I request international quotes. I get Priority International Small/Medium/Large flat rate box quotes, but not Priority International or Priority Express International. Any idea why?

Priority Mail Express Boxes are only in one size where they come in three sizes for Priority Mail.

13 Feb 2026, 1:33 PM
#425
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: USPS Shipping (RESTful) (USPSr)

swguy:

Two small asks: please remove the trailing { from the comment lines on line 871, 903 of includes/modules/shipping/uspsr.php so that brace matching in vim works.

Removed both lines, will be fixed in next release.

13 Feb 2026, 5:36 PM
#426
swguy avatar

swguy

Administrator

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

Re: USPS Shipping (RESTful) (USPSr)

retched:

Priority Mail Express Boxes are only in one size where they come in three sizes for Priority Mail.

I didn't explain this very well. I have these checkboxes checked:

Priority Intl Sm. F/R Box
Priority Intl Md. F/R Box
Priority Intl Lg. F/R Box
Priority Intl
Priority Express Intl

But I onlyl get back quotes for the first three:
Priority Intl Sm. F/R Box
Priority Intl Md. F/R Box
Priority Intl Lg. F/R Box

No quotes for:
Priority Intl
Priority Express Intl

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.

13 Feb 2026, 5:46 PM
#427
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: USPS Shipping (RESTful) (USPSr)

swguy:

I didn't explain this very well. I have these checkboxes checked:

Priority Intl Sm. F/R Box
Priority Intl Md. F/R Box
Priority Intl Lg. F/R Box
Priority Intl
Priority Express Intl

But I onlyl get back quotes for the first three:
Priority Intl Sm. F/R Box
Priority Intl Md. F/R Box
Priority Intl Lg. F/R Box

No quotes for:
Priority Intl
Priority Express Intl

Aha. Now that makes sense to which I mean it doesn't. Can you send me a log via unlisted pastebin link to my DM and I'll look at it after the weekend.

13 Feb 2026, 6:33 PM
#428
swguy avatar

swguy

Administrator

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

Re: USPS Shipping (RESTful) (USPSr)

done thank you

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.

17 Feb 2026, 6:11 PM
#429
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: USPS Shipping (RESTful) (USPSr)

swguy:

done thank you

Bugfix being worked on now, version 1.7.1 may be incoming, but if you want to fix this now:

In /includes/modules/shipping/uspsr.php (either encapsulated or non-encapsulated), go to line 663 and add:

                    // ---------------------------------------------
                    // Priority Mail Internationals
                    // Drop the Machniable / Nonstandard indicators and just call it "Priority Mail (Express) International ISC Single-piece" since the API doesn't always return those in a consistent way.
                    // ---------------------------------------------
                    if (preg_match('/Priority Mail( Express)? International (Nonstandard|Machinable) ISC Single-piece/', $name, $matches)) {
                        $name = "Priority Mail" . ($matches[1] ?? '') . " International ISC Single-piece";
                        $rate['productName'] = $name;
                    }

Internally testing this set it up to show the proper value.

17 Feb 2026, 6:32 PM
#430
swguy avatar

swguy

Administrator

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

Re: USPS Shipping (RESTful) (USPSr)

Beautiful! TY.

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.

17 Feb 2026, 8:13 PM
#431
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: USPS Shipping (RESTful) (USPSr)

dbltoe:

I had a customer who was "having problems" with the Shipping Estimator. Every time I placed an item in the cart, it worked for me.

"Well, try this one."

The weight was 0.000. Turns out they had 18 items at 0.000 and several at 0.001.

No telling how many in the world have done this, but you might want to put some comment on the estimator about an incorrect weight and advise the user to contact the store owner.

On this one, now coming to 1.8.0 (since this is a new "feature"): if the weight of the order (meaning items plus tare) is equal to zero, the module won't send a call but will instead output:

17 Feb 2026, 8:15 PM
#432
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: USPS Shipping (RESTful) (USPSr)

swguy:

Two small asks: please remove the trailing { from the comment lines on line 871, 903 of includes/modules/shipping/uspsr.php so that brace matching in vim works.

These will be removed. I'm leaving the remnant and commented out "if" statement as a reminder of what that is supposed to do.

17 Feb 2026, 10:55 PM
#433
barco57 avatar

barco57

Totally Zenned

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

Re: USPS Shipping (RESTful) (USPSr)

retched:

Bugfix being worked on now, version 1.7.1 may be incoming, but if you want to fix this now:

In /includes/modules/shipping/uspsr.php (either encapsulated or non-encapsulated), go to line 663 and add:

                // ---------------------------------------------
                // Priority Mail Internationals
                // Drop the Machniable / Nonstandard indicators and just call it "Priority Mail (Express) International ISC Single-piece" since the API doesn't always return those in a consistent way.
                // ---------------------------------------------
                if (preg_match('/Priority Mail( Express)? International (Nonstandard|Machinable) ISC Single-piece/', $name, $matches)) {
                    $name = "Priority Mail" . ($matches[1] ?? '') . " International ISC Single-piece";
                    $rate['productName'] = $name;
                }
> 
> Internally testing this set it up to show the proper value.

line 663 or 633?

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

17 Feb 2026, 10:58 PM
#434
barco57 avatar

barco57

Totally Zenned

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

Re: USPS Shipping (RESTful) (USPSr)

ok, I see, gotta be on 1.7.0 already for it to be 663

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

17 Feb 2026, 11:08 PM
#435
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: USPS Shipping (RESTful) (USPSr)

barco57:

ok, I see, gotta be on 1.7.0 already for it to be 663

Correct. This would be 1.7.0's line 663.

18 Feb 2026, 1:34 AM
#436
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,848
Plugin Contributions:
17

Re: USPS Shipping (RESTful) (USPSr)

I'm still getting a refusal to install the encapsulated 1.7.0 (before) today's fixes.

[17-Feb-2026 19:55:58 America/New_York] PHP Fatal error: Declaration of ScriptedInstaller::executeUpgrade($oldVersion) must be compatible with Zencart\PluginSupport\ScriptedInstaller::executeUpgrade() in /home/********/public_html/zc_plugins/USPSRestful/v1.7.0/Installer/ScriptedInstaller.php on line 87

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

18 Feb 2026, 1:40 AM
#437
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: USPS Shipping (RESTful) (USPSr)

dbltoe:

I'm still getting a refusal to install the encapsulated 1.7.0 (before) today's fixes.

[17-Feb-2026 19:55:58 America/New_York] PHP Fatal error: Declaration of ScriptedInstaller::executeUpgrade($oldVersion) must be compatible with Zencart\PluginSupport\ScriptedInstaller::executeUpgrade() in /home/********/public_html/zc_plugins/USPSRestful/v1.7.0/Installer/ScriptedInstaller.php on line 87

From what version are you upgrading from?

18 Feb 2026, 1:47 AM
#438
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: USPS Shipping (RESTful) (USPSr)

retched:

From what version are you upgrading from?

Also what version is your ZenCart?

18 Feb 2026, 2:08 AM
#439
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,848
Plugin Contributions:
17

Re: USPS Shipping (RESTful) (USPSr)

No upgrade.

First time load to 2.0.0

Three customers treated all our emails about USPS as spam. One was 1.5.8, so no encapsulation for them.

BTW, the process for Keys and Secrets is different now, and apparently, only one API can be added.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

18 Feb 2026, 2:17 AM
#440
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: USPS Shipping (RESTful) (USPSr)

dbltoe:

No upgrade.

First time load to 2.0.0

Three customers treated all our emails about USPS as spam. One was 1.5.8, so no encapsulation for them.

BTW, the process for Keys and Secrets is different now, and apparently, only one API can be added.

To ZenCart 2.0.0? Did you make the changes needed outlined here?
zc210 Changes Supporting encapsulated plugins

Yeah the change to API key limits took me by surprise too. It created a weird "in before the lock" situation and when they changed to the COP panel for keys, it locks you to only having one per account.

If not available to make these changes, you have to run as a traditional module instead.