Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Author « Topic »  

KevinRobson
Advanced Member

USA
245 Posts

Posted - 11/12/2020 :  10:41:03  
We're getting a validation error with USPS. We've reached out to their support and they replied:

"To better assist you, please identify the API you were trying to call and provide the XML request you had initiated."

Where do I find this information?

Thank you,
Kevin

Vince
Administrator

42472 Posts

Posted - 11/13/2020 :  03:23:50  
Hi Kevin
To dump the XML request and response, add this to your includes.asp file...

dumpshippingxml=TRUE

Then go through the shipping process. Don't forget to take that line out once you have the XML you need.

It's strange though that this should start happening all of a sudden. Did anything change on the site?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

KevinRobson
Advanced Member

USA
245 Posts

Posted - 11/13/2020 :  10:44:19  
This is the first we've tried setting up shipping on this site.

KevinRobson
Advanced Member

USA
245 Posts

Posted - 11/13/2020 :  10:52:52  
This is what we received from USPS:

Hello,

For guidance, please see a working XML request for Address Validate API below. Note that you will need to insert your own UserID. To better assist you, please provide the API you are using and the XML request that is returning an error for you so that we can troubleshoot the issue.

https://secure.shippingapis.com/ShippingApi.dll?API=Verify&XML=<AddressValidateRequest USERID="XXXXXXXXXXX">
<Revision>1</Revision>
<Address ID="0">
<FirmName>Mr. Yogato</FirmName>
<Address1/>
<Address2>1515 17th St NW</Address2>
<City>Washington</City>
<State>DC</State>
<Zip5>20036</Zip5>
<Zip4>6265</Zip4>
</Address>
</AddressValidateRequest>

Please refer to API documentation <https://www.usps.com/business/web-tools-apis/documentation-updates.htm> for more information.

Thank you,
USPS Web Tools Program Office
Visit us at: www.usps.com/webtools
USPS Customer Support > USPS.com > Web Tools: https://Emailus.usps.com/

Vince
Administrator

42472 Posts

Posted - 11/13/2020 :  13:47:29  
Hi Kevin
This seems to be an example of Address Validation, but there is no address validation in the cart. Could you post the XML request and response you got from the site, removing any personal information.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

KevinRobson
Advanced Member

USA
245 Posts

Posted - 11/13/2020 :  13:53:18  
<RateV4Request USERID="StrikingE">
<Revision>2</Revision>
<Package ID="PRIORITYxx0xx1">
<Service>PRIORITY</Service>
<ZipOrigination>32242</ZipOrigination>
<ZipDestination>32242</ZipDestination>
<Pounds>16</Pounds>
<Ounces>0</Ounces>
<Container></Container>
<Size>REGULAR</Size>
<Width>4</Width>
<Length>4</Length>
<Height>4</Height>
<Value>6</Value>
<Machinable>True</Machinable></Package>
<Package ID="PARCELxx0xx1">
<Service>PARCEL</Service>
<ZipOrigination>32757</ZipOrigination>
<ZipDestination>32757</ZipDestination>
<Pounds>16</Pounds>
<Ounces>0</Ounces>
<Container>VARIABLE</Container>
<Size>REGULAR</Size>
<Width>4</Width>
<Length>4</Length>
<Height>4</Height>
<Value>6</Value>
<Machinable>True</Machinable></Package>
<Package ID="FIRST-CLASSxx0xx1">
<Service>FIRST CLASS</Service>
<FirstClassMailType>PARCEL</FirstClassMailType>
<ZipOrigination>32757</ZipOrigination>
<ZipDestination>32757</ZipDestination>
<Pounds>16</Pounds>
<Ounces>0</Ounces>
<Container>VARIABLE</Container>
<Size>REGULAR</Size>
<Width>4</Width>
<Length>4</Length>
<Height>4</Height>
<Value>6</Value>
<Machinable>True</Machinable></Package>
<Package ID="Retail-Groundxx0xx1">
<Service>Retail Ground</Service>
<ZipOrigination>32757</ZipOrigination>
<ZipDestination>32757</ZipDestination>
<Pounds>16</Pounds>
<Ounces>0</Ounces>
<Container>VARIABLE</Container>
<Size>REGULAR</Size>
<Width>4</Width>
<Length>4</Length>
<Height>4</Height>
<Value>6</Value>
<Machinable>True</Machinable></Package></RateV4Request>
________________________________________

<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Number>80040B1A</Number>
<Description>Authorization failure. Perhaps username and/or password is incorrect.</Description>
<Source>USPSCOM::DoAuth</Source></Error>

Vince
Administrator

42472 Posts

Posted - 11/13/2020 :  15:54:17  
Hi Kevin
There is no password for USPS now so it really does just sound like the username is incorrect. Can you check the details here for how to register...
https://www.ecommercetemplates.com/help/usps.asp
Especially the part...
quote:
You will receive a long email from USPS with information regarding testing the system before going live on the production server. We have already done this step for you so that can be ignored. All that is needed is to follow the instructions for going live on the production server.


Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

KevinRobson
Advanced Member

USA
245 Posts

Posted - 11/17/2020 :  10:49:22  
You were correct. She had the wrong login name.

Now it's connected, but not showing all the options. A screen shot of the selected shipping methods is at https://strikingeffects.com/working/201117/ShippingMethods.jpg

The shipping options are only showing Priority Mail for USPS. A screen shot is at https://strikingeffects.com/working/201117/Checkout.jpg

Vince
Administrator

42472 Posts

Posted - 11/18/2020 :  07:42:00  
Hi Kevin
Only the services which apply will be displayed which accounts for some of those. But also it seems that Parcel Post hadn't been replaced by the new Parcel Select Ground service and I've done that now. If you just get a new copy of the updater and run the updatestore.asp script that will change the ID of the Parcel Post service to the new one and it should start giving rates.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

KevinRobson
Advanced Member

USA
245 Posts

Posted - 11/18/2020 :  14:39:35  
Thank you!
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000