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
ShipRateQuoteDataSource.QuoteForShipment()
Re: ShipRateQuoteDataSource.QuoteForShipment()
Make sure that after setting USPS you have added desired shipping methods of USPS to available shipping methods list.
Re: ShipRateQuoteDataSource.QuoteForShipment()
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)?
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)?
Re: ShipRateQuoteDataSource.QuoteForShipment()
Hmm but your above posted XML response is showing Parcel Post as shipping method. Please check following part of response
Make sure that you are asking quote for proper method.
Code: Select all
<MailService>Parcel Post</MailService>
Re: ShipRateQuoteDataSource.QuoteForShipment()
The weight in the sample request is 65 pounds. USPS will not return a First Class Mail rate for anything above 13 ounces.
Re: ShipRateQuoteDataSource.QuoteForShipment()
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?
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?
Re: ShipRateQuoteDataSource.QuoteForShipment()
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.