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
  • API:
  • Role used in Harmony WebServices
  • Sample Request and Response for AUSTRALIA
  • 1. Pre Reading
  • 2. Request Samples
  • Sample Request and Response for NEW_ZEALAND
  • 1. Pre Reading
  • 2. Request Samples
  1. Harmony Suite
  2. User Guides
  3. Version 3.0.0
  4. Email and Phone Validation

Phone Validation using Harmony WS

This document provides instructions on utilizing the Harmony Restful WebServices for the Validation of phone numbers using Phone Validation PDPs in different locales.

PreviousPhone Validation using Harmony Batch SystemNextEmail Validation using Harmony Batch

Last updated 1 year ago

API:

http://localhost:8080/HarmonyWS/rest/parseCustomerData

Role used in Harmony WebServices

Use the role detailed in .

Sample Request and Response for AUSTRALIA

1. Pre Reading

Please ensure that you have read and understood the rule when you are running phone validation using default country as Australia. Refer guidance on .

2. Request Samples

Australian Number Validation.

Request 1: Australian Mobile Phone Number with Country Code
{
    "harmonyServiceConfig": {
        "role": "HostedValRole",
        "locale":"AUSTRALIA"
    },
    "parserInput": {
        "rawDataInput": {
           
            "phoneNumber":
            {
            	"value":"+61=mobile (04)12345678"
            }
        }
    }
}
Response 1: Validated Mobile Number
{
    "ciqPartyDocument": {
        "pdpchangeContext": {},
        "options": {
            "exposeAttributes": "7"
        },
        "phone": {
            "numberType": "61",
            "countryCode": "61",
            "localNumber": "412345678",
            "phoneQuality": 7,
            "extraAttributes": {
                "MediaType": "61",
                "phoneStatus": "connected|Network confirmed connection",
                "operatorName": "Telstra"
            }
        },
        "containedInParties": false,
        "locationInParties": 0
    }
}
Request 2: Australian Mobile Phone Number without Country Code
{
    "harmonyServiceConfig": {
        "role": "HostedValRole",
        "locale":"AUSTRALIA"
    },
    "parserInput": {
        "rawDataInput": {
           
            "phoneNumber":
            {
            	"value":"412345678"
            }
        }
    }
}
Response 2: Validated Mobile Number with Country Code
{
    "ciqPartyDocument": {
        "pdpchangeContext": {},
        "options": {
            "exposeAttributes": "7"
        },
        "phone": {
            "numberType": "61",
            "countryCode": "61",
            "localNumber": "412345678",
            "phoneQuality": 7,
            "extraAttributes": {
                "MediaType": "61",
                "phoneStatus": "connected|Network confirmed connection",
                "operatorName": "Telstra"
            }
        },
        "containedInParties": false,
        "locationInParties": 0
    }
}
Request 3: Australian Landline Number
{
    "harmonyServiceConfig": {
        "role": "HostedValRole",
        "locale":"AUSTRALIA"
    },
    "parserInput": {
        "rawDataInput": {
           
            "phoneNumber":
            {
            	"value":"0291234567"
            }
        }
    }
}
Response 3: Please note that the phone number validation process does not support the validation of Landline Numbers.
{
    "ciqPartyDocument": {
        "pdpchangeContext": {},
        "options": {
            "exposeAttributes": "7"
        },
        "phone": {
            "numberType": "61",
            "areaCode": "2",
            "localNumber": "91234567",
            "phoneQuality": 8,
            "extraAttributes": {
                "exception": "Network is forbidden",
                "MediaType": "61",
                "phoneStatus": "indeterminate"
            }
        },
        "containedInParties": false,
        "locationInParties": 0
    }
}

NewZealand Number Validation

Please note the number has to be presented in precise international number format (ITU E.123) prefix '+' followed by country code '+##'

Request 4: New Zealand Mobile Number with Country Code
{
    "harmonyServiceConfig": {
        "role": "HostedValRole",
        "locale":"AUSTRALIA"
    },
    "parserInput": {
        "rawDataInput": {
           
            "phoneNumber":
            {
            	"value":"+64 ?(0)27 123 4567"
            }
        }
    }
}
Response 4: Validated Mobile Number.
{
    "ciqPartyDocument": {
        "pdpchangeContext": {},
        "options": {
            "exposeAttributes": "7"
        },
        "phone": {
            "numberType": "64",
            "countryCode": "64",
            "localNumber": "271234567",
            "phoneQuality": 7,
            "extraAttributes": {
                "exception": "Validated as another country - NZ",
                "MediaType": "64",
                "phoneStatus": "connected|Network confirmed connection",
                "operatorName": "Spark New Zealand (ex. Telecom NZ)"
            }
        },
        "containedInParties": false,
        "locationInParties": 0
    }
}

Non-Australian/New Zealand Number Validation

Please follow steps below.

  • Number has to be presented in precise international number format (ITU E.123) ,prefix '+' followed by country code '+##'.

Request 5: International Number with Country code (United Kingdom Number)
{
    "harmonyServiceConfig": {
        "role": "HostedValRole",
        "locale":"AUSTRALIA"
    },
    "parserInput": {
        "rawDataInput": {
           
            "phoneNumber":
            {
            	"value":"+44 123 456 7865"
            }
        }
    }
}
Response 5: Validated International Number
{
    "ciqPartyDocument": {
        "pdpchangeContext": {},
        "options": {
            "exposeAttributes": "7"
        },
        "locationInParties": 0,
        "containedInParties": false,
        "phone": {
            "countryCode": "44",
            "phoneQuality": 7,
            "localNumber": "1234567865",
            "extraAttributes": {
                "exception": "Validated as another country - GB",
                "phoneStatus": "connected|Network confirmed connection",
                "operatorName": "MNO - 3 (Hutchison 3G UK Ltd)"
            }
        }
    }
}

