ValidateMailingAddressPro

Resource URL

JSON endpoint:

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

XML endpoint:

https://OnDemandServer/rest/ValidateMailingAddressPro/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/ValidateMailingAddressPro/results.json?​Data.AddressLine1=16%20Rue%20Lalande&Data.City=Bourg%20En%20Bresse&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": "",
      "AddressBlock1": "",
      "AddressBlock2": "16 Rue Lalande",
      "AddressBlock3": "01000 Bourg En Bresse",
      "AddressBlock4": "France",
      "AddressLine5": "",
      "AddressQuality": "V5",
      "Deliverability": "5",
      "AddressType": "S",
      "ChangeScore": "12",
      "user_fields": [
        
      ]
    }
  ]
}

Example with XML Response

The following example requests an XML response:

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

The XML returned by this request would be:

<xml.ValidateMailingAddressProResponse xmlns="http://www.pb.com/spectrum/services/ValidateMailingAddressPro">
   <Output>
      <Address>
         <ProcessedBy>INT</ProcessedBy>
         <AddressLine1>16 Rue Lalande</AddressLine1>
         <City>Bourg En Bresse</City>
         <StateProvince/>
         <PostalCode>01000</PostalCode>
         <Country>France</Country>
         <AdditionalInputData/>
         <FirmName/>
         <AddressBlock1/>
         <AddressBlock2>16 Rue Lalande</AddressBlock2>
         <AddressBlock3>01000 Bourg En Bresse</AddressBlock3>
         <AddressBlock4>France</AddressBlock4>
         <AddressLine5/>
         <AddressQuality>V5</AddressQuality>
         <Deliverability>5</Deliverability>
         <AddressType>S</AddressType>
         <ChangeScore>12</ChangeScore>
         <user_fields/>
      </Address>
   </Output>
</xml.ValidateMailingAddressProResponse>