Skip to end of banner
Go to start of banner

melissa_data

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

Available from CRM.COM R10.0.0


GET melissa_data/advance_lookup

This method returns Addresses information from the Melissa Data Address Registry System with which CRM.COM integrates with. Multiple addresses might be returned by each call

Resource URL

http://host_name/crmapi/rest/$version/melissa_data/advance_lookup

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

account_id

(mandatory)

String

The Melissa Data Account ID as specified in the Address Registry Settings

street_name

(optional)

String

Restricts the retrieved addresses to the addresses of the specified Street Name.

street_number

(optional)

StringRestricts the retrieved addresses to the addresses of the specified Street Number.

municipality

(optional)

StringRestricts the retrieved addresses to the addresses of the specified Municipality.

district

(optional)

StringRestricts the retrieved addresses to the addresses of the specified District.

city

(optional)

StringRestricts the retrieved addresses to the addresses of the specified Town/City.

area

(optional)

StringRestricts the retrieved addresses to the addresses of the specified Area.

apartment_number

(optional)

String

Restricts the retrieved addressed to the addresses of the specified Apartment Number.

postal_code

(optional)

StringRestricts the retrieved addresses to the addresses of the specified Postal Code.

po_box

(optional)

StringRestricts the retrieved addresses to the addresses of the specified PO Box.

country

(optional)

StringRestricts the retrieved addresses to the addresses of the specified Country. Always defaults to the Country specified in Admin Settings if not specified. If specified, then the Country's 2-characters code must be defined

max_records

(optional)

IntegerDefines the maximum number of addresses to be returned. Always defaults to 10.

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified

Response Data

Name

Type

Description

result_code

String

Code indicating whether a successful request was sent or not. For successful requests, the code denote the number of addresses included in the response and the available values are ALL, NONE and SOME. For un-successfull requests the results_description provides information of the erroneous request.

result_descriptionStringDescription of the error returned by Melissa Data Global Express Entry. Available only when the request was not successfully sent

addresses

List of Melissa Data Address Objects

A list of addresses returned by the address search in Melissa Data Express Entry/Melissa Data Express Entry Form 

Referred Objects Response Data

 melissa_data object response data

Name

Type

Description

address

String

Full formatted address

street_nameStringAddress Street Name
street_numberStringAddress Street Number
postal_codeStringAddress Postal Code
apartment_numberStringAddress Apartment Number
areaStringAddress Area
cityStringAddress City/Town
districtStringAddress District
municipalityStringAddress Municipality
po_boxStringAddress PO Box
countryStringAddress Country

 

Examples

 Example 1

HTTP Method: GET

 

Request:

Response:

 {
  "status": {
    "message": "",
    "description": "",
    "code": "OK"
  },
  "data": {
    "addresses": [
      {
        "postal_code": "",
        "address": "10 Leoforos Archiepiskopou Makariou G, Kaimakli, Nicosia",
        "street_number": "10",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Leoforos Archiepiskopou Makariou G",
        "city": "Nicosia",
        "po_box": "",
        "municipality": "Lefkosia",
        "area": "Kaimakli",
        "district": ""
      },
      {
        "postal_code": "",
        "address": "10 Leoforos Archiepiskopou Makariou Iii, Nicosia",
        "street_number": "10",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Leoforos Archiepiskopou Makariou Iii",
        "city": "Nicosia",
        "po_box": "",
        "municipality": "Lefkosia",
        "area": "",
        "district": ""
      },
      {
        "postal_code": "",
        "address": "10 Odos Archiepiskopou Makariou Ii, Nicosia",
        "street_number": "10",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Odos Archiepiskopou Makariou Ii",
        "city": "Nicosia",
        "po_box": "",
        "municipality": "Lefkosia",
        "area": "",
        "district": ""
      },
      {
        "postal_code": "",
        "address": "10 Odos Archiepiskopou Makariou Ii, Kaimakli, Nicosia",
        "street_number": "10",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Odos Archiepiskopou Makariou Ii",
        "city": "Nicosia",
        "po_box": "",
        "municipality": "Lefkosia",
        "area": "Kaimakli",
        "district": ""
      },
      {
        "postal_code": "",
        "address": "10 Odos Leontiou Machaira, Nicosia",
        "street_number": "10",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Odos Leontiou Machaira",
        "city": "Nicosia",
        "po_box": "",
        "municipality": "Lefkosia",
        "area": "",
        "district": ""
      }
    ],
    "result_description": "null",
    "result_code": "SOME"
  }
}

