ValidateAddressInternational

Resource URL

JSON endpoint:

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

XML endpoint:

https://OnDemandServer/rest/ValidateAddressInternational/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/ValidateAddressInternational/results.json?Data.AddressLine1=5923 River Forest Cir&Data.PostalCode=34203&Data.City=Bradenton&Data.Country=USA&Data.StateProvince=FL

The JSON returned by this request would be:

{
    "Output": [
        {
            "Confidence": "100",
            "RecordType": "Normal",
            "CountryLevel": "A",
            "ProcessedBy": "USA",
            "AddressLine1": "5923 River Forest Cir",
            "City": "Bradenton",
            "StateProvince": "FL",
            "PostalCode": "34203-9312",
            "PostalCode.Base": "34203",
            "PostalCode.AddOn": "9312",
            "Country": "United States Of America",
            "AddressBlock1": "5923 RIVER FOREST CIR",
            "AddressBlock2": "BRADENTON FL  34203-9312",
            "AddressBlock3": "UNITED STATES OF AMERICA",
            "AddressBlock4": "UNITED STATES OF AMERICA",
            "AddressQuality": "V5",
            "Deliverability": "5",
            "AddressType": "S",
            "ChangeScore": "100",
            "user_fields": []
        }
    ]
}

Example with XML Response

The following example requests an XML response:

https://spectrum.precisely.com/rest/ValidateAddressInternational/results.xml?Data.AddressLine1=5923 River Forest Cir&Data.PostalCode=34203&Data.City=Bradenton&Data.Country=USA&Data.StateProvince=FL

The XML returned by this request would be:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xml.ValidateAddressInternationalResponse xmlns="http://www.pb.com/spectrum/services/ValidateAddressInternational">
    <Output>
        <Row>
            <Confidence>100</Confidence>
            <RecordType>Normal</RecordType>
            <CountryLevel>A</CountryLevel>
            <ProcessedBy>USA</ProcessedBy>
            <AddressLine1>5923 River Forest Cir</AddressLine1>
            <City>Bradenton</City>
            <StateProvince>FL</StateProvince>
            <PostalCode>34203-9312</PostalCode>
            <PostalCode.Base>34203</PostalCode.Base>
            <PostalCode.AddOn>9312</PostalCode.AddOn>
            <Country>United States Of America</Country>
            <AddressBlock1>5923 RIVER FOREST CIR</AddressBlock1>
            <AddressBlock2>BRADENTON FL  34203-9312</AddressBlock2>
            <AddressBlock3>UNITED STATES OF AMERICA</AddressBlock3>
            <AddressBlock4>UNITED STATES OF AMERICA</AddressBlock4>
            <AddressQuality>V5</AddressQuality>
            <Deliverability>5</Deliverability>
            <AddressType>S</AddressType>
            <ChangeScore>100</ChangeScore>
            <user_fields/>
        </Row>
    </Output>
</xml.ValidateAddressInternationalResponse>