# Validate and retrieve business information

The service requires at least one of the following input combinations:
**Set A** - `a1`, `city`, `state`, `postal`
**Set B** - `ff`
**Set C** - `phone`
**Set D** - `stock`
**Set E** - `web`

Endpoint: GET /doBusinessCoderUS

## Query parameters:

  - `t` (string)
    Transmission Reference - Serves as a unique identifier for this set of records. This allows you to match a response to a request.

  - `id` (string, required)
    Required. The [License Key](https://docs.melissa.com/melissa/license/license-information.html) issued by Melissa.

  - `cols` (string)
    [Columns](https://docs.melissa.com/cloud-api/business-coder/business-coder-reference-guide.html#columns) - The column names or groups to be output.
Entering the column name will return the column. Specifying a group name will return all columns in the group.
Delimit multiple columns with a `,`.
For example: `ColumnName,ColumnName`.
- [DEFAULT] These columns are returned by default.
  - `AddressLine1`
  - `City`
  - `CompanyName`
  - `CurrentCompanyName`
  - `MelissaEnterpriseKey`
  - `PostalCode`
  - `RecordID`
  - `Records`
  - `State`
  - `Suite`
  - `TotalContacts`
  - `TransmissionReference`
  - `TransmissionResults`
- [NO GROUP] These columns must be requested individually.
  - `Contacts`
  - `EmployeesEstimate`
  - `LocationType`
  - `Phone`
  - `SalesEstimate`
  - `StockTicker`
  - `WebAddress`
- `GrpAddressDetails`
  - `CountryCode`
  - `CountryName`
  - `DeliveryIndicator`
  - `MelissaAddressKey`
  - `MelissaAddressKeyBase`
  - `Plus4`
- `GrpBusinessCodes`
  - `EIN`
  - `NAICSCode1`
  - `NAICSCode2`
  - `NAICSCode3`
  - `SICCode1`
  - `SICCode2`
  - `SICCode3`
- `GrpBusinessDescription`
  - `NAICSDescription1`
  - `NAICSDescription2`
  - `NAICSDescription3`
  - `SICDescription1`
  - `SICDescription2`
  - `SICDescription3`
- `GrpGeoCode`
  - `Latitude`
  - `Longitude`
- `GrpCensus`
  - `CensusBlock`
  - `CensusTract`
  - `CountyFIPS`
  - `CountyName`
  - `PlaceCode`
  - `PlaceName`

  - `opt` (string)
    [Options](https://docs.melissa.com/cloud-api/business-coder/business-coder-reference-guide.html#options) - Pass in options you want to set for the request.
List options in the format `OptionName:Parameter`, with multiple options delimited with a `,`. For example: `OptionName:Parameter,OptionName:Parameter`
- `CentricHint:< company | address | phone >`
 - This option allows you to choose what the service will center the search around.
- `MaxContacts:< 1 | 5 | 10 >`
 - This option changes the upper limit on the number of contacts returned. Default is
`5`
.
- `ReturnDominantBusiness:< yes | no >`
 - This option handles the returning of the dominant business name and demographics for a particular site when the company information is missing or does not match. Default is
`yes`
.
- `SICNAICSConfidence:< strict | loose >`
 - This option handles how SIC Codes are returned, depending on our SIC Code confidence level. Default is
`loose`
.

  - `rec` (string)
    Record ID - Unique identifier for current record.

  - `comp` (string, required)
    Company Name - Business namespace.

  - `phone` (string, required)
    Phone Number - Business phone number.

  - `a1` (string, required)
    Address1 - First address line.

  - `a2` (string)
    Address2 - Second address line (suite).

  - `suite` (string)
    Suite - Suite number.

  - `city` (string, required)
    City - City name.

  - `state` (string, required)
    State - State name.

  - `postal` (string, required)
    Postal - Postal code.

  - `ctry` (string)
    Country - Country name.

  - `mak` (string)
    Melissa Address Key (MAK) - Proprietary unique key identifier.

  - `stock` (string)
    Stock Ticker - Unique stock exchange symbol/abbreviation.

  - `web` (string)
    Web Address - Web address/domain.

  - `mek` (string)
    Melissa Enterprise Key (MEK) - Proprietary unique key identifier.

  - `ff` (string)
    Free Form.

## Header parameters:

  - `Accept` (string, required)
    Format of the response.

  - `Content-Type` (string, required)
    Format of the request.

## Response 200:

  - `200` (unknown)
    A response is the result of a request. This consists of returned results codes and parsed, corrected, and/or appended request elements, depending on the options selected.

## Response 200 fields (application/json):

  - `TransmissionResults` (string, required)
    Returns the generic service level result/error codes. For more information, see [Business Coder Result Codes](https://docs.melissa.com/cloud-api/business-coder/result-codes.html).

  - `TransmissionReference` (string, required)
    A pass-through of the input Transmission Reference.

  - `Version` (string, required)
    The current service version number.

  - `TotalRecords` (string, required)
    Total number of records returned in the records array.

  - `Records` (array, required)
    The returned array of records.

  - `Records.AddressLine1` (string)
    The first address line of the business.

  - `Records.CensusBlock` (string)
    The Census block number from the most recent yearly census.

  - `Records.CensusTract` (string)
    The Census tract number from the most recent yearly census.

  - `Records.City` (string)
    **City, Municipality, Locality**. The most common population center data element.

  - `Records.CompanyName` (string)
    The name of the business.

  - `Records.CountryCode` (string)
    The 2 letter ISO 3166 country code value. For example: `US` for United States or `CA` for Canada.

  - `Records.CountryName` (string)
    The standardized contents of the CountryName element.

  - `Records.CountyFIPS` (string)
    The Census FIPS number from the most recent yearly census.

  - `Records.CountyName` (string)
    The county name that corresponds to the county FIPS code.

  - `Records.CurrentCompanyName` (string)
    The company name in our reference data. You can use this to easily compare your input company name against Melissa records for that address.

  - `Records.DeliveryIndicator` (string)
    **Residential Business Delivery Indicator (RBDI)**. The delivery type status based on the address.

  - `Records.EIN` (string)
    **Employer Identification Number (EIN)**. A unique 9-digit business identification number assigned by the IRS.

  - `Records.EmployeesEstimate` (string)
    The estimated number of employees who work at this business location.

  - `Records.Latitude` (string)
    The parsed geographic coordinate for a particular delivery point.

  - `Records.LocationType` (string)
    A code denoting the business location type. 1 - Headquarters, 2 - Branches, 3 - Subsidiary Headquarters, 4 - Single Location.

  - `Records.Longitude` (string)
    The parsed geographic coordinate for a particular delivery point.

  - `Records.MelissaEnterpriseKey` (string)
    The Unique Key assigned to a business for that location.

  - `Records.MelissaAddressKey` (string)
    This is a globally unique and persistent key for the location, even if parts of the address change. When an address is fully validated this field returns a 10-digit proprietary key for the address.

  - `Records.MelissaAddressKeyBase` (string)
    Every full address has its own Melissa Address Key (MAK). If that address is a suites or apartment, we will also return a Melissa Address Key Base (BaseMAK) that corresponds to the overall building. This provides a link between all the individual MAK addresses that belong to the same building.

  - `Records.NAICSCode1` (string)
    **North American Industry Classification System (NAICS)**. A 2-6 digit code that classifies businesses by production. This is defined by NAICSDescription1 and related to SICCode1.

  - `Records.NAICSCode2` (string)
    This is defined by NAICSDescription2 and related to SICCode2.

  - `Records.NAICSCode3` (string)
    This is defined by NAICSDescription3 and related to SICCode3.

  - `Records.NAICSDescription1` (string)
    **North American Industry Classification System (NAICS)**. A description of NAICSCode1.

  - `Records.NAICSDescription2` (string)
    A description of NAICSCode2.

  - `Records.NAICSDescription3` (string)
    A description of NAICSCode3.

  - `Records.Phone` (string)
    A 10-digit phone number.

  - `Records.PlaceCode` (string)
    The FIPS Place code as defined by the Census.

  - `Records.PlaceName` (string)
    The FIPS Place name as defined by the Census.

  - `Records.Plus4` (string)
    The 4-digit extension for the ZIP code.

  - `Records.PostalCode` (string)
    **ZIP, Postal Code**. The complete postal code for a particular delivery point.

  - `Records.RecordID` (string)
    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.

  - `Records.Results` (string)
    Comma delimited status, error codes, and change codes for the request. For more information, see [Business Coder Result Codes](https://docs.melissa.com/cloud-api/business-coder/result-codes.html).

  - `Records.SICCode1` (string)
    **Standard Industrial Classification (SIC)**. A 2-4 digit code that classifies businesses by production or market. This is defined by SICDescription1 and related to NAICSCode1.

  - `Records.SICCode2` (string)
    This is defined by SICDescription2 and related to NAICSCode2.

  - `Records.SICCode3` (string)
    This is defined by SICDescription3 and related to NAICSCode3.

  - `Records.SICDescription1` (string)
    **Standard Industrial Classification (SIC)**. A description of SICCode1.

  - `Records.SICDescription2` (string)
    A description of SICCode2.

  - `Records.SICDescription3` (string)
    A description of SICCode3.

  - `Records.SalesEstimate` (string)
    The estimate sales volume particular business location in dollars (actual value, not in thousands)

  - `Records.State` (string)
    **State, Province, Administrative Area**. The most common geographic data element.

  - `Records.StockTicker` (string)
    The assigned stock exchange abbreviation/symbol for the business.

  - `Records.Suite` (string)
    **Suite, Sub Premises**. The alphanumeric code identifying an individual location.

  - `Records.TotalContacts` (string)
    Total number of records.

  - `Records.WebAddress` (string)
    The web address/domain for the business.

  - `Records.Contacts` (array)

  - `Records.Contacts.NameFirst` (string)
    First Name of the contact.

  - `Records.Contacts.NameLast` (string)
    Last Name of the contact.

  - `Records.Contacts.Gender` (string)
    Gender of the contact.

  - `Records.Contacts.Title` (string)
    Title of the contact.

  - `Records.Contacts.ContactPhone` (string)
    Phone number of the contact.

  - `Records.Contacts.Email` (string)
    Email of the contact.

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (application/json):

  - `type` (string)
    The type of error that occurred.

  - `title` (string)
    A short summary of the error.

  - `status` (integer)
    The HTTP status code for the error.

  - `errors` (object)

  - `errors.$.<PropertyName>` (array)
    A detailed message about the error.

  - `traceId` (string)
    A unique identifier for the request, useful for debugging.

