USPS International Rates - not functional

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
michaewa
Ensign (ENS)
Ensign (ENS)
Posts: 20
Joined: Tue Nov 10, 2009 9:22 pm

USPS International Rates - not functional

Post by michaewa » Mon Aug 20, 2012 2:15 pm

I've read several posts on this topic and tried many of the fixes suggested to no avail. I'm wondering if this is a version issue and perhaps there is a patch I am missing - mine is a 3rd party hosted instance of AC.

I added USPS as an integrated carrier, and I am attempting to use the Priority Mail® International Medium Flat Rate Box rates. The behavior so far has been the display of There are no shipping methods available to the selected destination(s).

I have Canada set up as a zone, and have that zone associated with the method. When USPS activated my account, they provided two URLs - an https and a non-https version. The https version doesn't appear to work based on the logs, but I do get rates back when I make a call to the standard version.

Here is the portion of the call result that I am after:

Code: Select all

<Service ID="9">
      <Pounds>3</Pounds>
      <Ounces>0</Ounces>
      <MailType>Package</MailType>
      <Country>CANADA</Country>
      <Postage>32.95</Postage>
      <SvcCommitments>6 - 10 business days</SvcCommitments>
      <SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Medium Flat Rate Box</SvcDescription>
      <MaxDimensions>USPS-Produced Box: 13-5/8" x 11-7/8" x 3-3/8" or 11" x 8-1/2" x 5-1/2"<br>Maximum weight 20 pounds.</MaxDimensions>
      <MaxWeight>20</MaxWeight>
    </Service>
Based on that it would appear that all is working OK. As I understand it, the reason for the rate not displaying could be a mismatch between the SvcDescription above and the ServiceCode from ac_shipMethods.

When I query ac_shipMethods I get a ServiceCode of Priority Mail International Flat-Rate Box

I have also tried cutting and pasting in the text string returned above, as well as Priority Mail® International Medium Flat Rate Box but none of those have worked.

One other data point, when I ran the USPS test I got the following result. I've seen several posts mentioning that the tests were not functional anyway, but I'm guessing the v2 vs v4 means I may not be sending the properly formatted request?

Code: Select all

USPS Canned Test Results

Rate Calculator : Test 1 FAILED
Error Number : 80040b1a
Error Message : API Disabled: RateV2. This API has been retired. Please use RateV4. Documentation can be found at https://www.usps.com/business/webtools-technical-guides.htm

Rate Calculator : Test 2 FAILED
Error Number : 80040b1a
Error Message : API Disabled: RateV2. This API has been retired. Please use RateV4. Documentation can be found at https://www.usps.com/business/webtools-technical-guides.htm
If anyone can provide any insight into some combination of a patch I can ask my host to provide and a manual fix / workaround it would be most appreciated.

Here is the version information for my instance:

VERSION: 7.0.3
BUILD: 12458

michaewa
Ensign (ENS)
Ensign (ENS)
Posts: 20
Joined: Tue Nov 10, 2009 9:22 pm

Re: USPS International Rates - not functional

Post by michaewa » Mon Aug 20, 2012 2:50 pm

It turns out the issue was simply with an extra space - I just updated the ServiceCode to be:

Code: Select all

Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Medium Flat Rate Box
and once I had trimmed the extra space from the end it seems to be working fine.

Post Reply