Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I am getting interesting results for some USPS rate calculations. Here is an example of the XML that I send

 

<RateRequest USERID="263MYTHA7103" PASSWORD="NONE">
	<Package ID="0">
			<Service>Express</Service>
			<ZipOrigination>76248</ZipOrigination>
			<ZipDestination>11201</ZipDestination>
			<Pounds>2</Pounds>
			<Ounces>2</Ounces>
			<Container>None</Container>
			<Size>REGULAR</Size>
			<Machinable>False</Machinable>
	</Package>
	<Package ID="1">
			<Service>Priority</Service>
			<ZipOrigination>76248</ZipOrigination>
			<ZipDestination>11201</ZipDestination>
			<Pounds>2</Pounds>
			<Ounces>2</Ounces>
			<Container>None</Container>
			<Size>REGULAR</Size>
			<Machinable>False</Machinable>
	</Package>
	<Package ID="2">
			<Service>Parcel</Service>
			<ZipOrigination>76248</ZipOrigination>
			<ZipDestination>11201</ZipDestination>
			<Pounds>2</Pounds>
			<Ounces>2</Ounces>
			<Container>None</Container>
			<Size>REGULAR</Size>
			<Machinable>False</Machinable>
	</Package>
</RateRequest>

 

and here is the response

 

<Package ID="0">
	<Service>Express</Service>
	<ZipOrigination>76248</ZipOrigination>
	<ZipDestination>11201</ZipDestination>
	<Pounds>2</Pounds>
	<Ounces>2</Ounces>
	<Container>NONE</Container>
	<Size>REGULAR</Size>
	<Machinable>FALSE</Machinable>
	<Zone>6</Zone>
	<Postage>22.20</Postage>
</Package>
<Package ID="1">
	<Service>Priority</Service>
	<ZipOrigination>76248</ZipOrigination>
	<ZipDestination>11201</ZipDestination>
	<Pounds>2</Pounds>
	<Ounces>2</Ounces>
	<Container>NONE</Container>
	<Size>REGULAR</Size>
	<Machinable>FALSE</Machinable>
	<Zone>6</Zone>
	<Postage>7.55</Postage>
</Package>
<Package ID="2">
	<Service>Parcel</Service>
	<ZipOrigination>76248</ZipOrigination>
	<ZipDestination>11201</ZipDestination>
	<Pounds>2</Pounds>
	<Ounces>2</Ounces>
	<Container>NONE</Container>
	<Size>REGULAR</Size>
	<Machinable>FALSE</Machinable>
	<Zone>6</Zone>
	<Postage>8.92</Postage>
</Package>

 

As you can see, the Postage for the Parcel package is 8.92 and the postage for the priority package is 7.55. Intuitively Parcel postage should not be greater than Priority postage. I verified this with the USPS Rate Calculator Web site.

 

Is anyone else having this problem?

 

Goaty

  • 2 years later...
Posted

I know I'm reviving an old thread, but I'm having the same (similar anyway) problem.

 

The USPS module is calculating First-class, Priority, and Express-Mail rates correctly, But is carrying a decimal point in the wrong spot for Parcel-Post rates.

 

For example- A 1.3 lb package is coming up with the 13.0 lb Parcel-Post rate.

 

Help!

 

I am getting interesting results for some USPS rate calculations. Here is an example of the XML that I send

 

<RateRequest USERID="263MYTHA7103" PASSWORD="NONE">
	<Package ID="0">
			<Service>Express</Service>
			<ZipOrigination>76248</ZipOrigination>
			<ZipDestination>11201</ZipDestination>
			<Pounds>2</Pounds>
			<Ounces>2</Ounces>
			<Container>None</Container>
			<Size>REGULAR</Size>
			<Machinable>False</Machinable>
	</Package>
	<Package ID="1">
			<Service>Priority</Service>
			<ZipOrigination>76248</ZipOrigination>
			<ZipDestination>11201</ZipDestination>
			<Pounds>2</Pounds>
			<Ounces>2</Ounces>
			<Container>None</Container>
			<Size>REGULAR</Size>
			<Machinable>False</Machinable>
	</Package>
	<Package ID="2">
			<Service>Parcel</Service>
			<ZipOrigination>76248</ZipOrigination>
			<ZipDestination>11201</ZipDestination>
			<Pounds>2</Pounds>
			<Ounces>2</Ounces>
			<Container>None</Container>
			<Size>REGULAR</Size>
			<Machinable>False</Machinable>
	</Package>
</RateRequest>

 

and here is the response

 

<Package ID="0">
	<Service>Express</Service>
	<ZipOrigination>76248</ZipOrigination>
	<ZipDestination>11201</ZipDestination>
	<Pounds>2</Pounds>
	<Ounces>2</Ounces>
	<Container>NONE</Container>
	<Size>REGULAR</Size>
	<Machinable>FALSE</Machinable>
	<Zone>6</Zone>
	<Postage>22.20</Postage>
</Package>
<Package ID="1">
	<Service>Priority</Service>
	<ZipOrigination>76248</ZipOrigination>
	<ZipDestination>11201</ZipDestination>
	<Pounds>2</Pounds>
	<Ounces>2</Ounces>
	<Container>NONE</Container>
	<Size>REGULAR</Size>
	<Machinable>FALSE</Machinable>
	<Zone>6</Zone>
	<Postage>7.55</Postage>
</Package>
<Package ID="2">
	<Service>Parcel</Service>
	<ZipOrigination>76248</ZipOrigination>
	<ZipDestination>11201</ZipDestination>
	<Pounds>2</Pounds>
	<Ounces>2</Ounces>
	<Container>NONE</Container>
	<Size>REGULAR</Size>
	<Machinable>FALSE</Machinable>
	<Zone>6</Zone>
	<Postage>8.92</Postage>
</Package>

 

As you can see, the Postage for the Parcel package is 8.92 and the postage for the priority package is 7.55. Intuitively Parcel postage should not be greater than Priority postage. I verified this with the USPS Rate Calculator Web site.

 

Is anyone else having this problem?

 

Goaty

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...