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

USPS Shipping (RESTful) (USPSr)

Sticky

Views: 55,007

Results 541 to 558 of 558
31 Aug 2026, 9:20 PM
#541
swguy avatar

swguy

Administrator

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

USPS Shipping (RESTful) (USPSr)

I am a servant, not a master. I can't tell these people how to run their businesses. Obvious, no?

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.

3 Sep 2026, 11:41 AM
#542
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:

swguy:

Small issue for installs on very old Zen Cart installations (1.5.5, 1.5.6) - the constant FILENAME_PLUGIN_MANAGER isn't defined, so the reference in admin/includes/languages/english/extra_definitions/uspsr.php on line 42 will fail.

--> PHP Warning: Use of undefined constant FILENAME_PLUGIN_MANAGER - assumed 'FILENAME_PLUGIN_MANAGER' (this will throw an Error in a future version of PHP) in /home/scorpal/public_html/store/admin/includes/languages/english/extra_definitions/uspsr.php on line 42.

Shocked I let that one get by. I'll start working on patching it out.

I have a fix pending for this one. As a band aid, you can simply open /admin/includes/language/shipping/english/uspsr.php (you don't need to make it in the lang.uspsr.php version but you can make a similar change.

Change line 42 so that it reads:

define('MODULE_SHIPPING_USPSR_UNINSTALL_ERROR' , MODULE_SHIPPING_USPSR_ERROR . 'You cannot use this uninstaller because the module was installed by encapsulated means. Please use the standard uninstallation process from the <strong>Admin &gt; Modules &gt; Shipping</strong> page to disable the module or use <strong>Admin &gt; Modules &gt; Plugin Manager</strong> to fully uninstall it.');

For the lang.uspsr.php version, change line 51 so that is reads:

    'MODULE_SHIPPING_USPSR_UNINSTALL_ERROR' => MODULE_SHIPPING_USPSR_ERROR . 'You cannot use this uninstaller because the module was installed by encapsulated means. Please use the standard uninstallation process from the <strong>Admin &gt; Modules &gt; Shipping</strong> page to disable the module or use <strong>Admin &gt; Modules &gt; Plugin Manager</strong> to fully uninstall it.',
3 Sep 2026, 4:55 PM
#543
swguy avatar

swguy

Administrator

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

Re: USPS Shipping (RESTful) (USPSr)

Thanks for doing this.

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.

20 Sep 2026, 2:55 PM
#544
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
522
Plugin Contributions:
2

Re: USPS Shipping (RESTful) (USPSr)

Anyone else seeing this today?

Since this morning (Sept 20) our store gets every USPS rate back at $0.00. Priority Mail, Express, Ground Advantage, flat rate boxes, all zero. Retail or Commercial makes no difference. Same request as yesterday, valid token, UPS quotes normally. Zen Cart 2.2.2, USPS RESTful v1.8.4.

From the debug log, Retail request, 1.2 lb package:

"rateOptions": [
  { "totalBasePrice": 0,
    "rates": [ { "productName": "Priority Mail", "priceType": "RETAIL",
                 "price": 0, "rateIndicator": "SP", "startDate": "2026-07-12" } ] },
  ...

Extra services in the same response still show real prices, only the base rates are zero.

Is anyone else on the RESTful module seeing this today? If yours are quoting normally, which version are you on and is an EPS or permit account linked to your USPS app?

marcopolo
Zen Cart 2.2.2 | PHP 8.5.11 | MariaDB 10.11.14

20 Sep 2026, 3:16 PM
#545
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)

marcopolo:

Anyone else seeing this today?

Since this morning (Sept 20) our store gets every USPS rate back at $0.00. Priority Mail, Express, Ground Advantage, flat rate boxes, all zero. Retail or Commercial makes no difference. Same request as yesterday, valid token, UPS quotes normally. Zen Cart 2.2.2, USPS RESTful v1.8.4.

From the debug log, Retail request, 1.2 lb package:

"rateOptions": [
  { "totalBasePrice": 0,
    "rates": [ { "productName": "Priority Mail", "priceType": "RETAIL",
                 "price": 0, "rateIndicator": "SP", "startDate": "2026-07-12" } ] },
  ...

Extra services in the same response still show real prices, only the base rates are zero.

Is anyone else on the RESTful module seeing this today? If yours are quoting normally, which version are you on and is an EPS or permit account linked to your USPS app?

Can I see this log? I might need to add in a check to see that a non-zero rate is returned to prevent it from being displayed.

20 Sep 2026, 3:25 PM [edited]
#546
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)

marcopolo:

Anyone else seeing this today?

Since this morning (Sept 20) our store gets every USPS rate back at $0.00. Priority Mail, Express, Ground Advantage, flat rate boxes, all zero. Retail or Commercial makes no difference. Same request as yesterday, valid token, UPS quotes normally. Zen Cart 2.2.2, USPS RESTful v1.8.4.

From the debug log, Retail request, 1.2 lb package:

"rateOptions": [
  { "totalBasePrice": 0,
    "rates": [ { "productName": "Priority Mail", "priceType": "RETAIL",
                 "price": 0, "rateIndicator": "SP", "startDate": "2026-07-12" } ] },
  ...

Extra services in the same response still show real prices, only the base rates are zero.

Is anyone else on the RESTful module seeing this today? If yours are quoting normally, which version are you on and is an EPS or permit account linked to your USPS app?

Okay looking at this... it seems the API itself is returning all zeroes. I'm going to see if there is a workaround for now.

USPS Ticket submitted, for right now: I STRONGLY recommend disabling the USPS Restful module for right now, setting a flat rate for shipping domestically, or setting up an alternative shipping method.

GitHub Issue: https://github.com/retched/ZC-USPSRestful/issues/139

20 Sep 2026, 3:53 PM
#547
chibipaw avatar

chibipaw

Zen Follower

Join Date:
Jul 2011
Posts:
167
Plugin Contributions:
0

Re: USPS Shipping (RESTful) (USPSr)

retched:

marcopolo:

Anyone else seeing this today?

Since this morning (Sept 20) our store gets every USPS rate back at $0.00. Priority Mail, Express, Ground Advantage, flat rate boxes, all zero. Retail or Commercial makes no difference. Same request as yesterday, valid token, UPS quotes normally. Zen Cart 2.2.2, USPS RESTful v1.8.4.

From the debug log, Retail request, 1.2 lb package:

"rateOptions": [
  { "totalBasePrice": 0,
    "rates": [ { "productName": "Priority Mail", "priceType": "RETAIL",
                 "price": 0, "rateIndicator": "SP", "startDate": "2026-07-12" } ] },
  ...

Extra services in the same response still show real prices, only the base rates are zero.

Is anyone else on the RESTful module seeing this today? If yours are quoting normally, which version are you on and is an EPS or permit account linked to your USPS app?

Okay looking at this... it seems the API itself is returning all zeroes. I'm going to see if there is a workaround for now.

USPS Ticket submitted, for right now: I STRONGLY recommend disabling the USPS Restful module for right now, setting a flat rate for shipping domestically, or setting up an alternative shipping method.

GitHub Issue: https://github.com/retched/ZC-USPSRestful/issues/139

Im a few versions behind on v1.8.4. But dont think it matters.
Pretty sure its USPS side and its a matter of hurry up and wait. Disabled the USPS Restful module as for recommended.

20 Sep 2026, 4:41 PM
#548
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
522
Plugin Contributions:
2

Re: USPS Shipping (RESTful) (USPSr)

chibipaw:

retched:

marcopolo:

Anyone else seeing this today?

Since this morning (Sept 20) our store gets every USPS rate back at $0.00. Priority Mail, Express, Ground Advantage, flat rate boxes, all zero. Retail or Commercial makes no difference. Same request as yesterday, valid token, UPS quotes normally. Zen Cart 2.2.2, USPS RESTful v1.8.4.

From the debug log, Retail request, 1.2 lb package:

"rateOptions": [
  { "totalBasePrice": 0,
    "rates": [ { "productName": "Priority Mail", "priceType": "RETAIL",
                 "price": 0, "rateIndicator": "SP", "startDate": "2026-07-12" } ] },
  ...

Extra services in the same response still show real prices, only the base rates are zero.

Is anyone else on the RESTful module seeing this today? If yours are quoting normally, which version are you on and is an EPS or permit account linked to your USPS app?

Okay looking at this... it seems the API itself is returning all zeroes. I'm going to see if there is a workaround for now.

USPS Ticket submitted, for right now: I STRONGLY recommend disabling the USPS Restful module for right now, setting a flat rate for shipping domestically, or setting up an alternative shipping method.

GitHub Issue: https://github.com/retched/ZC-USPSRestful/issues/139

Im a few versions behind on v1.8.4. But dont think it matters.
Pretty sure its USPS side and its a matter of hurry up and wait. Disabled the USPS Restful module as for recommended.

Thanks for the quick reply and for getting a ticket in with USPS.

I was mid-way through a checkout upgrade when it started, so I spent some time convinced it was my own doing.

Will watch this issue and re-enable once the API is back. Appreciate the help.

marcopolo
Zen Cart 2.2.2 | PHP 8.5.11 | MariaDB 10.11.14

20 Sep 2026, 4:47 PM
#549
chibipaw avatar

chibipaw

Zen Follower

Join Date:
Jul 2011
Posts:
167
Plugin Contributions:
0

Re: USPS Shipping (RESTful) (USPSr)

marcopolo:

chibipaw:

retched:

marcopolo:

Anyone else seeing this today?

Since this morning (Sept 20) our store gets every USPS rate back at $0.00. Priority Mail, Express, Ground Advantage, flat rate boxes, all zero. Retail or Commercial makes no difference. Same request as yesterday, valid token, UPS quotes normally. Zen Cart 2.2.2, USPS RESTful v1.8.4.

From the debug log, Retail request, 1.2 lb package:

"rateOptions": [
  { "totalBasePrice": 0,
    "rates": [ { "productName": "Priority Mail", "priceType": "RETAIL",
                 "price": 0, "rateIndicator": "SP", "startDate": "2026-07-12" } ] },
  ...

Extra services in the same response still show real prices, only the base rates are zero.

Is anyone else on the RESTful module seeing this today? If yours are quoting normally, which version are you on and is an EPS or permit account linked to your USPS app?

Okay looking at this... it seems the API itself is returning all zeroes. I'm going to see if there is a workaround for now.

USPS Ticket submitted, for right now: I STRONGLY recommend disabling the USPS Restful module for right now, setting a flat rate for shipping domestically, or setting up an alternative shipping method.

GitHub Issue: https://github.com/retched/ZC-USPSRestful/issues/139

Im a few versions behind on v1.8.4. But dont think it matters.
Pretty sure its USPS side and its a matter of hurry up and wait. Disabled the USPS Restful module as for recommended.

Thanks for the quick reply and for getting a ticket in with USPS.

I was mid-way through a checkout upgrade when it started, so I spent some time convinced it was my own doing.

Will watch this issue and re-enable once the API is back. Appreciate the help.

marcopolo:

chibipaw:

retched:

marcopolo:

Anyone else seeing this today?

Since this morning (Sept 20) our store gets every USPS rate back at $0.00. Priority Mail, Express, Ground Advantage, flat rate boxes, all zero. Retail or Commercial makes no difference. Same request as yesterday, valid token, UPS quotes normally. Zen Cart 2.2.2, USPS RESTful v1.8.4.

From the debug log, Retail request, 1.2 lb package:

"rateOptions": [
  { "totalBasePrice": 0,
    "rates": [ { "productName": "Priority Mail", "priceType": "RETAIL",
                 "price": 0, "rateIndicator": "SP", "startDate": "2026-07-12" } ] },
  ...

Extra services in the same response still show real prices, only the base rates are zero.

Is anyone else on the RESTful module seeing this today? If yours are quoting normally, which version are you on and is an EPS or permit account linked to your USPS app?

Okay looking at this... it seems the API itself is returning all zeroes. I'm going to see if there is a workaround for now.

USPS Ticket submitted, for right now: I STRONGLY recommend disabling the USPS Restful module for right now, setting a flat rate for shipping domestically, or setting up an alternative shipping method.

GitHub Issue: https://github.com/retched/ZC-USPSRestful/issues/139

Im a few versions behind on v1.8.4. But dont think it matters.
Pretty sure its USPS side and its a matter of hurry up and wait. Disabled the USPS Restful module as for recommended.

Thanks for the quick reply and for getting a ticket in with USPS.

I was mid-way through a checkout upgrade when it started, so I spent some time convinced it was my own doing.

Will watch this issue and re-enable once the API is back. Appreciate the help.

I sure hope someone at the USPS side is working on a Sunday morning. Yea, that's not encouraging, is it?

20 Sep 2026, 11:35 PM
#550
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)

chibipaw:

marcopolo:

chibipaw:

retched:

marcopolo:

Anyone else seeing this today?

Since this morning (Sept 20) our store gets every USPS rate back at $0.00. Priority Mail, Express, Ground Advantage, flat rate boxes, all zero. Retail or Commercial makes no difference. Same request as yesterday, valid token, UPS quotes normally. Zen Cart 2.2.2, USPS RESTful v1.8.4.

From the debug log, Retail request, 1.2 lb package:

"rateOptions": [
  { "totalBasePrice": 0,
    "rates": [ { "productName": "Priority Mail", "priceType": "RETAIL",
                 "price": 0, "rateIndicator": "SP", "startDate": "2026-07-12" } ] },
  ...

Extra services in the same response still show real prices, only the base rates are zero.

Is anyone else on the RESTful module seeing this today? If yours are quoting normally, which version are you on and is an EPS or permit account linked to your USPS app?

Okay looking at this... it seems the API itself is returning all zeroes. I'm going to see if there is a workaround for now.

USPS Ticket submitted, for right now: I STRONGLY recommend disabling the USPS Restful module for right now, setting a flat rate for shipping domestically, or setting up an alternative shipping method.

GitHub Issue: https://github.com/retched/ZC-USPSRestful/issues/139

Im a few versions behind on v1.8.4. But dont think it matters.
Pretty sure its USPS side and its a matter of hurry up and wait. Disabled the USPS Restful module as for recommended.

Thanks for the quick reply and for getting a ticket in with USPS.

I was mid-way through a checkout upgrade when it started, so I spent some time convinced it was my own doing.

Will watch this issue and re-enable once the API is back. Appreciate the help.

I sure hope someone at the USPS side is working on a Sunday morning. Yea, that's not encouraging, is it?

I think your prayers have been answered. I just ran a sample call in Postman, I'm getting valid results again. I'm still going to add a zero check to prevent it from adding $0.00 base prices to the output call.

20 Sep 2026, 11:43 PM
#551
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
522
Plugin Contributions:
2

Re: USPS Shipping (RESTful) (USPSr)

retched:

chibipaw:

marcopolo:

chibipaw:

retched:

marcopolo:

Anyone else seeing this today?

Since this morning (Sept 20) our store gets every USPS rate back at $0.00. Priority Mail, Express, Ground Advantage, flat rate boxes, all zero. Retail or Commercial makes no difference. Same request as yesterday, valid token, UPS quotes normally. Zen Cart 2.2.2, USPS RESTful v1.8.4.

From the debug log, Retail request, 1.2 lb package:

"rateOptions": [
  { "totalBasePrice": 0,
    "rates": [ { "productName": "Priority Mail", "priceType": "RETAIL",
                 "price": 0, "rateIndicator": "SP", "startDate": "2026-07-12" } ] },
  ...

Extra services in the same response still show real prices, only the base rates are zero.

Is anyone else on the RESTful module seeing this today? If yours are quoting normally, which version are you on and is an EPS or permit account linked to your USPS app?

Okay looking at this... it seems the API itself is returning all zeroes. I'm going to see if there is a workaround for now.

USPS Ticket submitted, for right now: I STRONGLY recommend disabling the USPS Restful module for right now, setting a flat rate for shipping domestically, or setting up an alternative shipping method.

GitHub Issue: https://github.com/retched/ZC-USPSRestful/issues/139

Im a few versions behind on v1.8.4. But dont think it matters.
Pretty sure its USPS side and its a matter of hurry up and wait. Disabled the USPS Restful module as for recommended.

Thanks for the quick reply and for getting a ticket in with USPS.

I was mid-way through a checkout upgrade when it started, so I spent some time convinced it was my own doing.

Will watch this issue and re-enable once the API is back. Appreciate the help.

I sure hope someone at the USPS side is working on a Sunday morning. Yea, that's not encouraging, is it?

I think your prayers have been answered. I just ran a sample call in Postman, I'm getting valid results again. I'm still going to add a zero check to prevent it from adding $0.00 base prices to the output call.

Confirmed as well rates are being returned again!

marcopolo
Zen Cart 2.2.2 | PHP 8.5.11 | MariaDB 10.11.14

21 Sep 2026, 3:38 PM
#553
njcyx avatar

njcyx

Zen Follower

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

Re: USPS Shipping (RESTful) (USPSr)

The USPS shipping quote is normal today. It is so bad that this issue was happened during the weekend. Hopefully this glitch will not happen again...

I'm thinking, maybe it is worthy to add a fallback section in the code, so when the quoted rate is too low (like below $5), it will display a fixed quote with a very high rate (like $100). So the customer will disregard the crazy USPS quote and choose a different shipping carrier option (like FedEx/UPS). It is less likely that all shipping carriers' API are down at the same time.

21 Sep 2026, 4:13 PM [edited]
#554
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)

njcyx:

The USPS shipping quote is normal today. It is so bad that this issue was happened during the weekend. Hopefully this glitch will not happen again...

I'm thinking, maybe it is worthy to add a fallback section in the code, so when the quoted rate is too low (like below $5), it will display a fixed quote with a very high rate (like $100). So the customer will disregard the crazy USPS quote and choose a different shipping carrier option (like FedEx/UPS). It is less likely that all shipping carriers' API are down at the same time.

I have something like that in the works. Effectively, if the module gets a $0.00 base quote (meaning before add-ons like Certified Mail and what not), that method in particular will not show. Additionally, it will show an error of "I'm sorry, there are no suitable methods using this method. If you wish to use USPS, please contact the store manager and see what can be arranged."

Although I might just make it disable USPS altogether if that was the case. This should be up sometime today or tomorrow on the Github and submitted to the ZenCart directory soon thereafter.

21 Sep 2026, 6:33 PM
#555
njcyx avatar

njcyx

Zen Follower

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

Re: USPS Shipping (RESTful) (USPSr)

Hi retched, I think your solution is better than mine. Maybe it is better to disable/hide this plug-in from the checkout page, when the shipping quote is zero.

21 Sep 2026, 8:08 PM [edited]
#556
swguy avatar

swguy

Administrator

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

Re: USPS Shipping (RESTful) (USPSr)

I am seeing $0 quotes as well from the weekend (although it sounds like no additional confirmation is needed).

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.

22 Sep 2026, 9:43 PM [edited]
#557
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)

Now submitted to the Plugin Directory, module version 1.8.6. Note the following changes.

Additionally, beginning with this release the purge_uspsr.php script has been included in the "extras" directory of the archive. To use this, upload the file and run /extras/purge_uspsr.php in your browser and follow the prompts. (Be sure to edit the file as well and DO NOT upload this if you are not going to use it. There is an admin version available at /YOUR_ADMIN/index.php?cmd=uspsr_purge.php. This script will, as it is named, purge the USPSr off of your catalog by removing all database keys/values and files relating to it.

Fixed in 1.8.6

  • Fixed undefined constant warning that appeared in earlier versions of ZenCart (no Plugin Manager). [#137]
  • Fixed an issue regarding the list of zip codes in the USPS Local. (Also added the ability to provide ranges of Zip Codes.) [#135]
  • Fixed an issue caused by bad returns from the USPS API that would generate possible $0.00 quotes for shipping methods when it didn't apply. [#139]
  • Fixed an issue that could cause the module to output a blank when there was no weight. Now the module will self cancel itself if the total items weight is zero or less. (A reminder that your items should have weights to them.)
  • Fixed an issue that might have caused the "Quotes not found" error message to display even if "Show Errors" was not selected in the configuration. Now if there are no quotes available, either because of no return from the API or no matching methods, the module will soft cancel (aka, it hides itself). If you want to display the "Please contact the store owner" message, enable "Show Errors" in the configuration.
  • Fixed an issue where the module was inconsistently sending the full weight of the order versus ZenCart's "box weight".

Changed in 1.8.6

  • Stopped sending letter quote requests for items that are too heavy for First-Class Mail (13 oz) or First-Class Mail International (15.994 oz). (These will ALWAYS generate an error... so rather than waste the request call, don't send it.)

Full Changelog: https://github.com/retched/ZC-USPSRestful/compare/v1.8.5...v1.8.6


PLEASE READ THE "README_1st.md" file FIRST

This zip file includes both the Encapsulated and Non-Encapsulated forms of the module. Please read the directions in the included README.html or README.md to see how to install it and which versions of ZenCart are compatible with each version.

23 Sep 2026, 2:41 AM
#558
chibipaw avatar

chibipaw

Zen Follower

Join Date:
Jul 2011
Posts:
167
Plugin Contributions:
0

Re: USPS Shipping (RESTful) (USPSr)

Rolled out USPSr v1.8.6 to production ZC 1.5.5f . All looks good from here! Thanks @retched