nayana bv
nayana bv

Reputation: 1

XML Syntax Error: Please check the XML request to see if it can be parsed USPS Tracking API

I am working on USPS Tracking API, and trying to send JSON request. Below is the request and its throwing 80040B19 XML Syntax Error: Please check the XML request to see if it can be parsed. USPSCOM::DoAuth

just checking if USPS tracking api supports JSON requests. Thanks in advance

{
"TrackFieldRequest":{
    "attributes": {
        "USERID":" ",
        "PASSWORD":" "
    },
   "TrackID": {
         "ID": "283728384394304"
      }
}
}

Upvotes: 0

Views: 1019

Answers (1)

Harry Whitehouse
Harry Whitehouse

Reputation: 41

The USPS Webtools API suite employs the XML language, not JSON. Webtools was introduced about 20 years ago and at that time XML was state-of-the-art. There are other address verification engines that accept JSON requests, but most of them have a small charge. Webtools is free.

Upvotes: 1

Related Questions