'USPS Tracking Xml

Testing in Postman url is http://production.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML=

Request

<TrackRequest USERID=”xxxxxxx”>
               <TrackID ID="xxxx">
                             </TrackID>

                      </TrackRequest>

response

<?xml version="1.0" encoding="UTF-8"?>
<Error>
    <Number>80040B19</Number>
    <Description>XML Syntax Error: Please check the XML request to see if it can be parsed.</Description>
    <Source>USPSCOM::DoAuth</Source>
</Error>

What is the Error?



Solution 1:[1]

in the first line in your XML looks like non-ASCII. You should use " (0x22) not (0x201d) since they are different characters.

Solution 2:[2]

enter image description here

Here is a screenshot of my working postman request for the USPS API. Make sure XML is the key and the value is your valid XML.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 snipsnipsnip
Solution 2 Dylan