Business Coder:Request: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
{| class="alternate01 sortable" | {| class="alternate01 sortable" | ||
!Field Name !! Level !! REST | !Field Name !! Level !! REST !! JSON | ||
|- | |- | ||
|Transmission Reference||rowspan="4" valign="center"|Request||t | |Transmission Reference||rowspan="4" valign="center"|Request||t||"t" | ||
|- | |- | ||
|License||lic | |License||lic||"lic" | ||
|- | |- | ||
|Column||cols | |Column||cols||"cols" | ||
|- | |- | ||
|Options||opt | |Options||opt||"opt" | ||
|- | |- | ||
|Record ID||rowspan="12"|Request Record||rec | |Record ID||rowspan="12"|Request Record||rec||"rec" | ||
|- | |- | ||
|Company Name||comp | |Company Name||comp||"comp" | ||
|- | |- | ||
|Phone Number||phone | |Phone Number||phone||"phone" | ||
|- | |- | ||
|Address1||a1 | |Address1||a1||"a1" | ||
|- | |- | ||
|Address2||a2 | |Address2||a2||"a2" | ||
|- | |- | ||
|City||city | |City||city||"city" | ||
|- | |- | ||
|State||state | |State||state||"state" | ||
|- | |- | ||
|Postal||postal | |Postal||postal||"postal" | ||
|- | |- | ||
|Country||ctry | |Country||ctry||"ctry" | ||
|- | |- | ||
|Melissa Address Key (MAK)||mkey | |Melissa Address Key (MAK)||mkey||"mkey" | ||
|- | |- | ||
|Stock Ticker||stock | |Stock Ticker||stock||"stock" | ||
|- | |- | ||
|Web Address||web | |Web Address||web||"web" | ||
|} | |} | ||
Line 75: | Line 75: | ||
|- | |- | ||
|REST||?t = {string} | |REST||?t = {string} | ||
|- | |||
|JSON||"t":"{string}" | |||
|} | |} | ||
Line 89: | Line 91: | ||
|- | |- | ||
|REST||&lic = {string} | |REST||&lic = {string} | ||
|- | |||
|JSON||"lic":"{string}" | |||
|} | |} | ||
Line 101: | Line 105: | ||
|- | |- | ||
|REST||&cols = {string} | |REST||&cols = {string} | ||
|- | |||
|JSON||"cols":"{string}" | |||
|} | |} | ||
Line 113: | Line 119: | ||
|- | |- | ||
|REST||&opt = {string} | |REST||&opt = {string} | ||
|- | |||
|JSON||"opt":"{string}" | |||
|} | |} | ||
Line 123: | Line 131: | ||
|- | |- | ||
|REST||The REST interface only allows a single record per request. | |REST||The REST interface only allows a single record per request. | ||
|- | |||
|JSON||Each record will be contained within [{}] under the Records element. | |||
|} | |} | ||
Line 135: | Line 145: | ||
|- | |- | ||
|REST||&rec = {string} | |REST||&rec = {string} | ||
|- | |||
|JSON||"rec":"{string}" | |||
|} | |} | ||
Line 147: | Line 159: | ||
|- | |- | ||
|REST||&comp = {string} | |REST||&comp = {string} | ||
|- | |||
|JSON||"comp":"{string}" | |||
|} | |} | ||
Line 162: | Line 176: | ||
|- | |- | ||
|REST||&a1 = {string} | |REST||&a1 = {string} | ||
|- | |||
|JSON||"a1":"{string}" | |||
|} | |} | ||
Line 174: | Line 190: | ||
|- | |- | ||
|REST||&a2 = {string} | |REST||&a2 = {string} | ||
|- | |||
|JSON||"a2":"{string}" | |||
|} | |} | ||
Line 186: | Line 204: | ||
|- | |- | ||
|REST||&city = {string} | |REST||&city = {string} | ||
|- | |||
|JSON||"city":"{string}" | |||
|} | |} | ||
Line 198: | Line 218: | ||
|- | |- | ||
|REST||&state = {string} | |REST||&state = {string} | ||
|- | |||
|JSON||"state":"{string}" | |||
|} | |} | ||
Line 210: | Line 232: | ||
|- | |- | ||
|REST||&postal = {string} | |REST||&postal = {string} | ||
|- | |||
|JSON||"postal":"{string}" | |||
|} | |} | ||
Line 222: | Line 246: | ||
|- | |- | ||
|REST||&ctry = {string} | |REST||&ctry = {string} | ||
|- | |||
|JSON||"ctry":"{string}" | |||
|} | |} | ||
Line 234: | Line 260: | ||
|- | |- | ||
|REST||&mkey = {string} | |REST||&mkey = {string} | ||
|- | |||
|JSON||"mkey":"{string}" | |||
|} | |} | ||
Line 246: | Line 274: | ||
|- | |- | ||
|REST||&stock = {string} | |REST||&stock = {string} | ||
|- | |||
|JSON||"stock":"{string}" | |||
|} | |} | ||
Line 258: | Line 288: | ||
|- | |- | ||
|REST||&web = {string} | |REST||&web = {string} | ||
|- | |||
|JSON||"web":"{string}" | |||
|} | |} | ||
Revision as of 22:31, 22 February 2016
Business Coder Navigation | ||||
---|---|---|---|---|
| ||||
| ||||
| ||||
| ||||
Sample Code |
A request consists of a protocol to make a call to the service, detailing desired elements. Your Customer ID is required.
Business Coder supports the REST protocol to access the service.
Field Names
This is a list of the request field names and their protocol naming conventions.
Field Name | Level | REST | JSON |
---|---|---|---|
Transmission Reference | Request | t | "t" |
License | lic | "lic" | |
Column | cols | "cols" | |
Options | opt | "opt" | |
Record ID | Request Record | rec | "rec" |
Company Name | comp | "comp" | |
Phone Number | phone | "phone" | |
Address1 | a1 | "a1" | |
Address2 | a2 | "a2" | |
City | city | "city" | |
State | state | "state" | |
Postal | postal | "postal" | |
Country | ctry | "ctry" | |
Melissa Address Key (MAK) | mkey | "mkey" | |
Stock Ticker | stock | "stock" | |
Web Address | web | "web" |
Minimum Inputs
The following are the possible minimum input requirements.
- Address and Company
- MAK and Company
- Address Only
- MAK Only
- Phone Number
- Stock Ticker
- Web Address
Request Elements
The following elements set the basic options for each request. These apply to the entire request, not the individual records.
Transmission Reference
- Optional.
- This is a string value that serves as a unique identifier for this set of records. It is returned as sent.
Protocol Syntax REST ?t = {string} JSON "t":"{string}"
License
- Required.
- This is a string value containing the license string issued to the customer by Melissa Data for the Business Coder.
- If this element is absent, the Web Service will return an error. To receive a license, please contact your Melissa Data sales representative at 1-800-MELISSA.
Protocol Syntax REST &lic = {string} JSON "lic":"{string}"
Column
- Optional.
- This string value specifies which column(s) to be output as a comma delimited string.
Protocol Syntax REST &cols = {string} JSON "cols":"{string}"
Options
- Optional.
- This is a string value specifies options, if any.
Protocol Syntax REST &opt = {string} JSON "opt":"{string}"
Request Record Elements
REST will only contain the Records element.
Protocol | Definition |
---|---|
REST | The REST interface only allows a single record per request. |
JSON | Each record will be contained within [{}] under the Records element. |
Record ID
- Optional.
- This is a string value containing a unique identifier for the current record. Use this to match the record submitted with the record returned. It will return what is inputted.
Protocol Syntax REST &rec = {string} JSON "rec":"{string}"
Company Name
- Optional.
- The name of the business.
Protocol Syntax REST &comp = {string} JSON "comp":"{string}"
|Phone Number|| ||phone
Address1
- Optional.
- The first address line of the business.
Protocol Syntax REST &a1 = {string} JSON "a1":"{string}"
Address2
- Optional.
- The second address line (suite) of the business.
Protocol Syntax REST &a2 = {string} JSON "a2":"{string}"
City
- Optional.
- The city (locality).
Protocol Syntax REST &city = {string} JSON "city":"{string}"
State
- Optional.
- The state (Administrative Area).
Protocol Syntax REST &state = {string} JSON "state":"{string}"
Postal
- Optional.
- The postal code.
Protocol Syntax REST &postal = {string} JSON "postal":"{string}"
Country
- Optional.
- The country.
Protocol Syntax REST &ctry = {string} JSON "ctry":"{string}"
Melissa Address Key (MAK)
- Optional.
- A propietary unique key identifier for an address. This is derived from Address Checking.
Protocol Syntax REST &mkey = {string} JSON "mkey":"{string}"
Stock Ticker
- Optional.
- A unique abbreviation/symbol assigned by the stock exchange for listed companies.
Protocol Syntax REST &stock = {string} JSON "stock":"{string}"
Web Address
- Optional.
- The web address/domain for a company.
Protocol Syntax REST &web = {string} JSON "web":"{string}"