Knowledgebase (Articles, Tips, Faq)
Search:     Advanced search
Browse by category:

USPS Shipping Tool - Example Rate Requests

Views: 410
Posted: 20 Jan, 2009
by: Admin A.
Updated: 21 Jan, 2009
by: Admin A.

SUBJECT

List of common usage examples for retrieving rates for specific scenarios using USPS Custom Tag.

FAQ's

1. Request rate for a First Class letter weighing 1 oz shipping from zip 30324 to zip 92627.

Using original RateDomestic request

<cfmodule template="adminpro_uspsxml.cfm"
function="RateDomesticRequest"
USPSUserID="YOUR-USER-ID"
ShipFromZip5="30324"
ShipToZip5="92627"
PackageWeightLB="0"
PackageWeightOZ="1"
PackageMachinable="True"
ServiceLevel="First Class"
TestingEnvironment="False"
Debug="False"
>

NOTE: To receive valid first class mail rate you must set package to be machinable (i.e. PackageMachinable="True") in addition to packaging

View example response for above request

2. Request rate for a Priority Mail package weighing 1 lb shipping from zip 30324 to zip 92627.

Using original RateDomestic request

<cfmodule template="adminpro_uspsxml.cfm"
function="RateDomesticRequest"
USPSUserID="YOUR-USER-ID"
ShipFromZip5="30324"
ShipToZip5="92627"
PackageWeightLB="1"
PackageWeightOZ="0"
PackageSize="Regular"
ServiceLevel="Priority"
>

NOTE: Do if you use the PackageType parameter with Priority service level it must be either of the following values (as of 1/20/2009)
Flat Rate Envelope OR Flat Rate Box. If you package is neither then be sure ot omit the Package parameter as above.

View example response for above request

3. Request rate for a International package weighing 2 oz shipping to Great Britain (UK).

Using original RateIntlRequest request

<cfmodule template="adminpro_uspsxml.cfm"
function="RateIntlRequest"
USPSUserID="YOUR-USER-ID"
ShipToCountry="Great Britain"
PackageWeightLB="0"
PackageWeightOZ="2"
PackageType="Package"
TestingEnvironment="False"
Debug="False"
>

View example response for above request

Others in this Category
document Error message "Date cannot be less than current date" returned when attempting to generate a shipping
document New setup of USPS Shipping tool is giving errors/invalid response to requests
document Does the Fedex XML Shipping tool support rate requests for Fedex Freight Services?
document Do you have a tool for interfacing to UPS like you have for USPS, FedEx, DHL
document How do I print a Fedex Thermal Shipping Label
document Do I have to place your custom tag in the server "CustomTags" directory to use it, I am on a shared server?
document What connection method does your Authorize.net custom tag support
document International rate requests are failing using the Fedex Shipping Tool
document I am unable to make a multi-package rate request using the Fedex shipping tool
document DHL custom tag installation pre-requisites and potential issues



RSS