close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

USPS Shipping Error

Thread began 6/07/2009 6:17 am by Travis250923 | Last modified 7/15/2009 8:19 am by Ray Borduin | 6582 views | 15 replies |

Travis250923

USPS Shipping Error

Any idea what I am missing. I get this shipping error when trying to check out:

80040b1a API Authorization failure. RateV3 is not a valid API name for this protocol. UspsCom::DoAuth

I'm using the testing API @ ShippingAPITest.dll and have registered to use the API.

Any thoughts?

Sign in to reply to this post

Travis250923

So apparently only specific transactions can be made using the testing API. I wrote to USPS for approval and since I'm using a 3rd party software there is no need to test...perhaps this should be documented in the getting started guide.

Anyway I now get this error:

2147219428DomesticRatesV3:clsRateV3.ValidateFirstClassMailType;RateEngineV3.ProcessRequestInvalid First Class Mail Type.1000440

Sign in to reply to this post

Travis250923

So looks like there is a problem with the first class code that is being generated by eCart. If I switch to priority it works. I'm submitting a ticket.

Sign in to reply to this post

anonymous

I'm had the same problem. I assumed that I had too much weight but now I wonder. I'm trying to ship first class parcel which should work for anything under 13 oz. Looking at the USPS rate calculator guide it looks like their should be "letter flat parcel" type under firstclassmailtype, but maybe that's the under 3/4" rule. I don't know. I hate to start digging through all of WA code but maybe it's down to that. :-(

Sign in to reply to this post

Ray BorduinWebAssist

Please make sure you post a support incident. I am personally going over the high priority incidents over the next couple of days and will contact you directly to look into this further.

Sign in to reply to this post
Did this help? Tips are appreciated...

anonymous

Just posted an incident I'll attach the text file here. After further investigation it REALLY looks like an error. The "CarrierCode" or as USPS calls it the Service type should work with First Class for any parcel under 13 ounces which my test is. Do you have my phone number?

Attached Files
Document.txt
Sign in to reply to this post

anonymous

Ray, don't bother. I have the problem solved. It's a bug in your code. I was extremely dissappointed with Eric's response to my support request.

Sign in to reply to this post

Ray BorduinWebAssist

What was the problem? I'd like to make sure we get it fixed quickly.

Sign in to reply to this post
Did this help? Tips are appreciated...

anonymous

Thanks for the email Ray. The bugs are as follows:
Mostly this is a result of the post office moving from V2 to V3 rate calculator.
1. When service = FIRST CLASS there is an optional field which is now required. It is call FirstClassMailType and is enumerated as LETTER, FLAT, OR PARCEL. This service is good to 13 oz, then is should revert to service=PRIORITY. I made this change at line 47 in WA_eCart_USPS_PHP.php:
$USPS_XML .= "<FirstClassMailType>" . $USPS_Parameters["FirstClassMailType"] . "</FirstClassMailType>";
There has to be a corresponding change to the Globals file for FirstClassMailType. I think that's all the changes I had to make for this one. If not they'll fall out in the wash when you run it.
2. US is no longer accepted, now it has to be USA. I think I ran into this one in PowerStore. As I remember the drop down left me with US which then failed and it thought I was shipping international. Might have to play with this one a bit to sort it out.
3. This was already addressed here.
if (strtoupper($USPS_Parameters["CarrierCode"]) == "PARCEL" && strtoupper($USPS_Parameters["CarrierCode"]) == "ALL")
Change from "and" to "or"

Hopefully all this can be put together for the next release.

Sign in to reply to this post

anonymous

International USPS Shipping

Now I'm confused some more. With the exception of setting the request and response to International, I don't see where the international request is any different than the domestic. Yet the USPS defines them differently.

For some reason I'm getting a 0 pounds and 0 ounces in the request and yet I know that there is 5 or 6 ounces going into the parameters. I'm not sure where it's getting lost.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...