GET melissa_data/quick_lookup

This method returns address information from the Melissa Data Address Registry System with which CRM.COM integrates with. Multiple addresses might be returned by each call.

Resource URL

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

account_id

(mandatory)

String

The Melissa Data Account ID as specified in the Address Registry Settings

address

(mandatory)

StringDetailed information about the address that will be retrieved through the Address Registry System in free text.

country

(optional)

StringRestricts the retrieved addresses to the addresses of the specified Country. Always defaults to the Country specified in Admin Settings. If specified, then the Country's 2-characters code must be defined

max_records

(optional)

IntegerDefines the maximum number of addresses to be returned. Always defaults to 10.

Restrictions

  • It is mandatory to specify at least one of the semi-optional parameters. Multiple of those parameters are allowed to be specified.

Response Data

Name

Type

Description

result_code

String

Code indicating whether a successful request was sent or not. For successful requests, the code denote the number of addresses included in the response and the available values are ALL, NONE and SOME. For un-successfull requests the results_description provides information of the erroneous request.

result_descriptionStringDescription of the error returned by Melissa Data Global Express Entry. Available only when the request was not successfully sent

addresses

List of Melissa Data Address Objects

A list of addresses returned by the address search in Melissa Data Express Entry/Melissa Data Express Entry Form 

Referred Objects Response Data

 melissa_data object response data

Name

Type

Description

address

String

Full formatted address

street_nameStringAddress Street Name
street_numberStringAddress Street Number
postal_codeStringAddress Postal Code
apartment_numberStringAddress Apartment Number
areaStringAddress Area
cityStringAddress City/Town
districtStringAddress District
municipalityStringAddress Municipality
po_boxStringAddress PO Box
countryStringAddress Country

 

Examples

 Example 1

HTTP Method: GET

 

Request:

Response:

 {
  "status": {
    "message": "",
    "description": "",
    "code": "OK"
  },
  "data": {
    "addresses": [
      {
        "postal_code": "",
        "address": "1 Odos Ilia Papakyriakou, Paralimni",
        "street_number": "1",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Odos Ilia Papakyriakou",
        "city": "Paralimni",
        "po_box": "",
        "municipality": "Ammochostos",
        "area": "",
        "district": ""
      },
      {
        "postal_code": "",
        "address": "2 Odos Ilia Papakyriakou, Paralimni",
        "street_number": "2",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Odos Ilia Papakyriakou",
        "city": "Paralimni",
        "po_box": "",
        "municipality": "Ammochostos",
        "area": "",
        "district": ""
      },
      {
        "postal_code": "",
        "address": "3 Odos Ilia Papakyriakou, Paralimni",
        "street_number": "3",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Odos Ilia Papakyriakou",
        "city": "Paralimni",
        "po_box": "",
        "municipality": "Ammochostos",
        "area": "",
        "district": ""
      },
      {
        "postal_code": "",
        "address": "4 Odos Ilia Papakyriakou, Paralimni",
        "street_number": "4",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Odos Ilia Papakyriakou",
        "city": "Paralimni",
        "po_box": "",
        "municipality": "Ammochostos",
        "area": "",
        "district": ""
      },
      {
        "postal_code": "",
        "address": "5 Odos Ilia Papakyriakou, Paralimni",
        "street_number": "5",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Odos Ilia Papakyriakou",
        "city": "Paralimni",
        "po_box": "",
        "municipality": "Ammochostos",
        "area": "",
        "district": ""
      },
      {
        "postal_code": "",
        "address": "6 Odos Ilia Papakyriakou, Paralimni",
        "street_number": "6",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Odos Ilia Papakyriakou",
        "city": "Paralimni",
        "po_box": "",
        "municipality": "Ammochostos",
        "area": "",
        "district": ""
      },
      {
        "postal_code": "",
        "address": "7 Odos Ilia Papakyriakou, Paralimni",
        "street_number": "7",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Odos Ilia Papakyriakou",
        "city": "Paralimni",
        "po_box": "",
        "municipality": "Ammochostos",
        "area": "",
        "district": ""
      },
      {
        "postal_code": "",
        "address": "8 Odos Ilia Papakyriakou, Paralimni",
        "street_number": "8",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Odos Ilia Papakyriakou",
        "city": "Paralimni",
        "po_box": "",
        "municipality": "Ammochostos",
        "area": "",
        "district": ""
      },
      {
        "postal_code": "",
        "address": "9 Odos Ilia Papakyriakou, Paralimni",
        "street_number": "9",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Odos Ilia Papakyriakou",
        "city": "Paralimni",
        "po_box": "",
        "municipality": "Ammochostos",
        "area": "",
        "district": ""
      },
      {
        "postal_code": "",
        "address": "10 Odos Ilia Papakyriakou, Paralimni",
        "street_number": "10",
        "apartment_number": null,
        "country": "Cyprus",
        "street_name": "Odos Ilia Papakyriakou",
        "city": "Paralimni",
        "po_box": "",
        "municipality": "Ammochostos",
        "area": "",
        "district": ""
      }
    ],
    "result_description": "null",
    "result_code": "ALL"
  }
}

POST melissa_data/verify

This method verifies an address registered in CRM.COM against the information of Melissa Data System. Only one address can be verified in each call.

Resource URL

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

account_id

(mandatory)

String

The Melissa Data Account ID as specified in the Address Registry Settings

street_number

(optional)

String

Input street number information to be verified

 

street_name

(optional)

String

Input street name information to be verified

municipality

(optional)

StringInput municipality information to be verified

city

(optional)

String


Input city information to be verified

postal_code

(optional)

StringInput postal code information to be verified

country

(optional)

StringRestricts the retrieved addresses to the addresses of the specified Country. Always defaults to the Country specified in Admin Settings. If specified, then the Country's 2-characters code must be defined

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

Name

Type

Description

resultStringDefines the address verification result. In case of failed verification, the description of all of the invalid address information will be included in the results 
formatted_addressStringThe Full address
cityStringAddress city
municipalityStringAddress municipality
postal_codeStringAddress post code
countryStringAddress Country
street_nameStringAddress street name
street_numberStringAddress street number
apartmentStringAddress apartment number
po_pox_postal_codeStringAddress PO Box post code


Examples

 Example 1

HTTP Method: GET

 

Request:

Body:

 {
 "token":"{{token}}",
  "account_id":"114452481",
   "street_name":"Odos Pindarou",
   "street_number":"10",
   "municipality":"Lefkosia",
   "city":"Latsia",
   "postal_code":"2020",
   "country":"CY"
}

Response:

 {
  "status": {
    "message": "",
    "description": "",
    "code": "OK"
  },
  "data": {
    "formatted_address": "10 Odos Pindarou;Agios Georgios;2020 Latsia",
    "postal_code": "2020",
    "apartment": null,
    "street_number": null,
    "country": "Cyprus",
    "street_name": "Odos Pindarou",
    "city": "Latsia",
    "po_pox_postal_code": "",
    "municipality": "Lefkosia",
    "result": "AC09,AV24"
  }
}
  • No labels