InsertLeads


Click here for a complete list of operations.

InsertLead

Use this Web Service to upload your real time leads to DoublePositive. For detailed instructions, please contact us at 410-332-0464

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
SupplierID:
SupplierPassword:
FirstName:
LastName:
EmailAddress:
CoAppFirstName:
CoAppLastName:
Address:
City:
State:
PostalCode:
HomePhone:
WorkPhone:
WorkPhoneExt:
CurrentEmployer:
YearsThere:
Income:
BestCallTime:
OriginalLeadDate:
ExternalLeadID:
IPAddress:
ExtraFields:

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /Suppliers/WebServices/InsertLeads.asmx HTTP/1.1
Host: apps.doublepositive.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.doublepositive.com/InsertLead"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <InsertLead xmlns="http://www.doublepositive.com/">
      <SupplierID>string</SupplierID>
      <SupplierPassword>string</SupplierPassword>
      <FirstName>string</FirstName>
      <LastName>string</LastName>
      <EmailAddress>string</EmailAddress>
      <CoAppFirstName>string</CoAppFirstName>
      <CoAppLastName>string</CoAppLastName>
      <Address>string</Address>
      <City>string</City>
      <State>string</State>
      <PostalCode>string</PostalCode>
      <HomePhone>string</HomePhone>
      <WorkPhone>string</WorkPhone>
      <WorkPhoneExt>string</WorkPhoneExt>
      <CurrentEmployer>string</CurrentEmployer>
      <YearsThere>string</YearsThere>
      <Income>string</Income>
      <BestCallTime>string</BestCallTime>
      <OriginalLeadDate>string</OriginalLeadDate>
      <ExternalLeadID>string</ExternalLeadID>
      <IPAddress>string</IPAddress>
      <ExtraFields>string</ExtraFields>
    </InsertLead>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <InsertLeadResponse xmlns="http://www.doublepositive.com/">
      <InsertLeadResult>
        <ErrorName>string</ErrorName>
        <ErrorDescription>string</ErrorDescription>
        <LeadID>string</LeadID>
        <ClientAvailable>boolean</ClientAvailable>
        <ClientName>string</ClientName>
        <PrimaryNumber>string</PrimaryNumber>
        <BackupNumber>string</BackupNumber>
        <Clients>
          <ClientInfomation>
            <CompanyName>string</CompanyName>
            <OrderID>int</OrderID>
          </ClientInfomation>
          <ClientInfomation>
            <CompanyName>string</CompanyName>
            <OrderID>int</OrderID>
          </ClientInfomation>
        </Clients>
      </InsertLeadResult>
    </InsertLeadResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /Suppliers/WebServices/InsertLeads.asmx HTTP/1.1
Host: apps.doublepositive.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <InsertLead xmlns="http://www.doublepositive.com/">
      <SupplierID>string</SupplierID>
      <SupplierPassword>string</SupplierPassword>
      <FirstName>string</FirstName>
      <LastName>string</LastName>
      <EmailAddress>string</EmailAddress>
      <CoAppFirstName>string</CoAppFirstName>
      <CoAppLastName>string</CoAppLastName>
      <Address>string</Address>
      <City>string</City>
      <State>string</State>
      <PostalCode>string</PostalCode>
      <HomePhone>string</HomePhone>
      <WorkPhone>string</WorkPhone>
      <WorkPhoneExt>string</WorkPhoneExt>
      <CurrentEmployer>string</CurrentEmployer>
      <YearsThere>string</YearsThere>
      <Income>string</Income>
      <BestCallTime>string</BestCallTime>
      <OriginalLeadDate>string</OriginalLeadDate>
      <ExternalLeadID>string</ExternalLeadID>
      <IPAddress>string</IPAddress>
      <ExtraFields>string</ExtraFields>
    </InsertLead>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <InsertLeadResponse xmlns="http://www.doublepositive.com/">
      <InsertLeadResult>
        <ErrorName>string</ErrorName>
        <ErrorDescription>string</ErrorDescription>
        <LeadID>string</LeadID>
        <ClientAvailable>boolean</ClientAvailable>
        <ClientName>string</ClientName>
        <PrimaryNumber>string</PrimaryNumber>
        <BackupNumber>string</BackupNumber>
        <Clients>
          <ClientInfomation>
            <CompanyName>string</CompanyName>
            <OrderID>int</OrderID>
          </ClientInfomation>
          <ClientInfomation>
            <CompanyName>string</CompanyName>
            <OrderID>int</OrderID>
          </ClientInfomation>
        </Clients>
      </InsertLeadResult>
    </InsertLeadResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /Suppliers/WebServices/InsertLeads.asmx/InsertLead?SupplierID=string&SupplierPassword=string&FirstName=string&LastName=string&EmailAddress=string&CoAppFirstName=string&CoAppLastName=string&Address=string&City=string&State=string&PostalCode=string&HomePhone=string&WorkPhone=string&WorkPhoneExt=string&CurrentEmployer=string&YearsThere=string&Income=string&BestCallTime=string&OriginalLeadDate=string&ExternalLeadID=string&IPAddress=string&ExtraFields=string HTTP/1.1
Host: apps.doublepositive.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<returnMessage xmlns="http://www.doublepositive.com/">
  <ErrorName>string</ErrorName>
  <ErrorDescription>string</ErrorDescription>
  <LeadID>string</LeadID>
  <ClientAvailable>boolean</ClientAvailable>
  <ClientName>string</ClientName>
  <PrimaryNumber>string</PrimaryNumber>
  <BackupNumber>string</BackupNumber>
  <Clients>
    <ClientInfomation>
      <CompanyName>string</CompanyName>
      <OrderID>int</OrderID>
    </ClientInfomation>
    <ClientInfomation>
      <CompanyName>string</CompanyName>
      <OrderID>int</OrderID>
    </ClientInfomation>
  </Clients>
</returnMessage>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /Suppliers/WebServices/InsertLeads.asmx/InsertLead HTTP/1.1
Host: apps.doublepositive.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

SupplierID=string&SupplierPassword=string&FirstName=string&LastName=string&EmailAddress=string&CoAppFirstName=string&CoAppLastName=string&Address=string&City=string&State=string&PostalCode=string&HomePhone=string&WorkPhone=string&WorkPhoneExt=string&CurrentEmployer=string&YearsThere=string&Income=string&BestCallTime=string&OriginalLeadDate=string&ExternalLeadID=string&IPAddress=string&ExtraFields=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<returnMessage xmlns="http://www.doublepositive.com/">
  <ErrorName>string</ErrorName>
  <ErrorDescription>string</ErrorDescription>
  <LeadID>string</LeadID>
  <ClientAvailable>boolean</ClientAvailable>
  <ClientName>string</ClientName>
  <PrimaryNumber>string</PrimaryNumber>
  <BackupNumber>string</BackupNumber>
  <Clients>
    <ClientInfomation>
      <CompanyName>string</CompanyName>
      <OrderID>int</OrderID>
    </ClientInfomation>
    <ClientInfomation>
      <CompanyName>string</CompanyName>
      <OrderID>int</OrderID>
    </ClientInfomation>
  </Clients>
</returnMessage>