1.0.9 • Published 2 years ago

dotsaddressvalidationinternational v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Service Objects - Address Validation International

Our real-time International Address Validation (AVI) API service verifies and corrects global mailing addresses to the unique requirements of each country’s postal address formats and cultural idiosyncrasies. With continual updates from country-specific postal authorities, our data is always up-to-date with genuine and accurate addresses.

Table of Contents

Getting Started

  1. Create a new Node.js project  
  2. Install the AVI module
    npm install dotsaddressvalidationinternational
  3. Load in the module to your project

    var AddressValidationInternational = require(dotsaddressvalidationinternational);
  4. Call the getAddressInfo() method

    AddressValidationInternational.getAddressInfo(
        Address1, 
        Address2, 
        Address3, 
        Address4, 
        Address5, 
        Locality, 
        AdministrativeArea, 
        PostalCode, 
        Country, 
        OutputLanguage, 
        LicenseKey, 
        Environment, 
        function(err, response){...}
    );

GetAddressInfo

Inputs

ParameterTypeRequiredValue
Address1StringYesAddress Line 1 of the International Address
Address2StringNoAddress Line 2 of the International Address
Address3StringNoAddress Line 3 of the International Address
Address4StringNoAddress Line 4 of the International Address
Address5StringNoAddress Line 5 of the International Address
LocalityStringYes*The name of the distinct population cluster, such as a City, Town or other type of Municipality.
AdministrativeAreaStringYes*The name of the administrative division. Commonly the primary division of a country, such as a State, Region, Province, County, Territory or Prefecture.
PostalCodeStringYes**The postal code of the international address. It is recommended that the postal code be formatted to contain a strong resemblance to the proper country specific format, and that you do not precede the postal code with a country or region code. For example, use '09170' instead of 'FR-9170'.
CountryStringYesThe preferred name of the country or the ISO 3166-1 Alpha-2 Country Code or the Alpha-3 Country Code. Alternate country names and spellings are supported, but the use of the common English spelled name or ISO2 country code is recommended. For a list of all supported countries please see the Country Support Table.
OutputLanguageStringYesSpecifies service language settings and behavior (ENGLISH, BOTH, LOCAL, LOCAL_ROMAN)
LicenseKeyStringYesYour license key to use the service.
EnvironmentStringYes"trial" OR "production"

* Required if a postal code is not provided.

  ** Required if a locality and an administrative area are not provided.

Response

{
    "AddressInfo":{
        "Status":"String content",
        "ResolutionLevel":"String content",
        "Address1":"String content",
        "Address2":"String content",
        "Address3":"String content",
        "Address4":"String content",
        "Address5":"String content",
        "Address6":"String content",
        "Address7":"String content",
        "Address8":"String content",
        "Locality":"String content",
        "AdministrativeArea":"String content",
        "PostalCode":"String content",
        "Country":"String content",
        "CountryISO2":"String content",
        "CountryISO3":"String content",
        "InformationComponents":[{
            "Name":"String content",
            "Value":"String content"
        }]
    },
    "Error":{
        "Type":"String content",
        "TypeCode":"String content",
        "Desc":"String content",
        "DescCode":"String content"
    },
    "Debug":"String content"
}

Features

For trial keys, set the Environment variable to "trial". Once you purchase a production license key, swap the Environment variable to "production" and change out your LicenseKey to your new license key.

The module automatically handles failover logic when using the production environment. This helps to ensure your web service requests are made sucessfully regardless of any network interuptions.

Developer Guide

For a deeper dive into our API, visit our developer guides.

Developer Guide

License Key

If you’re ready to put it to the test, sign up for a free API trial key and get 500 free transactions.

Request a Trial Key

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago