Loqate Harmony Documentation
  • GBG Loqate AU & NZ
  • Loqate Harmony API
    • Sign up for free trial
    • Login
    • API Specification
      • Authentication
      • Address
        • Address Validation & Lookup
        • Address by Geocode
        • Address Cleanse
        • Address Parse
        • Geocode Intl
      • Address Insights
        • Australian Insights
          • SEIFA Australia
          • ASGS Australia Statistical Geography Standard
          • Residential / Commercial
          • Deliverable address
      • Suburb Lookup
      • Business Validation and Lookup
      • Email Validation
      • Phone Validation
      • Matching
      • Moved Suppression
      • Deceased Suppression
      • Objects
        • Address Objects
        • Address Type Objects
        • Suburb Objects
        • Parse Objects
        • Email Objects
        • Phone Objects
        • Property Title Objects
        • Match Objects
        • Business Objects
      • Deprecated API services
        • Email Validation v1.1
        • Address v1
        • Address Cleanse v1
        • Address International
        • Address Combined
        • Address Types
    • Guides
      • Best Practices
        • Address Field Mappings
        • Finding an Address
      • User Derived Address
      • Expanded sub-premise reach
      • Parcel Locker Plus
      • Migrating to Address V2
      • Sign up/ Login
      • Support
      • Console
        • Getting your API keys
        • Getting Started
        • Add a Service
        • Dashboard
        • Subscriptions
          • Features
          • Users
          • Subscribed Plans
          • Allowlisting domains
          • Blocklist - Email Validation
        • Reports
        • Invoices
          • Paying Invoices
      • API Latency
    • Demos
      • How to use our demos
      • Address Validation Demo
      • Address by Geocode (Reverse Geocode) Demo
      • Address Cleanse Demo
      • Address Parse Demo
      • Business Validation Demo
      • Email Validation Demo
      • Phone Validation demo
    • Integrations
      • Client Libraries
        • Javascript Library v2.1.0
      • Adobe Commerce (Magento 2) Plugin
        • Magento2 User Guide
      • Woocommerce Plugin
        • Woocommerce Install Guide v2.0.0
        • Woocommerce Settings guide v2.0.0
      • Shopify Plus App
      • Gravity Forms
      • Voxco Survey Software
      • Salesforce CRM
      • Dynamics 365 CRM
      • Batch App - Lightweight
      • Deprecated Integrations
        • Harmony RightAddress c# example
        • Harmony RightAddress cURL example
        • Deprecated JS Library v2.0.1
        • Deprecated JQuery Library v1.8.1
    • Coverage
    • Address Exchange (Beta)
      • ADX Console
        • Searching Addresses in console
        • Create Address in console
        • Create Actions in console
      • ADX API Specification
        • Create Address
        • Get Address
        • Create Address Event
        • Edit Address Event
        • Create/Edit Address Attributes
        • Create/Edit Address Geopoint
        • Get Source Events
      • Reserved Attributes
    • GBG Status
  • Batch / Bulk Data Services
    • Serviced Batch
      • Bulk Address Cleanse
      • Email Serviced Batch
      • Phone Serviced Batch
      • Business Serviced Batch
  • Harmony Suite
    • Harmony Suite Overview
    • Release Notes
      • Version 3.0.0
        • New Features
        • Enhancements
        • Bug Fixes
        • Supported Platforms
    • User Guides
      • Version 3.0.0
        • Welcome to Harmony Suite
        • Glossary of terms
        • Upgrades
          • HSQL Upgrade
        • Email and Phone Validation
          • Prerequisites
          • Phone and Email PDP Configuration Setup
          • Phone Validation using Harmony Batch System
          • Phone Validation using Harmony WS
          • Email Validation using Harmony Batch
          • Email Validation using Harmony WS
          • Guides
            • Understanding Phone Data
            • Understanding Email Data
        • Business Lookup and Validation
          • Prerequisites
          • Business Lookup
          • Business Validation
            • Business Validation using Commercial Name Parser
            • Business Validation Configurations
            • Business Validation using Harmony Batch System
            • Business Validation using Harmony WS
          • Business data update guide
          • Guides
            • Understanding Business Data
            • Understanding Business Verification Code
            • Name Parse Ambiguity
        • Australia Post Parcel Locker Plus Lookup and Validation
          • Prerequisites
          • Australia Post Parcel Locker Plus Lookup
          • Australia Post Parcel Locker Plus Validation
            • PDP Configuration Setup
            • AupostValidation using Harmony Batch System
            • AupostValidation using Harmony WS
          • Guides
            • Knowledgebase Lexical Update
            • Understanding Australia Post Parcel Locker Plus Data
            • Interchangeable terms for Australia Post Parcel Lockers
        • Installation and Upgrade Reference Guide
        • Locate Reference Guide
        • Extensions Reference Guide
        • RealTime Reference Guide
        • Postmaster Reference Guide
        • Rapid Address ANZ Reference Guide
        • Post ANZ Reference Guide
        • Source of Truth Installation Reference Guide
        • Knowledgebase Configuration Reference Guide
        • Web Services Reference Guide
        • Management Console Reference Guide
        • Batch System Match Reference Guide
        • Batch System Cleanse Reference Guide
  • More from GBG
    • GBG GreenID
    • GBG Identity
    • GBG Fraud & Compliance