Sample Request and Response for NEW_ZEALAND

1. Pre Reading

2. Request Samples

Please note that for all validated connected numbers the user will see the phone provider's name under operatorName JSON object.

New Zealand Number Validation

Request 1: New-Zealand Mobile Phone Number with Country Code
{
    "harmonyServiceConfig": {
        "role": "HostedValRole",
        "locale":"NEW_ZEALAND"
    },
    "parserInput": {
        "rawDataInput": {
           
            "phoneNumber":
            {
            	"value":"+64 Fax ?(0)27 123 4567"
            }
        }
    }
}
Response 1: Validated Mobile Number
{
    "ciqPartyDocument": {
        "pdpchangeContext": {},
        "options": {
            "exposeAttributes": "7"
        },
        "phone": {
            "numberType": "64",
            "countryCode": "64",
            "localNumber": "271234567",
            "phoneQuality": 7,
            "extraAttributes": {
                "MediaType": "64",
                "phoneStatus": "connected|Network confirmed connection",
                "operatorName": "Spark New Zealand (ex. Telecom NZ)"
            }
        },
        "containedInParties": false,
        "locationInParties": 0
    }
}
Request 2: New-Zealand Mobile Phone Number without Country Code
{
    "harmonyServiceConfig": {
        "role": "HostedValRole",
        "locale":"NEW_ZEALAND"
    },
    "parserInput": {
        "rawDataInput": {
           
            "phoneNumber":
            {
            	"value":"(0)27 123 4567"
            }
        }
    }
}
Response 2: Validated Mobile Number with Country Code
{
    "ciqPartyDocument": {
        "pdpchangeContext": {},
        "options": {
            "exposeAttributes": "7"
        },
        "phone": {
            "numberType": "64",
            "countryCode": "64",
            "localNumber": "0271234567",
            "phoneQuality": 7,
            "extraAttributes": {
                "MediaType": "64",
                "phoneStatus": "connected|Network confirmed connection",
                "operatorName": "Spark New Zealand (ex. Telecom NZ)"
            }
        },
        "containedInParties": false,
        "locationInParties": 0
    }
}
Request 3: New-Zealand Land Line Number
{
    "harmonyServiceConfig": {
        "role": "HostedValRole",
        "locale":"NEW_ZEALAND"
    },
    "parserInput": {
        "rawDataInput": {
           
            "phoneNumber":
            {
            	"value":"+64 09 7001234"
            }
        }
    }
}
Response 3: Please note that the phone number validation process does not support the validation of landline numbers.
{
    "ciqPartyDocument": {
        "pdpchangeContext": {},
        "options": {
            "exposeAttributes": "7"
        },
        "phone": {
            "numberType": "64",
            "areaCode": "9",
            "localNumber": "7001234",
            "phoneQuality": 8,
            "extraAttributes": {
                "exception": "Network is forbidden",
                "MediaType": "64",
                "phoneStatus": "indeterminate"
            }
        },
        "containedInParties": false,
        "locationInParties": 0
    }
}

Australian Number Validation

Please note the number has to be presented in precise international number format (ITU E.123) prefix '+' followed by country code '+##'

Request 4: Australian Mobile Number with Country Code
{
    "harmonyServiceConfig": {
        "role": "HostedValRole",
        "locale":"NEW_ZEALAND"
    },
    "parserInput": {
        "rawDataInput": {
           
            "phoneNumber":
            {
            	"value":"+61=mobile (04)12345678"
            }
        }
    }
}
Response 4: Validated Mobile Number.
{
    "ciqPartyDocument": {
        "pdpchangeContext": {},
        "options": {
            "exposeAttributes": "7"
        },
        "phone": {
            "numberType": "61",
            "countryCode": "61",
            "localNumber": "412345678",
            "phoneQuality": 7,
            "extraAttributes": {
                "exception": "Validated as another country - AU",
                "MediaType": "61",
                "phoneStatus": "connected|Network confirmed connection",
                "operatorName": "Telstra"
            }
        },
        "containedInParties": false,
        "locationInParties": 0
    }
}

Non-Australian/New Zealand Number Validation

Please follow steps below.

  • Number has to be presented in precise international number format (ITU E.123), prefix '+' followed by country code '+##'.

Request 5: International Number with Country code (United Kingdom Number)
{
    "harmonyServiceConfig": {
        "role": "HostedValRole",
        "locale":"NEW_ZEALAND"
    },
    "parserInput": {
        "rawDataInput": {
           
            "phoneNumber":
            {
            	"value":"+44 123 456 7865"
            }
        }
    }
}
Response 5: Validated International Number
{
    "ciqPartyDocument": {
        "pdpchangeContext": {},
        "options": {
            "exposeAttributes": "7"
        },
        "locationInParties": 0,
        "containedInParties": false,
        "phone": {
            "countryCode": "44",
            "phoneQuality": 7,
            "localNumber": "1234567865",
            "extraAttributes": {
                "exception": "Validated as another country - GB",
                "phoneStatus": "connected|Network confirmed connection",
                "operatorName": "MNO - 3 (Hutchison 3G UK Ltd)"
            }
        }
    }
}

configuration.

Please ensure that you have read and understood the rule when you are running phone validation using default country as New Zealand. Refer guidance on Refer guidance on .

configuration.

PDP configuration setup
Activating Global Phone Validation
Activating Global Phone Validation
Alignment of Default Locale and 'hosted.defaultCountry' for Phone Validation Users
Alignment of Default Locale and 'hosted.defaultCountry' for Phone Validation Users