When rate request is sent for a shipment of sizeable weight but no dimensions, the rates returned are incorrect, extremely low. The request is sent with default values of 1 in the Length, Width, and Height parameters.
When the Height, Length, and Width are set to zero, or left off completely, The correct rates are returned.
<sws:Rate>
<sws:FromZIPCode>46898</sws:FromZIPCode>
<sws:ToZIPCode>97132</sws:ToZIPCode>
<sws:ToCountry>US</sws:ToCountry>
<sws:WeightLb>17</sws:WeightLb>
<sws:WeightOz>0</sws:WeightOz>
<sws:PackageType>Package</sws:PackageType>
<sws:Length>1</sws:Length>
<sws:Width>1</sws:Width>
<sws:Height>1</sws:Height>
<sws:ShipDate>2023-10-12</sws:ShipDate>
<sws:InsuredValue>207.32</sws:InsuredValue>
<sws:ToState>WA</sws:ToState>
</sws:Rate>
Returns (USPS Ground Advantage)
<Rate>
<FromZIPCode>46898</FromZIPCode>
<ToZIPCode>98010</ToZIPCode>
<ToCountry>US</ToCountry>
<Amount>8.0300</Amount>
<ServiceType>US-PS</ServiceType>
<ServiceDescription>USPS Ground Advantage</ServiceDescription>
<DeliverDays>4</DeliverDays>
<WeightLb>17</WeightLb>
<PackageType>Oversized Package</PackageType>
<Length>1</Length>
<Width>1</Width>
<Height>1</Height>
<ShipDate>2023-10-10</ShipDate>
<DeliveryDate>2023-10-14</DeliveryDate>
<InsuredValue>207.3870</InsuredValue>
Which is incorrect
When I send request with Zeroes or leave the dimensions off altogether, I get the correct amount compared to Stamps web site.
<sws:Rate>
<sws:FromZIPCode>46898</sws:FromZIPCode>
<sws:ToZIPCode>97132</sws:ToZIPCode>
<sws:ToCountry>US</sws:ToCountry>
<sws:WeightLb>17</sws:WeightLb>
<sws:WeightOz>0</sws:WeightOz>
<sws:PackageType>Package</sws:PackageType>
<sws:ShipDate>2023-10-12</sws:ShipDate>
<sws:InsuredValue>207.32</sws:InsuredValue>
<sws:ToState>WA</sws:ToState>
</sws:Rate>
Returns
<Rate>
<FromZIPCode>46898</FromZIPCode>
<ToZIPCode>97132</ToZIPCode>
<ToCountry>US</ToCountry>
<Amount>26.0400</Amount>
<ServiceType>US-PS</ServiceType>
<ServiceDescription>USPS Ground Advantage</ServiceDescription>
<DeliverDays>4</DeliverDays>
<WeightLb>17</WeightLb>
<PackageType>Package</PackageType>
<ShipDate>2023-10-12</ShipDate>
<DeliveryDate>2023-10-17</DeliveryDate>
<InsuredValue>207.32</InsuredValue>
<DimWeighting>N</DimWeighting>
This amount matches Stamps.com web user interface.
Can the plugin be modified to not send any dimensions if all product dimensions equal zero?
Thanks
When the Height, Length, and Width are set to zero, or left off completely, The correct rates are returned.
<sws:Rate>
<sws:FromZIPCode>46898</sws:FromZIPCode>
<sws:ToZIPCode>97132</sws:ToZIPCode>
<sws:ToCountry>US</sws:ToCountry>
<sws:WeightLb>17</sws:WeightLb>
<sws:WeightOz>0</sws:WeightOz>
<sws:PackageType>Package</sws:PackageType>
<sws:Length>1</sws:Length>
<sws:Width>1</sws:Width>
<sws:Height>1</sws:Height>
<sws:ShipDate>2023-10-12</sws:ShipDate>
<sws:InsuredValue>207.32</sws:InsuredValue>
<sws:ToState>WA</sws:ToState>
</sws:Rate>
Returns (USPS Ground Advantage)
<Rate>
<FromZIPCode>46898</FromZIPCode>
<ToZIPCode>98010</ToZIPCode>
<ToCountry>US</ToCountry>
<Amount>8.0300</Amount>
<ServiceType>US-PS</ServiceType>
<ServiceDescription>USPS Ground Advantage</ServiceDescription>
<DeliverDays>4</DeliverDays>
<WeightLb>17</WeightLb>
<PackageType>Oversized Package</PackageType>
<Length>1</Length>
<Width>1</Width>
<Height>1</Height>
<ShipDate>2023-10-10</ShipDate>
<DeliveryDate>2023-10-14</DeliveryDate>
<InsuredValue>207.3870</InsuredValue>
Which is incorrect
When I send request with Zeroes or leave the dimensions off altogether, I get the correct amount compared to Stamps web site.
<sws:Rate>
<sws:FromZIPCode>46898</sws:FromZIPCode>
<sws:ToZIPCode>97132</sws:ToZIPCode>
<sws:ToCountry>US</sws:ToCountry>
<sws:WeightLb>17</sws:WeightLb>
<sws:WeightOz>0</sws:WeightOz>
<sws:PackageType>Package</sws:PackageType>
<sws:ShipDate>2023-10-12</sws:ShipDate>
<sws:InsuredValue>207.32</sws:InsuredValue>
<sws:ToState>WA</sws:ToState>
</sws:Rate>
Returns
<Rate>
<FromZIPCode>46898</FromZIPCode>
<ToZIPCode>97132</ToZIPCode>
<ToCountry>US</ToCountry>
<Amount>26.0400</Amount>
<ServiceType>US-PS</ServiceType>
<ServiceDescription>USPS Ground Advantage</ServiceDescription>
<DeliverDays>4</DeliverDays>
<WeightLb>17</WeightLb>
<PackageType>Package</PackageType>
<ShipDate>2023-10-12</ShipDate>
<DeliveryDate>2023-10-17</DeliveryDate>
<InsuredValue>207.32</InsuredValue>
<DimWeighting>N</DimWeighting>
This amount matches Stamps.com web user interface.
Can the plugin be modified to not send any dimensions if all product dimensions equal zero?
Thanks