Powered by GitBook
On this page
  • Resource URL
  • Request
  • Example payload schemas
  • Service Options
  • Response
  • Response of Basic Cleanse Service
  • Response of Premium Cleanse Service
  • Exception Message
  1. Loqate Harmony API
  2. API Specification
  3. Address

Address Cleanse

Verifies, corrects and enriches address data to the highest level of precision and confidence, globally and at scale

Validate 1 to 100 addresses per requests.

Our flexible service allows:

  1. Up to 100 addresses per request

  2. Each Address can be from any country.

  3. Each Address can have its own schema. Reducing effort and improving results.

Resource URL

    POST    https://hosted.mastersoftgroup.com/harmony/rest/v2/address/cleanse

Request

Upto 100 addresses can be validated per request from any country with many input schemas.

This flexibility in our service enables you to call our service using your list schema to achieve optimal results.

{
    "payload": 
    [
      {
      "buildingName": "string",
      "country": "string",
      "eid": "string",
      "flatUnitNumber": "string",
      "flatUnitType": "string",
      "floorLevelNumber": "string",
      "floorLevelType": "string",
      "fullAddress": "string",
      "id": "string",
      "lotNumber": "string",
      "postal": "string",
      "postalNumber": "string",
      "postalType": "string",
      "postcode": "string",
      "street": "string",
      "street2": "string",
      "streetName": "string",
      "streetNumber": "string",
      "streetSuffix": "string",
      "streetType": "string",
      "subLocality": "string",
      "subdwelling": "string",
      "city": "string", 
      "line1": "string",
      "line2": "string",
      "line3": "string",
      "province": "string",
      "sourceOfTruth": "string"
    }
  ],
    "featureOptions": 
    {
      "additionalProp1": "string",
      "additionalProp2": "string",
      "additionalProp3": "string"
    }
}

Example payload schemas

We've designed our API with flexible payload schemas. Meaning you can match the way you have stored the data into the optimal schema for our service.

Reducing your overall integration effort whilst improving performance of the service.

We recommend choosing the below schemas for each address you need cleansed.

Please ensure the information is not duplicated in any of the address lines to achieve better validation results.

Schema 1: Line 1, Line 2, City, Province, Postcode, Country
{
    "payload": [
       {
         "country": "AU",
         "line1": "1/37A Tahnee Street",
         "line2":"",
         "city": "Sanctuary Point",
         "province":"NSW",
         "postcode": "2540"
        },
        {
         "country":"US",
         "line1":"101 California Ave",
         "line2":"Unit @@1101",
         "city":"Santa Mon",
         "province":" CA",
         "postcode":"90403-3523"
        }
       ],
    "featureOptions": {
        "caseType": "UP",
        "exposeAttributes":7,
        "exposeChanges":"1",
        "cleanseEnhance":0,  // set to 1 for premium
        "cleanseGeocode":0,  // set to 1 for premium
        "cleanseCertify":0   // set to 1 for premium
    }
}
Schema 2: Line1, Line2, Line3
  {
    "payload": [
       {
         "country": "AU",
         "line1": "Unit 1",
         "line2":"37A Tahnee Street",
         "line3":"Sanctuary Point NSW 2540"
         },
         {
         "country": "AU",
         "line1": "Unit 1 37A Tahnee Street",
         "line2":"",
         "line3":"Sanctuary Point NSW 2540"
         },
        {
         "country":"US",
         "line1":"101 California Ave",
         "line2":"Unit @@1101",
         "line3":"Santa Monica, CA 90403-3523"
         }
       ],
    "featureOptions": {
        "caseType": "UP",
        "exposeAttributes":7,
        "exposeChanges":"1",
        "cleanseEnhance":0,  // set to 1 for premium
        "cleanseGeocode":0,  // set to 1 for premium
        "cleanseCertify":0   // set to 1 for premium
    }
}
Schema 3: Full Address (Highest level detail)
{
    "payload": [ 
        { 
            "country": "AU",
            "fullAddress": "SE 202, 220 George Street, Syndey 2000",
            "sourceOfTruth": "AUSOTS"
            }, 
        { 
            "country": "AU",
            "fullAddress": "3 Orara Street, waitara nsw",
            "sourceOfTruth": "AUSOTS"
        },
        {
             "country":"US",
             "fullAddress":"101 California Ave Unit @@1101 Santa Monica, CA 90403-3523"
         } 
    ],
    "featureOptions": 
        {
        "caseType": "UP",
        "exposeAttributes":7,
        "exposeChanges":"1",
        "cleanseEnhance":0,    // set to 1 for premium
        "cleanseGeocode":0,    // set to 1 for premium
        "cleanseCertify":0     // set to 1 for premium
    }
}
Schema 4: Each component (Lowest level detail)
{
    "payload": [ 
        {
             "country": "AU",
             "subdwelling": "SE 202",
             "streetNumber": "220",
             "streetName": "George",
             "streetType": "Street",
             "city": "Syndey",
             "province": "NSW",
             "postcode": "2000"
             
        },
        {
             "country": "US",
             "subdwelling": "Unit @@1101",
             "streetNumber": "101",
             "streetName": "California",
             "streetType": "Ave",
             "city": "Santa Monica",
             "province":"CA",
             "postcode": "90403-3523"            
             
        }
    ],
    "featureOptions": 
        {
        "caseType": "UP",
        "exposeAttributes":7,
        "exposeChanges":"1",
        "cleanseEnhance":0,     // set to 1 for premium
        "cleanseGeocode":0,     // set to 1 for premium
        "cleanseCertify":0      // set to 1 for premium
    }
}
Schema for USA Postal Certified

