Global Address Verification:REST JSON: Difference between revisions

From Melissa Data Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:


<pre>
<pre>
http://address.melissadata.net/V3/WEB/GlobalAddress/doGlobalAddress
https://address.melissadata.net/V3/WEB/GlobalAddress/doGlobalAddress
?t={TransmissionReference}
?t={TransmissionReference}
&id={CustomerId}
&id={CustomerId}
Line 27: Line 27:
&loc={Locality}
&loc={Locality}
&subadmarea={SubAdministrativeArea}
&subadmarea={SubAdministrativeArea}
&admarea={AdinistrativeArea}
&admarea={AdministrativeArea}
&subnatarea={SubNationalArea}
&subnatarea={SubNationalArea}
&postal={PostalCode}
&postal={PostalCode}
Line 62: Line 62:
     "AdministrativeArea":"string",
     "AdministrativeArea":"string",
     "PostalCode":"string",
     "PostalCode":"string",
    "PostalCodeType":"string",
     "AddressType":"string",
     "AddressType":"string",
     "AddressKey":"string",
     "AddressKey":"string",
Line 69: Line 70:
     "CountryISO3166_1_Alpha3":"string",
     "CountryISO3166_1_Alpha3":"string",
     "CountryISO3166_1_Numeric":"string",
     "CountryISO3166_1_Numeric":"string",
    "CountrySubdivisionCode":"string",
     "Thoroughfare":"string",
     "Thoroughfare":"string",
     "ThoroughfarePreDirection":"string",
     "ThoroughfarePreDirection":"string",
Line 88: Line 90:
     "PostBox":"string",
     "PostBox":"string",
     "Latitude":"string",
     "Latitude":"string",
     "Longitude":"string"
     "Longitude":"string",
    "DeliveryIndicator":"string",
    "MelissaAddressKey":"string",
    "MelissaAddressKeyBase":"string",
    "PostOfficeLocation":"string",
    "SubPremiseLevel":"string",
    "SubPremiseLevelType":"string",
    "SubPremiseLevelNumber":"string",
    "SubBuilding":"string",
    "SubBuildingType":"string",
    "SubBuildingNumber":"string",
    "UTC":"string",
    "DST":"string",
    "DeliveryPointSuffix":"string",
    "CensusKey":"string",
    "Extras":[{
      ...
    }]
   }]
   }]
}
}

Latest revision as of 16:40, 13 February 2024

← Global Address Verification

Global Address Navigation
Introduction
Licensing
Input/Output
Request Fields
Response Fields
Examples
REST JSON
REST JSONP
REST XML
Batch JSON
Batch SOAP
Batch XML
Result Codes
Result Code Use
Global Address Verification Result Codes
Sample Code



REST Request

There is no recordID element because a REST request can only submit one record per request.

https://address.melissadata.net/V3/WEB/GlobalAddress/doGlobalAddress
?t={TransmissionReference}
&id={CustomerId}
&opt={Options}
&org={Organization}
&a1={AddressLine1}
&a2={AddressLine2}
&a3={AddressLine3}
&a4={AddressLine4}
&a5={AddressLine5}
&a6={AddressLine6}
&a7={AddressLine7}
&a8={AddressLine8}
&ddeploc={DoubleDependentLocality}
&deploc={DependentLocality}
&loc={Locality}
&subadmarea={SubAdministrativeArea}
&admarea={AdministrativeArea}
&subnatarea={SubNationalArea}
&postal={PostalCode}
&ctry={Country}
&format=JSON


JSON Response

{
  "Version":"string",
  "TransmissionReference":"string",
  "TransmissionResults":"string",
  "TotalRecords":"string",
  "Records":[{
    "RecordID":"string",
    "Results":"string",
    "FormattedAddress":"string",
    "Organization":"string",
    "AddressLine1":"string",
    "AddressLine2":"string",
    "AddressLine3":"string",
    "AddressLine4":"string",
    "AddressLine5":"string",
    "AddressLine6":"string",
    "AddressLine7":"string",
    "AddressLine8":"string",
    "SubPremises":"string",
    "DoubleDependentLocality":"string",
    "DependentLocality":"string",
    "Locality":"string",
    "SubAdministrativeArea":"string",
    "AdministrativeArea":"string",
    "PostalCode":"string",
    "PostalCodeType":"string",
    "AddressType":"string",
    "AddressKey":"string",
    "SubNationalArea":"string",
    "CountryName":"string",
    "CountryISO3166_1_Alpha2":"string",
    "CountryISO3166_1_Alpha3":"string",
    "CountryISO3166_1_Numeric":"string",
    "CountrySubdivisionCode":"string",
    "Thoroughfare":"string",
    "ThoroughfarePreDirection":"string",
    "ThoroughfareLeadingType":"string",
    "ThoroughfareName":"string",
    "ThoroughfareTrailingType":"string",
    "ThoroughfarePostDirection":"string",
    "DependentThoroughfare":"string",
    "DependentThoroughfarePreDirection":"string",
    "DependentThoroughfareLeadingType":"string",
    "DependentThoroughfareName":"string",
    "DependentThoroughfareTrailingType":"string",
    "DependentThoroughfarePostDirection":"string",
    "Building":"string",
    "PremisesType":"string",
    "PremisesNumber":"string",
    "SubPremisesType":"string",
    "SubPremisesNumber":"string",
    "PostBox":"string",
    "Latitude":"string",
    "Longitude":"string",
    "DeliveryIndicator":"string",
    "MelissaAddressKey":"string",
    "MelissaAddressKeyBase":"string",
    "PostOfficeLocation":"string",
    "SubPremiseLevel":"string",
    "SubPremiseLevelType":"string",
    "SubPremiseLevelNumber":"string",
    "SubBuilding":"string",
    "SubBuildingType":"string",
    "SubBuildingNumber":"string",
    "UTC":"string",
    "DST":"string",
    "DeliveryPointSuffix":"string",
    "CensusKey":"string",
    "Extras":[{
      ...
    }]
  }]
}