ValidateMailingAddressRecommendUSCAN

Resource URL

JSON endpoint:

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

XML endpoint:

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

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

Example with JSON Response

This example requests a JS0N response:
https://spectrum.precisely.com/rest/ValidateMailingAddressRecommendUSCAN/results.json?Data.Country=CAN&Data.AddressLine1=2805 RIVER AVE&Data.City=YOUNGS POINT&Data.PostalCode=K0L3G0&Data.StateProvince=ON

The JSON returned by this request would be:

{
    "Output": [
        {
            "AddressLine1": "2805 River Ave",
            "City": "Youngs Point",
            "StateProvince": "ON",
            "PostalCode": "K0L 3G0",
            "Country": "Canada",
            "Message": "Deliverable Address",
            "CanadianSERPCode": "V",
            "HouseNumber": "2805",
            "StreetName": "River",
            "ApartmentNumber": "",
            "POBox": "",
            "StreetSuffix": "Ave",
            "ProcessedBy": "CAN",
            "ChangeScore": "100",
            "AddressQuality": "V5",
            "Country.ISO": "CA",
            "Country.UPU": "CAN",
            "user_fields": []
        }
    ]
}

Example with XML Response

This example requests an XML response:

https://spectrum.precisely.com/rest/ValidateMailingAddressRecommendUSCAN/results.xml?Data.Country=CAN&Data.AddressLine1=2805 RIVER AVE&Data.City=YOUNGS POINT&Data.PostalCode=K0L3G0&Data.StateProvince=ON

The XML returned by this request would be:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xml.ValidateMailingAddressRecommendUSCANResponse
	xmlns="http://www.pb.com/spectrum/services/ValidateMailingAddressRecommendUSCAN">
	<Output>
		<Row>
			<AddressLine1>2805 River Ave</AddressLine1>
			<City>Youngs Point</City>
			<StateProvince>ON</StateProvince>
			<PostalCode>K0L 3G0</PostalCode>
			<Country>Canada</Country>
			<Message>Deliverable Address</Message>
			<CanadianSERPCode>V</CanadianSERPCode>
			<HouseNumber>2805</HouseNumber>
			<StreetName>River</StreetName>
			<ApartmentNumber></ApartmentNumber>
			<POBox></POBox>
			<StreetSuffix>Ave</StreetSuffix>
			<ProcessedBy>CAN</ProcessedBy>
			<ChangeScore>100</ChangeScore>
			<AddressQuality>V5</AddressQuality>
			<Country.ISO>CA</Country.ISO>
			<Country.UPU>CAN</Country.UPU>
			<user_fields/>
		</Row>
	</Output>
</xml.ValidateMailingAddressRecommendUSCANResponse>