Difference between revisions of "LeadGen Business:Response"

From Melissa Data Wiki
Jump to navigation Jump to search
(Created page with "← LeadGen Xpress {| class="mw-collapsible" cellspacing="2" style="background-color:#f9f9f9; border:1px solid #aaaaaa; font-size:9pt; color:#0645ad; pa...")
 
Line 17: Line 17:
|-
|-
|
|
{| class="mw-collapsible" style="width:100%;"
{| class="mw-collapsible mw-collapsed" style="width:100%;"
|- align="left"
|- align="left"
! style="color:black;"|[[LeadGen Xpress:Business:Request Parameters|Request Parameters]]
! style="color:black;"|[[LeadGen Xpress:Business:Request Parameters|Request Parameters]]

Revision as of 00:14, 13 December 2014

← LeadGen Xpress

LeadGen Xpress Business Navigation
Introduction
Business Calls
Request Format
Request Parameters
Standard Components
Actions
Authentication
Geographic Types
Options
XML Response
Examples
List/File
File Types
Columns in File
Business Result Codes



Returned for both get-count and buy-list requests:

XML Element XML Description
<Business> Tag encapsulating the whole XML document.
<Geography> Geo request
<City>

Requests within Geo Selects. Tags returned depend on Geo type.

<County>
<State>
<ZIP>
<Options>
<ContactPersonInfo>
<ContactPersonInfo>
  • one per business
  • all contacts
<NumberOfEmployees>
<IncludeAll> OR <Details> Default output is <IncludeAll>True</IncludeAll>, unless details options are specified in request. For the example in table 2.5.2, <Details>100 – 249;500 – 999;5,000 - 9,999</Details> would be shown with all chosen options separated by semi colon.
<AppendToFile> True or False
<SalesVolumes> Various ranges of annual sales volumes
<IncludeAll> OR <Details> Default output is <IncludeAll>True</IncludeAll>, unless details options are specified in request. For the example in table 2.5.2, <Details>$10,000,000-$19,999,999;$50,000,000-$99,999,999;$500,000,000-$999,999,999</Details> would be shown with all chosen options separated by semi colon.
<AppendToFile> True or False
<SICCodes> 6-digit SIC code
<IncludeAll> OR <Details> Default output is <IncludeAll>True</IncludeAll>, unless details options are specified in request. For the example in table 2.5.2, <Details>CONSTRUCTION-SPECIAL TRADE CONTRACTORS;NONCLASSIFIED ESTABLISHMENTS;CREDIT & DEBT COUNSELING SERVICES</Details> would be shown with all chosen options separated by semi colon.
<AppendToFile> True or False
<AdditionalAppend>
<ContactName> True or False. (See Other Purchase Options for sample request.)
<FaxNumber> True or False. (See table 2.5.4 for sample request.)
<Phone> True or False. (See table 2.5.4 for sample request.)
<NAICS> True or False. (See table 2.5.4 for sample request.)
<KeyExecutive> True or False. (See table 2.5.4 for sample request.)
<NumberOfEmployees> True or False. (See table 2.5.4 for sample request.)
<EstimatedSales> True or False. (See table 2.5.4 for sample request.)
<CountDetails>
<StreetRange> Contains a breakdown of the street range.
<Street> Individual streets.
<StartNumber> For Geo types radius. Shows the starting street number and ending street number in the count.
<EndNumber>
<Geography>

Location of count detail. The location varies by the request type:

  • ZIP type returns Zip plus 4.
  • City type returns city, state.
  • County type returns county, state.
  • State type returns state.
  • Radius type returns street, city, state
<Zip> For radius type only.
<Count>

Location of count detail. The location varies by the request type:

  • ZIP type returns Zip plus 4.
  • City type returns city, state.
  • County type returns county, state.
  • State type returns state.
  • Radius type returns street.
<Addresses> Only returned with Radius when strzip is specified. Contains a breakdown of the addresses returned.
<Address> Individual addresses.
<Count>

Location of count detail. The location varies by the request type:

  • ZIP type returns Zip plus 4.
  • City type returns city, state.
  • County type returns county, state.
  • State type returns state.
<TotalCount> Total number of records returned with the selected options.
<Order> Buy Requests Only. Order details for a Buy request.
<Id> Order Id.
<Usage> One or multi usage specified in buy call. (See table 2.5.4 for sample request.)
<DownloadURL> The URL to download the purchased file.
<PONumber> Returned if po is specified. (See table 2.5.4 for sample request.)
<DeliveredQty> Number of records returned.
<RequestedQty> Returned if &qty is specified. (See table 2.5.4 for sample request.)
<Result> Indicates the status of a request. Returns Declined, Approved, or Err. (See table 5 for details.)
<StatusCode> See table 5 for details.
<Errors> If <StatusCode> returns Err.
<Error> See table 6 for details.
<ErrorCode>
<ErrorDescription>


An example (from the buy list call in section 1):

<Business>
  <Geography>
    <ZIP>92688</ZIP>
  </Geography>
  <Options>
    <ContactPersonInfo>
      <ContactPersonInfo>One per Address</ContactPersonInfo>
    </ContactPersonInfo>
    <NumberOfEmployees>
      <IncludeAll>True</IncludeAll>
      <AppendToFile>False</AppendToFile>
    </NumberOfEmployees >
    <SalesVolumes>
      <Details>$5,000,000-$9,999,999</Details>
      <AppendToFile>False</AppendToFile>
    </SalesVolumes >
    <SICCodes>
      <IncludeAll>True</IncludeAll>
      <AppendToFile>False</AppendToFile>
    </SICCodes>
    <AdditionalAppend></AdditionalAppend>
  </Options>
  <TotalCount>
    <Count>63/Count>
  </TotalCount>
  <Order>
    <Id>123456</Id>
    <Usage>1</Usage>
    <DownloadURL>ftp://w10.melissadata.com/ListOrderFiles/123456.csv</DownloadURL>
    <DeliveredQty>63</DeliveredQty>
  </Order>
  <Result>
    <StatusCode>Approved</StatusCode>
  </Result>
</Business>