ValidateMailingAddress

Resource URL

JSON endpoint:

https://OnDemandServer/rest/ValidateMailingAddress/results.json

XML endpoint:

https://OnDemandServer/rest/ValidateMailingAddress/results.xml

For a list of Spectrum OnDemand servers, see Connecting to Spectrum OnDemand Servers.

Example with JSON Response

The following example requests a JSON response:

https://spectrum.precisely.com/rest/ValidateMailingAddress/results.json?​Data.AddressLine1=16%20Rue%20Lalande&Data.City=Bourg-En-Bresse&Data.PostalCode=01000&Data.Country=FRA

The JSON returned by this request would be:

                {
  "Output": [
    {
      "ProcessedBy": "INT",
      "AddressLine1": "16 Rue Lalande",
      "City": "Bourg En Bresse",
      "StateProvince": "",
      "PostalCode": "01000",
      "Country": "France",
      "AdditionalInputData": "",
      "FirmName": "",
      "AddressLine5": "",
      "AddressQuality": "V4",
      "Deliverability": "4",
      "AddressType": "S",
      "user_fields": [
        
      ]
    }
  ]
}

Example with XML Response

The following example requests an XML response:

https://spectrum.precisely.com/rest/ValidateMailingAddress/results.xml?Data.AddressLine1=16%20Rue%20Lalande&Data.City=Bourg-En-Bresse&Data.Country=FRA

The XML returned by this request would be:

<xml.ValidateMailingAddressResponse xmlns="http://www.pb.com/spectrum/services/ValidateMailingAddress">
   <Output>
      <Address>
         <ProcessedBy>INT</ProcessedBy>
         <AddressLine1>16 Rue Lalande</AddressLine1>
         <City>Bourg En Bresse</City>
         <StateProvince/>
         <PostalCode>01000</PostalCode>
         <Country>France</Country>
         <AdditionalInputData/>
         <FirmName/>
         <AddressLine5/>
         <AddressQuality>V4</AddressQuality>
         <Deliverability>4</Deliverability>
         <AddressType>S</AddressType>
         <user_fields/>
      </Address>
   </Output>
</xml.ValidateMailingAddressResponse>