ShipRateQuoteDataSource.QuoteForShipment()

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
derekz
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 38
Joined: Mon Nov 03, 2008 3:13 pm

ShipRateQuoteDataSource.QuoteForShipment()

Post by derekz » Fri May 22, 2009 11:22 am

I'm trying to get USPS working in my store. For some reason, ShipRateQuoteDataSource.QuoteForShipment() is calling out to USPS, and the log indicates a sucessful pull:
Send: API=RateV3&XML=<?xml version="1.0"?><RateV3Request USERID="Private"><Package ID="0"><Service>ALL</Service><ZipOrigination>xxxxx</ZipOrigination><ZipDestination>xxxxx</ZipDestination><Pounds>65</Pounds><Ounces>0.0</Ounces><Container>VARIABLE</Container><Size>OVERSIZE</Size><Width>24.0000</Width><Length>30.0000</Length><Height>24.0000</Height><Girth>1152.00</Girth><Machinable>true</Machinable></Package></RateV3Request>

Receive: <?xml version="1.0"?>
<RateV3Response><Package ID="0"><ZipOrigination>xxxxx</ZipOrigination><ZipDestination>xxxxx</ZipDestination><Pounds>65</Pounds><Ounces>0.0</Ounces><Size>OVERSIZE</Size><Machinable>TRUE</Machinable><Zone>3</Zone><Postage CLASSID="4"><MailService>Parcel Post</MailService><Rate>64.65</Rate></Postage></Package></RateV3Response>

The Collection return does not include the rate returned from the call to USPS.

btw...I have UPS working fine in the store, and the values are returning correctly.

What gives with the USPS?

Thanks

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: ShipRateQuoteDataSource.QuoteForShipment()

Post by mazhar » Mon May 25, 2009 10:39 am

Make sure that after setting USPS you have added desired shipping methods of USPS to available shipping methods list.

derekz
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 38
Joined: Mon Nov 03, 2008 3:13 pm

Re: ShipRateQuoteDataSource.QuoteForShipment()

Post by derekz » Tue May 26, 2009 8:07 am

Did that already, with no help.

We are using only 1 shipping method "USPS First-Class Mail"

For USPS, does other metadata within the product need to be set (outside of weight and dimensions)?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: ShipRateQuoteDataSource.QuoteForShipment()

Post by mazhar » Tue May 26, 2009 8:51 am

Hmm but your above posted XML response is showing Parcel Post as shipping method. Please check following part of response

Code: Select all

<MailService>Parcel Post</MailService>
Make sure that you are asking quote for proper method.

afm
Captain (CAPT)
Captain (CAPT)
Posts: 339
Joined: Thu Nov 03, 2005 11:52 pm
Location: Portland, OR
Contact:

Re: ShipRateQuoteDataSource.QuoteForShipment()

Post by afm » Tue May 26, 2009 10:12 am

The weight in the sample request is 65 pounds. USPS will not return a First Class Mail rate for anything above 13 ounces.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing

derekz
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 38
Joined: Mon Nov 03, 2008 3:13 pm

Re: ShipRateQuoteDataSource.QuoteForShipment()

Post by derekz » Tue May 26, 2009 10:21 am

I see what you're saying, and added Parcel Post as a shipping method. Works like a charm.

Now...why is USPS only sending back Parcel Post rates. What if I want First Class rates, or some other Shipping Method. Is that all configured in my account settings on the USPS side?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: ShipRateQuoteDataSource.QuoteForShipment()

Post by mazhar » Tue May 26, 2009 10:32 am

No there is no setting at USPS side. All you need is to add desired shipping service to your available shipping methods list for example USPS First-Class Mail. Keep in mind about weight as andy told above there might be some weight limits for some services. If items in basket items have valid weight then it will return rates.

Post Reply