Email Validation using Harmony WS

This document provides instructions on utilizing the Harmony Restful WebServices for the Validation of email addresses using Email Validation PDPs in different locales.

API:

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

Role used in Webservice Request

Use the role detailed in PDP configuration setup.

Sample Request and Response

1. Pre Reading

Please ensure that you have read and understood the rule when you are running Email Validation. Although locale must be set in the request it doesn't impact the Email Validation results, user can choose either AUSTRALIA/NEW_ZEALAND as Default Locale. Refer guidance on Alignment of Default Locale and 'hosted.defaultCountry' for Phone Validation Users.

2. Request Samples

Request 1: Input Deliverable email
{
    "harmonyServiceConfig": {
        "role": "HostedValRole",
        "locale":"AUSTRALIA"  //doesnot impact processing
     
    },
    "parserInput": {
        "rawDataInput": {
           
            "emailAddress":
            {
            	"value":"[email protected]"
            }
        }
    }
}
Response 1: Validated Email that is DELIVERABLE.
{
    "ciqPartyDocument": {
        "pdpchangeContext": {},
        "options": {
            "exposeAttributes": "7"
        },
        "emailAddress": {
            "emailAddress": "[email protected]",
            "uniqueName": "jim",
            "domainName": "hotmail.com",
            "extraAttributes": {
                "catchAll": "false",
                "do_not_send": "false",
                "hashmd5": "3e9385d795906ee1a3e04aa93bfa3a41",
                "hashsha256": "4c93fb55adc0297ee4086a8d047ff7ca694784c690703eab0f215685db180f37",
                "domain_exists": "VALID",
                "mailserver_exists": "VALID",
                "deliverable": "DELIVERABLE",
                "email_valid": "VALID",
                "domainValidated": "true",
                "message": "Email verified.",
                "disposable": "false",
                "email_exists": "VALID",
                "do_not_mail": "false",
                "hashsha1": "7a90bf8dcac4717728d4f36e291ff17255dadeb2",
                "rolebased": "false",
                "mailBoxValidated": "true",
                "blackListValidated": "true",
                "domain": "hotmail.com",
                "formatValidated": "true",
                "subdomain": "false",
                "risk": "LOW",
                "emailValidated": "true",
                "account": "jim"
            }
        },
        "containedInParties": false,
        "locationInParties": 0
    }
}
Request 2: Input Email Address that Doesn't Exist on Mail Server.
Response 2: Undeliverable Email with Mail Box Not Validated
Request 3: Input Timed Out by the SMTP Provider
Response 3: Undeliverable Email with Reason Code: smtp_timeout

Last updated