Using cleanseCertify feature option with US addresses mandates the input address presentation to be entered in the following recommended formats for best match validation results.

{
    "payload": [
      
        {
         "country":"US",
         "line1":"101 California Ave",
         "line2":"Unit #1101",
         "line3":"Santa Monica, CA 90403-3523"
        },
        {
         "country":"US",
         "line1":"101 California Ave",
         "line2":"Unit 1101",
         "city":"Santa Monica",
         "province":"CA",
         "postcode":"90403-3523"
        },
    ],
    "featureOptions": {       
          "cleanseCertify":1   // set to 1 for premium            
    }
}

Line 1: is a representation of address fields usually house sub-dwellings, street numbers, street names, buildingName etc. This is usually determined by how you have data stored.

Line 2: is a representation of address fields usually additional information not contained in Line 1 such as suite numbers or floor information or subdwellings (not contained in Line 1). This is usually determined by how you have data stored.

Line 3: is a representation of address fields usually around city, province, suburbs/locality for example "suburb postcode region".

Note: Please ensure the information populated in city/province/postcode is not duplicated in any of the address lines to achieve better validation results.

Service Options

Address Cleanse V2 API leverages both Standard and Premium Address Cleanse services.

Standard Cleanse Service:

The validation data set for standard cleanse service is using our default datasets (AU: GNAF, NZ: NZPAF, INTL: INTL Standard. By default the API is set to Standard services meaning you do not need to specify within the API requests.

    "featureOptions": 
        {
        "cleanseEnhance":0,
        "cleanseGeocode":0,
        "cleanseCertify":0 
    }

Premium Cleanse Service:

This service provides access to advanced cleanse functions.

This allows the input request to pass on specific sourceOfTruth for AU, NZ addresses and allows to enhance the international data by setting the featureOptions to 1.

To get INTL geocodes requires "cleanseGeocode":1.

Utilizing cleanse featureOptions requires access. To get access contact a member of the team.

// Enabling Premium Cleanse Service
    "featureOptions": 
        {
        "cleanseEnhance":1,
        "cleanseGeocode":1,
        "cleanseCertify":1 
    }

Configurations

Name
type
example

sourceOfTruth

string

defaults

AU: GNAF

NZ: NZPAF

INTL: INTL

Premium service only.

Defines selection of premium datasets being used to Cleanse the data.

caseType

string

TITLE, default empty

caseType for returned address components and attributes. LOW = lowercase, UP = UPPERCASE, TITLE = Title Case

exposeAttributes

Integer

("0"|"1"|"7") default 1

AU only.

Enriches the data with address related attributes depending on value. Options 0,1,7

exposeChanges

Integer

("0"|"1") default 0

AU NZ only.

Determines whether to include PDP change items in response.

cleanseEnhance

boolean

("0"|"1") default 0

Premium service only.

This option when set to 1 enhances AU NZ data with additional data attributes based on sourceOfTruth set in the input.

AU: AUPAF, AUSOTS

NZ: NZAD

For International addresses this option will determine the Enhanced data pack to be used based on the country input in the request.

cleanseCertify

boolean

("0"|"1") default 0

Premium service only.

International only.

This option when set to 1 uses the country input to determine which certification data set to be used for international address validation.

cleanseGeocode

boolean

("0"|"1") default 0

Premium service only.

International only.

This option when set to 1 returns geocode information for international addresses.

Response

Response of Basic Cleanse Service

Basic Response: Australia
{
    "status": "SUCCESS",
    "messages": [],
    "payload": [
        {
            "_type": "ParsedAddressAu",
            "fullAddress": "37A TAHNEE STREET,SANCTUARY POINT NSW 2540",
            "country": "AUSTRALIA",
            "postcode": "2540",
            "subLocality": "",
            "street2": "",
            "street": "TAHNEE STREET",
            "streetNumber": "37A",
            "postal": "",
            "postalType": "",
            "postalNumber": "",
            "buildingName": "",
            "subdwelling": "1",
            "eid": null,
            "lotNumber": null,
            "flatUnitNumber": "1",
            "flatUnitType": "",
            "floorLevelNumber": "",
            "floorLevelType": "",
            "streetSuffix": "",
            "streetType": "STREET",
            "streetName": "TAHNEE",
            "attributes": {
                "AddressMessage": "POINT",
                "AddressQuality": "9",
                "City": "SANCTUARY POINT",
                "CountryIso2": "AU",
                "CountryIso3": "AUS",
                "CountryIsoNumber": "036",
                "GeocodeLevel": "7",
                "GNAFConfidence": "2",
                "GNAFGroupPID": "NSW2928419",
                "GNAFLocalityPID": "LOCFFAAAEA80667",
                "GNAFPID": "GANSW720384012",
                "GNAFPIDPosition": "SINGLE",
                "GNAFPointPID": "GANSW720384012",
                "GNAFReliability": "2",
                "is_principal": "P",
                "Latitude": "-35.09635821",
                "Longitude": "150.61885685",
                "MeshblockId": "11221970000",
                "MeshBlockID2016": "11205649900",
                "MeshBlockID2021": "11221970000",
                "ParcelID": "1/SP103571",
                "ProvinceCode": "NSW",
                "ProvinceName": "NSW",
                "UserInferred": "1"
            },
            "id": null,
            "careOf": "",
            "exception": null,
            "unknown": "",
            "changedItems": [
                {
                    "componentID": "GNAFValidation",
                    "actionType": "INFO",
                    "affectedElement": "PointSubdwellingAddress",
                    "oldValue": "",
                    "newValue": ""
                },
                {
                    "componentID": "GNAFValidation",
                    "actionType": "INFO",
                    "affectedElement": "RecordMatch",
                    "oldValue": "",
                    "newValue": "POINT"
                },
                .........

],
            "state": "NSW",
            "locality": "SANCTUARY POINT"
        }
    ]
}	    

Basic Response: New Zealand
{
    "status": "SUCCESS",
    "messages": [],
    "payload": [
        {
            "_type": "ParsedAddressNz",
            "fullAddress": "FLAT 1F, 1C QUEEN MARY AVENUE, EPSOM, AUCKLAND 1023",
            "country": "NEW ZEALAND",
            "postcode": "1023",
            "subLocality": "",
            "street2": "",
            "street": "QUEEN MARY AVENUE",
            "streetNumber": "1C",
            "postal": "",
            "postalType": "",
            "postalNumber": "",
            "buildingName": "",
            "subdwelling": "L 1 FLAT 1F",
            "eid": null,
            "lotNumber": null,
            "flatUnitNumber": "1f",
            "flatUnitType": "FLAT",
            "floorLevelNumber": "1",
            "floorLevelType": "L",
            "streetSuffix": "",
            "streetType": "AVENUE",
            "streetName": "QUEEN MARY",
            "attributes": {
                "AddressQuality": "9",
                "AddressType": "URBAN",
                "City": "AUCKLAND",
                "CountryIso2": "NZ",
                "CountryIso3": "NZL",
                "CountryIsoNumber": "554",
                "DPID": "3074094",
                "GeocodeLevel": "2",
                "Latitude": "-36.892132",
                "Longitude": "174.774021",
                "MatchedRule": "NZPAF_URBAN_ADDRESS: NAME_BASED_MATCH_RULE(EXACT_MATCH)",
                "MeshblockId": "4001695",
                "NZMapGrid": "2668501 6477320",
                "NZTM": "1758075.229551 5915624.334052",
                "ParcelId": "4801242",
                "PostalID": "3074094",
                "ProvinceCode": "",
                "ProvinceName": "",
                "UserInferred": "L 1",
                "XCoordinate": "2668501",
                "XNztm": "1758075.229551",
                "YCoordinate": "6477320",
                "YNztm": "5915624.334052"
            },
            "id": null,
            "rdNumber": "",
            "careOf": "",
            "exception": null,
            "unknown": "",
            "changedItems": null,
            "suburb": "EPSOM",
            "townCity": "AUCKLAND"
        }
    ]
}
Basic Response: International
{
    "status": "SUCCESS",
    "messages": [],
    "payload": [
        {
            "_type": "AddressIntl",
            "fullAddress": "101 CALIFORNIA AVE UNIT 1101,SANTA MONICA CA 90403-3523",
            "country": "UNITED STATES",
            "postcode": "90403-3523",
            "street2": null,
            "street": "CALIFORNIA AVE",
            "streetNumber": "101",
            "postal": null,
            "postalType": null,
            "postalNumber": null,
            "buildingName": null,
            "subdwelling": "UNIT 1101",
            "attributes": {
                "CountryIso2": "US",
                "PremiseNumber": "101",
                "HyphenClass": "C",
                "CountryIso3": "USA",
                "DeliveryAddress": "101 CALIFORNIA AVE UNIT 1101",
                "City": "SANTA MONICA",
                "Sequence": "1",
                "AVC": "V55-I55-P8-099",
                "PostalCodeSecondary": "3523",
                "DeliveryAddress1": "101 CALIFORNIA AVE UNIT 1101",
                "ProvinceName": "CA",
                "SubAdministrativeArea": "LOS ANGELES",
                "AQI": "B",
                "ProvinceCode": "CA",
                "CountryIsoNumber": "840",
                "PostalCodePrimary": "90403",
                "Line1": "101 CALIFORNIA AVE UNIT 1101",
                "Line2": "SANTA MONICA CA 90403-3523",
                "MatchRuleLabel": "1",
                "SubBuildingLeadingType": "UNIT"
            },
            "id": null,
            "district": null,
            "city": "SANTA MONICA",
            "province": "CA"
        }
    ]
}

Response of Premium Cleanse Service

Attributes for Australia and NewZealand address samples may vary based on the input sourceOfTruth chosen.

Premium Response: Australia
{
    "status": "SUCCESS",
    "messages": [],
    "payload": [
        {
            "_type": "ParsedAddressAu",
            "fullAddress": "37 TAHNEE ST,SANCTUARY POINT NSW 2540",
            "country": "AUSTRALIA",
            "postcode": "2540",
            "subLocality": "",
            "street2": "",
            "street": "TAHNEE ST",
            "streetNumber": "37",
            "postal": "",
            "postalType": "",
            "postalNumber": "",
            "buildingName": "",
            "subdwelling": "UNIT 1",
            "eid": null,
            "lotNumber": null,
            "flatUnitNumber": "1",
            "flatUnitType": "UNIT",
            "floorLevelNumber": "",
            "floorLevelType": "",
            "streetSuffix": "",
            "streetType": "ST",
            "streetName": "TAHNEE",
            "attributes": {
                "Accuracy": "PPM",
                "AddressQuality": "9",
                "advertising_mail_ind": "N",
                "Barcode": "1301011211001001012110322111221321013",
                "Bsp": "020",
                "City": "SANCTUARY POINT",
                "CountryIso2": "AU",
                "CountryIso3": "AUS",
                "CountryIsoNumber": "036",
                "deliver_mail_ind": "Y",
                "DPID": "54031173",
                "non_residential_ind": "N",
                "PAFPosition": "SINGLE",
                "PostalID": "54031173",
                "PostalIDPosition": "SINGLE",
                "ProvinceCode": "NSW",
                "ProvinceName": "NSW",
                "residential_ind": "Y",
                "UserInferred": "UNIT 1"
            },
            "id": null,
            "careOf": "",
            "exception": null,
            "unknown": "",
            "changedItems": [
                {
                    "componentID": "AMASHAVE",
                    "actionType": "INFO",
                    "affectedElement": "PointSubdwellingAddress",
                    "oldValue": "",
                    "newValue": ""
                },
                {
                    "componentID": "AMASHAVE",
                    "actionType": "MODIFY",
                    "affectedElement": "PostalId",
                    "oldValue": "00000000",
                    "newValue": "54031173"
                },
......
],
            "state": "NSW",
            "locality": "SANCTUARY POINT"
        }
    ]
}

Premium Response: New Zealand
{
    "status": "SUCCESS",
    "messages": [],
    "payload": [
        {
            "_type": "ParsedAddressNz",
            "fullAddress": "1C QUEEN MARY AVENUE, EPSOM, AUCKLAND 1023",
            "country": "NEW ZEALAND",
            "postcode": "1023",
            "subLocality": "",
            "street2": "",
            "street": "QUEEN MARY AVENUE",
            "streetNumber": "1C",
            "postal": "",
            "postalType": "",
            "postalNumber": "",
            "buildingName": "",
            "subdwelling": "L 1 FLAT 1F",
            "eid": null,
            "lotNumber": null,
            "flatUnitNumber": "1f",
            "flatUnitType": "FLAT",
            "floorLevelNumber": "1",
            "floorLevelType": "L",
            "streetSuffix": "",
            "streetType": "AVENUE",
            "streetName": "QUEEN MARY",
            "attributes": {
                "AddressQuality": "9",
                "AddressType": "URBAN",
                "City": "AUCKLAND",
                "CountryIso2": "NZ",
                "CountryIso3": "NZL",
                "CountryIsoNumber": "554",
                "DeliveredTo": "N",
                "DPID": "3663896",
                "ExtraAddressLine1": "1C QUEEN MARY AVENUE",
                "ExtraAddressLine2": "EPSOM",
                "ExtraAddressLine3": "AUCKLAND  1023",
                "GeocodeLevel": "1",
                "Latitude": "-36.8920929147149",
                "Longitude": "174.77399503296274",
                "MatchedRule": "NZPAF_URBAN_ADDRESS: NAME_BASED_MATCH_RULE(EXACT_MATCH)",
                "MeshblockId": "4001695",
                "NZMapGrid": "2668499 6477324",
                "NZTM": "1758072.99109137 5915628.69698302",
                "ParcelId": "4801242",
                "PostalID": "3663896",
                "ProvinceCode": "",
                "ProvinceName": "AUCKLAND REGION",
                "RegionalCouncilId": "2",
                "RegionalCouncilName": "AUCKLAND REGION",
                "Source": "NZPOST",
                "TaId": "76",
                "TaName": "AUCKLAND",
                "UserInferred": "L 1 FLAT 1F",
                "XCoordinate": "2668499",
                "XNztm": "1758072.99109137",
                "YCoordinate": "6477324",
                "YNztm": "5915628.69698302"
            },
            "id": null,
            "rdNumber": "",
            "deliveredTo": "N",
            "careOf": "",
            "exception": null,
            "unknown": "",
            "changedItems": [
                {
                    "componentID": "CaseConversion",
                    "actionType": "MODIFY",
                    "affectedElement": "Address Line",
                    "oldValue": "1C QUEEN MARY AVENUE, EPSOM, AUCKLAND 1023",
                    "newValue": "1c Queen Mary Avenue, Epsom, Auckland 1023"
                },
                {
                    "componentID": "CaseConversion",
                    "actionType": "MODIFY",
                    "affectedElement": "Street Number",
                    "oldValue": "1C",
                    "newValue": "1c"
                },

...............

],
            "suburb": "EPSOM",
            "townCity": "AUCKLAND"
        }
    ]
}

Attributes for International addresses may vary based on the cleanseXXX feature options chosen.

Premium Response: International with cleanseCertify set to 1.:
{
    "status": "SUCCESS",
    "messages": [],
    "payload": [
        {
            "_type": "AddressIntl",
            "fullAddress": "101 CALIFORNIA AVE UNIT 1101,SANTA MONICA CA 90403-3523",
            "country": "UNITED STATES",
            "postcode": "90403-3523",
            "street2": null,
            "street": "CALIFORNIA AVE",
            "streetNumber": "101",
            "postal": null,
            "postalType": null,
            "postalNumber": "",
            "buildingName": null,
            "subdwelling": "UNIT 1101",
            "attributes": {
                "CountryIso2": "US",
                "eLOTNumber": "0070",
                "CongressionalDistrict": "36",
                "CountryIso3": "USA",
                "eLOTCode": "A",
                "DropCount": "",
                "DropSiteIndicator": " ",
                "AutoZoneIndicator": "D",
                "DeliveryAddress1": "101 CALIFORNIA AVE UNIT 1101",
                "BusinessIndicator": " ",
                "Footnotes": "N#",
                "OtherIndicator": "",
                "PostalCodeSecondaryRangeHigh": "3523",
                "CarrierRoute": "C030",
                "LACSLinkIndicator": " ",
                "AQI": "B",
                "DPVConfirmedIndicator": "Y",
                "CountryIsoNumber": "840",
                "CentralizedIndicator": "",
                "PMBType": "",
                "CurbIndicator": "",
                "DPVLACSIndicator": " ",
                "PrimaryNumRangeLow": "0000000101",
                "ReturnCode": "31",
                "PostalCodeSecondaryRangeLow": "3523",
                "VacantIndicator": "N",
                "City": "SANTA MONICA",
                "Sequence": "1",
                "AVC": "V55-I55-P8-097",
                "PostalCodeSecondary": "3523",
                "DependentLocality": "",
                "FalsePositiveIndicator": " ",
                "SUITELinkFootnote": "",
                "SecondaryNumRangeCode": "B",
                "NDCBUIndicator": "",
                "ThoroughfarePreDirection": "",
                "ThoroughfareTrailingType": "AVE",
                "PMBNumber": "",
                "PrimaryNumRangeCode": "O",
                "Organization": "",
                "PremiseNumber": "101",
                "SecondaryNumRangeLow": "00001004",
                "PrimaryNumRangeHigh": "0000000101",
                "DeliveryAddress": "101 CALIFORNIA AVE UNIT 1101",
                "ThrowbackIndicator": "N",
                "ResidentialDelivery": "Y",
                "CheckDigit": "8",
                "ProvinceName": "CA",
                "CMRAIndicator": "N",
                "DeliveryPointBarCode": "768",
                "RecordType": "H",
                "NoStatIndicator": "N",
                "SecondaryAddressLine": "SANTA MONICA CA 90403-3523",
                "PostBoxType": "",
                "PostalCodePrimary": "90403",
                "DPVFootnotes": "AABB",
                "FIPSCountyCode": "037",
                "EducationalIndicator": " ",
                "SecondaryNumRangeHigh": "00001102",
                "PrimaryAddressLine": "101 CALIFORNIA AVE UNIT 1101",
                "Finance": "056978",
                "SeasonalIndicator": " ",
                "ThoroughfarePostDirection": "",
                "SubAdministrativeArea": "LOS ANGELES",
                "DefaultFlag": " ",
                "ProvinceCode": "CA",
                "LACSLinkCode": "",
                "Line1": "101 CALIFORNIA AVE UNIT 1101",
                "Line2": "SANTA MONICA CA 90403-3523",
                "SubBuildingLeadingType": "UNIT"
            },
            "id": null,
            "district": null,
            "city": "SANTA MONICA",
            "province": "CA"
        }
    ]
}
Premium Response: International with cleanseEnhance set to 1.
{
    "status": "SUCCESS",
    "messages": [],
    "payload": [
        {
            "_type": "AddressIntl",
            "fullAddress": "101 CALIFORNIA AVE UNIT 1101,SANTA MONICA CA 90403-3523",
            "country": "UNITED STATES",
            "postcode": "90403-3523",
            "street2": null,
            "street": "CALIFORNIA AVE",
            "streetNumber": "101",
            "postal": null,
            "postalType": null,
            "postalNumber": null,
            "buildingName": null,
            "subdwelling": "UNIT 1101",
            "attributes": {
                "CensusClassCode": "C1",
                "CountryIso2": "US",
                "PremiseNumber": "101",
                "CountryIso3": "USA",
                "DeliveryAddress": "101 CALIFORNIA AVE UNIT 1101",
                "AdministrativeAreaISO2": "US-CA",
                "DeliveryAddress1": "101 CALIFORNIA AVE UNIT 1101",
                "ProvinceName": "CA",
                "TimeZone_DST": "-07:00",
                "AQI": "B",
                "CountryIsoNumber": "840",
                "PostalCodePrimary": "90403",
                "GNISFeatureID": "2411825",
                "CensusIndicator": "LOCALITY",
                "HyphenClass": "C",
                "City": "SANTA MONICA",
                "Sequence": "1",
                "AVC": "V55-I55-P8-099",
                "PostalCodeSecondary": "3523",
                "CensusCode": "70000",
                "TimeZone_UTC": "-08:00",
                "SubAdministrativeArea": "LOS ANGELES",
                "ProvinceCode": "CA",
                "MetropolitanDivision": "LOS ANGELES-LONG BEACH-GLENDALE, CA=31084",
                "Line1": "101 CALIFORNIA AVE UNIT 1101",
                "CBSAMetropolitanStatisticalArea": "LOS ANGELES-LONG BEACH-ANAHEIM, CA=31080",
                "TimeZone_Name": "PACIFIC STANDARD TIME",
                "Line2": "SANTA MONICA CA 90403-3523",
                "MatchRuleLabel": "1 D1 D1 D1",
                "SubBuildingLeadingType": "UNIT"
            },
            "id": null,
            "district": null,
            "city": "SANTA MONICA",
            "province": "CA"
        }
    ]
}
Premium Response: International with cleanseGeocode set to 1.
{
    "status": "SUCCESS",
    "messages": [],
    "payload": [
        {
            "_type": "AddressIntl",
            "fullAddress": "101 CALIFORNIA AVE UNIT 1101,SANTA MONICA CA 90403-3523",
            "country": "UNITED STATES",
            "postcode": "90403-3523",
            "street2": null,
            "street": "CALIFORNIA AVE",
            "streetNumber": "101",
            "postal": null,
            "postalType": null,
            "postalNumber": null,
            "buildingName": null,
            "subdwelling": "UNIT 1101",
            "attributes": {
                "CountryIso2": "US",
                "PremiseNumber": "101",
                "HyphenClass": "C",
                "CountryIso3": "USA",
                "DeliveryAddress": "101 CALIFORNIA AVE UNIT 1101",
                "Latitude": "34.018630",
                "City": "SANTA MONICA",
                "Sequence": "1",
                "Longitude": "-118.502740",
                "AVC": "V55-I55-P8-099",
                "PostalCodeSecondary": "3523",
                "DeliveryAddress1": "101 CALIFORNIA AVE UNIT 1101",
                "ProvinceName": "CA",
                "GeoAccuracy": "P4",
                "SubAdministrativeArea": "LOS ANGELES",
                "AQI": "B",
                "GeoDistance": "0.0",
                "ProvinceCode": "CA",
                "CountryIsoNumber": "840",
                "PostalCodePrimary": "90403",
                "Line1": "101 CALIFORNIA AVE UNIT 1101",
                "Line2": "SANTA MONICA CA 90403-3523",
                "MatchRuleLabel": "1",
                "SubBuildingLeadingType": "UNIT"
            },
            "id": null,
            "district": null,
            "city": "SANTA MONICA",
            "province": "CA"
        }
    ]
}

Exception Message

Failed to Parse:

Exception message for AU NZ "failed to parse record" looks like the following.

"Exception": "H112 : No pattern matched for this input - VRI BUILDING BLDG 403 30 FLEMINGTON ROAD, PARKVILLE VIC 3052. Check for punctuation errors, duplicate fields, incorrect input format and incorrect input data."
Exception Response: Australia and NewZealand
{
    "status": "SUCCESS",
    "messages": [],
    "payload": [
        {
            "_type": "AddressV2",
            "fullAddress": "VRI BUILDING BLDG 403 30 FLEMINGTON ROAD, PARKVILLE VIC 3052",
            "country": "AU",
            "attributes": {
                "Exception": "H112 : No pattern matched for this input - VRI BUILDING BLDG 403 30 FLEMINGTON ROAD, PARKVILLE VIC 3052. Check for punctuation errors, duplicate fields, incorrect input format and incorrect input data."
            }
        },
        {
            "_type": "AddressV2",
            "fullAddress": "PRESTIGE BUILDING FLAT 2F 31 PIRIE STREET, MOUNT VICTORIA, WELLINGTON 6011",
            "country": "NZ",
            "attributes": {
                "Exception": "H112 : No pattern matched for this input - PRESTIGE BUILDING FLAT 2F 31 PIRIE STREET, MOUNT VICTORIA, WELLINGTON 6011. Check for punctuation errors, duplicate fields, incorrect input format and incorrect input data."
            }
        }
    ]
}

Failed to Validate

For AU ad NZ: ChangedItems in the response will indicate the records not validated. "affectedElement": "ParsedWithoutMatchInPaf"

For International address: AVC code indicates the address match level. Records with AVC codes prefixed with "U" are unverified matches.

Records failed to validate: Australia, NewZealand and International
{
    "status": "SUCCESS",
    "messages": [],
    "payload": [
        {
            "_type": "ParsedAddressAu",
            "fullAddress": "XYZ BUNGARRIBEE QLD 2807",
            "country": "AUSTRALIA",
            "postcode": "2807",
            "subLocality": "",
            "street2": "",
            "street": "",
            "streetNumber": "",
            "postal": "",
            "postalType": "",
            "postalNumber": "",
            "buildingName": "",
            "subdwelling": "",
            "eid": null,
            "lotNumber": null,
            "flatUnitNumber": "",
            "flatUnitType": "",
            "floorLevelNumber": "",
            "floorLevelType": "",
            "streetSuffix": "",
            "streetType": "",
            "streetName": "",
            "attributes": {
                "AddressQuality": "4",
                "City": "XYZ BUNGARRIBEE",
                "CountryIso2": "AU",
                "CountryIso3": "AUS",
                "CountryIsoNumber": "036",
                "ProvinceCode": "QLD",
                "ProvinceName": "QLD"
            },
            "id": null,
            "careOf": "",
            "exception": null,
            "unknown": "",
            "changedItems": [
                {
                    "componentID": "GNAFValidation",
                    "actionType": "INFO",
                    "affectedElement": "ParsedWithoutMatchInPaf",
                    "oldValue": "",
                    "newValue": ""
                },
                {
                    "componentID": "GNAFValidation",
                    "actionType": "INFO",
                    "affectedElement": "HE019",
                    "oldValue": "",
                    "newValue": ""
                }
            ],
            "state": "QLD",
            "locality": "XYZ BUNGARRIBEE"
        },
        {
            "_type": "ParsedAddressNz",
            "fullAddress": "UNIT 1 G 86 VICTORIA STREET, WELLINGTON CENTRAL, WELLINGTON 6011",
            "country": "NEW ZEALAND",
            "postcode": "6011",
            "subLocality": "",
            "street2": "",
            "street": "VICTORIA ST",
            "streetNumber": "86",
            "postal": "",
            "postalType": "",
            "postalNumber": "",
            "buildingName": "",
            "subdwelling": "G UNIT 1",
            "eid": null,
            "lotNumber": null,
            "flatUnitNumber": "1",
            "flatUnitType": "UNIT",
            "floorLevelNumber": "G",
            "floorLevelType": "",
            "streetSuffix": "",
            "streetType": "ST",
            "streetName": "VICTORIA",
            "attributes": {
                "AddressQuality": "9",
                "City": "WELLINGTON",
                "CountryIso2": "NZ",
                "CountryIso3": "NZL",
                "CountryIsoNumber": "554",
                "MatchedRule": "NZPAF_URBAN_ADDRESS: WIDE_MATCH_RULE(NO_MATCH)",
                "ProvinceCode": "",
                "ProvinceName": ""
            },
            "id": null,
            "rdNumber": "",
            "careOf": "",
            "exception": null,
            "unknown": "",
            "changedItems": [
                {
                    "componentID": "NZHAVEGeoPAF",
                    "actionType": "INFO",
                    "affectedElement": "PointUrbanSubdwellingAddress",
                    "oldValue": "",
                    "newValue": ""
                },
                {
                    "componentID": "NZHAVEGeoPAF",
                    "actionType": "INFO",
                    "affectedElement": "ParsedWithoutMatchInPaf",
                    "oldValue": "",
                    "newValue": ""
                },
                {
                    "componentID": "NZHAVEGeoPAF",
                    "actionType": "ADD",
                    "affectedElement": "HE003",
                    "oldValue": "",
                    "newValue": ""
                },
                {
                    "componentID": "NZAddressStandardization",
                    "actionType": "MODIFY",
                    "affectedElement": "StreetType",
                    "oldValue": "STREET",
                    "newValue": "ST"
                }
            ],
            "suburb": "WELLINGTON CENTRAL",
            "townCity": "WELLINGTON"
        },
        {
            "_type": "AddressIntl",
            "fullAddress": null,
            "country": "UNITED STATES",
            "postcode": null,
            "street2": null,
            "street": null,
            "streetNumber": null,
            "postal": null,
            "postalType": null,
            "postalNumber": null,
            "buildingName": null,
            "subdwelling": null,
            "attributes": {
                "CountryIso2": "US",
                "eLOTNumber": "",
                "CongressionalDistrict": "",
                "CountryIso3": "USA",
                "eLOTCode": "",
                "DropCount": "",
                "DropSiteIndicator": " ",
                "AutoZoneIndicator": "",
                "BusinessIndicator": " ",
                "Footnotes": "C#",
                "OtherIndicator": "",
                "PostalCodeSecondaryRangeHigh": "0000",
                "CarrierRoute": "",
                "LACSLinkIndicator": " ",
                "AQI": "E",
                "DPVConfirmedIndicator": " ",
                "CountryIsoNumber": "840",
                "CentralizedIndicator": "",
                "PMBType": "",
                "CurbIndicator": "",
                "DPVLACSIndicator": " ",
                "PrimaryNumRangeLow": "",
                "ReturnCode": "12",
                "PostalCodeSecondaryRangeLow": "0000",
                "VacantIndicator": " ",
                "City": "",
                "Sequence": "1",
                "AVC": "U00-I00-P0-100",
                "PostalCodeSecondary": "",
                "DependentLocality": "",
                "FalsePositiveIndicator": " ",
                "SUITELinkFootnote": "",
                "SecondaryNumRangeCode": " ",
                "NDCBUIndicator": "",
                "PMBNumber": "",
                "PrimaryNumRangeCode": " ",
                "Organization": "",
                "SecondaryNumRangeLow": "",
                "PrimaryNumRangeHigh": "",
                "ThrowbackIndicator": " ",
                "ResidentialDelivery": " ",
                "CheckDigit": "",
                "ProvinceName": "",
                "CMRAIndicator": " ",
                "DeliveryPointBarCode": "",
                "RecordType": " ",
                "NoStatIndicator": " ",
                "SecondaryAddressLine": "",
                "PostalCodePrimary": "",
                "DPVFootnotes": "A1M1",
                "FIPSCountyCode": "",
                "EducationalIndicator": " ",
                "SecondaryNumRangeHigh": "",
                "PrimaryAddressLine": "",
                "Finance": "000000",
                "SeasonalIndicator": " ",
                "DefaultFlag": " ",
                "ProvinceCode": "",
                "LACSLinkCode": ""
            },
            "id": null,
            "district": null,
            "city": "",
            "province": ""
        }
    ]
}

PreviousAddress by GeocodeNextAddress Parse

Last updated 1 year ago

See for integration best practices.

The response body is an object:

The response body is an object:

Reduce integration effort. See to use the Universal Response objects (same fields in every response).

Address Field Mapping Gui
de
Address Field Mappings
AddressRestResponse
AddressRestResponse