Currently, no version of the Rate API is running on USPS test servers (as noted in CountMurphy in a previous comment). However, you need several successful API requests on the test server before your account is approved to access the server. After a few years ago with USPS, they pointed me to the TrackV2 API certification. It also gives you access to the Rate API.
Here are two examples of TrackV2 requests I received from USPS support. Be sure to include the actual value of USERID. You must use these exact label numbers.
Example # 1
http://production.shippingapis.com/ShippingAPITest.dll?API=TrackV2 &XML=<TrackRequest USERID="xxxxxxxx"> <TrackID ID="EJ958083578US"></TrackID></TrackRequest>
Example # 2
http://production.shippingapis.com/ShippingAPITest.dll?API=TrackV2 &XML=<TrackRequest USERID="xxxxxxxx"> <TrackID ID="EJ958088694US"></TrackID></TrackRequest>
Loren paulsen
source share