{"id":6014,"date":"2022-11-15T17:53:13","date_gmt":"2022-11-15T17:53:13","guid":{"rendered":"https:\/\/serviceobjects.wpaladdin.com\/?page_id=6014"},"modified":"2022-12-14T22:08:21","modified_gmt":"2022-12-14T22:08:21","slug":"lvi-rest","status":"publish","type":"page","link":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-rest\/","title":{"rendered":"LVI &#8211; REST"},"content":{"rendered":"\n<div class=\"wp-block-create-block-tabs\"><ul class=\"tab-labels\" role=\"tablist\" aria-label=\"tabbed content\"><li class=\"tab-label active\" role=\"tab\">C#<\/li><li class=\"tab-label\" role=\"tab\">Java<\/li><\/ul><div class=\"tab-content\">\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong><strong>Lead Validation International C# Code Snippet<\/strong><\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">string primaryURL = \"https:\/\/trial.serviceobjects.com\/lvi\/api.svc\/XML\/ValidateLeadInternational?FullName=\" + FullName.Text + \"&amp;Salutation=\" + Salutation.Text + \"&amp;FirstName=\" + FirstName.Text + \"&amp;LastName=\" + LastName.Text + \"&amp;BusinessName=\" + BusinessName.Text + \"&amp;BusinessDomain=\" + BusinessDomain.Text + \"&amp;BusinessEIN=\" + BusinessEIN.Text + \"&amp;Address1=\" + Address1.Text + \"&amp;Address2=\" + Address2.Text + \"&amp;Address3=\" + Address3.Text + \"&amp;Address4=\" + Address4.Text + \"&amp;Address5=\" + Address5 + \"&amp;Locality=\" + Locality.Text + \"&amp;AdminArea=\" + AdminArea.Text + \"&amp;PostalCode=\" + PostalCode.Text + \"&amp;Country=\" + Country.Text + \"&amp;Phone1=\" + Phone1.Text + \"&amp;Phone2=\" + Phone2.Text + \"&amp;Email=\" + Email.Text + \"&amp;IPAddress=\" + IPAddress.Text + \"&amp;Gender=\" + Gender.Text + \"&amp;DateOfBirth=\" + DateOfBirth.Text + \"&amp;UTCCaptureTime=\" + UTCCaptureTime.Text + \"&amp;OutputLanguage=\" + OutputLanguage.Text + \"&amp;TestType=\" + TestType.Text + \"&amp;LicenseKey=\" + LicenseKey.Text;\nstring backupURL = \"https:\/\/trial.serviceobjects.com\/lvi\/api.svc\/XML\/ValidateLeadInternational?FullName=\" + FullName.Text + \"&amp;Salutation=\" + Salutation.Text + \"&amp;FirstName=\" + FirstName.Text + \"&amp;LastName=\" + LastName.Text + \"&amp;BusinessName=\" + BusinessName.Text + \"&amp;BusinessDomain=\" + BusinessDomain.Text + \"&amp;BusinessEIN=\" + BusinessEIN.Text + \"&amp;Address1=\" + Address1.Text + \"&amp;Address2=\" + Address2.Text + \"&amp;Address3=\" + Address3.Text + \"&amp;Address4=\" + Address4.Text + \"&amp;Address5=\" + Address5 + \"&amp;Locality=\" + Locality.Text + \"&amp;AdminArea=\" + AdminArea.Text + \"&amp;PostalCode=\" + PostalCode.Text + \"&amp;Country=\" + Country.Text + \"&amp;Phone1=\" + Phone1.Text + \"&amp;Phone2=\" + Phone2.Text + \"&amp;Email=\" + Email.Text + \"&amp;IPAddress=\" + IPAddress.Text + \"&amp;Gender=\" + Gender.Text + \"&amp;DateOfBirth=\" + DateOfBirth.Text + \"&amp;UTCCaptureTime=\" + UTCCaptureTime.Text + \"&amp;OutputLanguage=\" + OutputLanguage.Text + \"&amp;TestType=\" + TestType.Text + \"&amp;LicenseKey=\" + LicenseKey.Text;\n \ntry\n{\n    \/\/Make Call to primary URL\n    response = httpGet(primaryURL);\n    if (response == null || (response.Error != null &amp;&amp; response.Error.TypeCode == \"3\"))\n    {\n        throw new Exception();\n    }\n}\ncatch\n{\n    response = httpGet(backupURL);\n}<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong><strong>Lead Validation International Java Code Snippet<\/strong><\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"java\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">String FullName,\nSalutation,\nFirstName,\nLastName,\nBusinessName,\nBusinessDomain,\nBusinessEIN,\nAddress1,\nAddress2,\nAddress3,\nAddress4,\nAddress5,\nLocality,\nAdminArea,\nPostalCode,\nCountry,\nPhone1,\nPhone2,\nEmail,\nIPAddress,\nGender,\nDateOfBirth,\nUTCCaptureTime,\nOutputLanguage,\nTestType,\nLicenseKey;\n \nFullName = request.getParameter(\"iFullName\");\nSalutation = request.getParameter(\"iSalutation\");\nFirstName = request.getParameter(\"iFirstName\");\nLastName = request.getParameter(\"iLastName\");\nBusinessName = request.getParameter(\"iBusinessName\");\nBusinessDomain = request.getParameter(\"iBusinessDomain\");\nBusinessEIN = request.getParameter(\"iBusinessEIN\");\nAddress1 = request.getParameter(\"iAddress1\");\nAddress2 = request.getParameter(\"iAddress2\");\nAddress3 = request.getParameter(\"iAddress3\");\nAddress4 = request.getParameter(\"iAddress4\");\nAddress5 = request.getParameter(\"iAddress5\");\nLocality = request.getParameter(\"iLocality\");\nAdminArea = request.getParameter(\"iAdminArea\");\nPostalCode = request.getParameter(\"iPostalCode\");\nCountry = request.getParameter(\"iCountry\");\nPhone1 = request.getParameter(\"iPhone1\");\nPhone2 = request.getParameter(\"iPhone2\");\nEmail = request.getParameter(\"iEmail\");\nIPAddress = request.getParameter(\"iIPAddress\");\nGender = request.getParameter(\"iGender\");\nDateOfBirth = request.getParameter(\"iDateOfBirth\");\nUTCCaptureTime = request.getParameter(\"iUTCCaptureTime\");\nOutputLanguage = request.getParameter(\"iOutputLanguage\");\nTestType = request.getParameter(\"iTestType\");\nLicenseKey = request.getParameter(\"iLicenseKey\");\n \nContactInternational Response = null;\nLVIClient Client = new LVIClient();\n \ntry{\n    Response = Client.ValidateLeadInternational(FullName, Salutation, FirstName, LastName, BusinessName, BusinessDomain, BusinessEIN, Address1, Address2, Address3, Address4, Address5, Locality, AdminArea, PostalCode, Country, Phone1, Phone2, Email, IPAddress, Gender, DateOfBirth, UTCCaptureTime, OutputLanguage, TestType, LicenseKey);\n}\ncatch(Exception r)\n{\n    \/\/ Implementing failover logic below as an example.\n    LVIClient backupClient = new LVIClient();\n    Response = backupClient.ValidateLeadInternational(FullName, Salutation, FirstName, LastName, BusinessName, BusinessDomain, BusinessEIN, Address1, Address2, Address3, Address4, Address5, Locality, AdminArea, PostalCode, Country, Phone1, Phone2, Email, IPAddress, Gender, DateOfBirth, UTCCaptureTime, OutputLanguage, TestType, LicenseKey);\n}<\/pre>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":6012,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-6014","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LVI - REST<\/title>\n<meta name=\"description\" content=\"C#Java Lead Validation International C# Code Snippet string primaryURL =\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LVI - REST\" \/>\n<meta property=\"og:description\" content=\"C#Java Lead Validation International C# Code Snippet string primaryURL =\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-rest\/\" \/>\n<meta property=\"og:site_name\" content=\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-14T22:08:21+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-rest\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-rest\/\",\"name\":\"LVI - REST\",\"isPartOf\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\"},\"datePublished\":\"2022-11-15T17:53:13+00:00\",\"dateModified\":\"2022-12-14T22:08:21+00:00\",\"description\":\"C#Java Lead Validation International C# Code Snippet string primaryURL =\",\"breadcrumb\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-rest\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-rest\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-rest\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DOTS Lead Validation &#8211; International\u00a0\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"LVI &#8211; Code Snippets and Sample Code\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"LVI &#8211; REST\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/test.serviceobjects.com\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#organization\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"contentUrl\":\"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"width\":2560,\"height\":1440,\"caption\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\"},\"image\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LVI - REST","description":"C#Java Lead Validation International C# Code Snippet string primaryURL =","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"LVI - REST","og_description":"C#Java Lead Validation International C# Code Snippet string primaryURL =","og_url":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-rest\/","og_site_name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","article_modified_time":"2022-12-14T22:08:21+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-rest\/","url":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-rest\/","name":"LVI - REST","isPartOf":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#website"},"datePublished":"2022-11-15T17:53:13+00:00","dateModified":"2022-12-14T22:08:21+00:00","description":"C#Java Lead Validation International C# Code Snippet string primaryURL =","breadcrumb":{"@id":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-rest\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-rest\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/lvi-rest\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.serviceobjects.com\/docs\/"},{"@type":"ListItem","position":2,"name":"DOTS Lead Validation &#8211; International\u00a0","item":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/"},{"@type":"ListItem","position":3,"name":"LVI &#8211; Code Snippets and Sample Code","item":"https:\/\/test.serviceobjects.com\/docs\/dots-lead-validation-international\/lvi-code-snippets-and-sample-code\/"},{"@type":"ListItem","position":4,"name":"LVI &#8211; REST"}]},{"@type":"WebSite","@id":"https:\/\/test.serviceobjects.com\/docs\/#website","url":"https:\/\/test.serviceobjects.com\/docs\/","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","description":"","publisher":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/test.serviceobjects.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/test.serviceobjects.com\/docs\/#organization","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","url":"https:\/\/test.serviceobjects.com\/docs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/","url":"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","contentUrl":"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","width":2560,"height":1440,"caption":"Service Objects | Contact, Phone, Email Verification | Data Quality Services"},"image":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/6014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/comments?post=6014"}],"version-history":[{"count":6,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/6014\/revisions"}],"predecessor-version":[{"id":7316,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/6014\/revisions\/7316"}],"up":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/6012"}],"wp:attachment":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/media?parent=6014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}