URL

http://webapi.leadmaster.com/api/Automation/GetLastCreatedLead

Description

Gets the last created lead.

HttpMethod

POST

Request Information

Parameters

NameDescriptionAdditional information
request
The request.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Minutes": 1,
  "access_token": "sample string 2"
}

application/xml, text/xml

Sample:
<OppReqParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessObjects.ViewModel">
  <Minutes>1</Minutes>
  <access_token>sample string 2</access_token>
</OppReqParam>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "StatusCode": 100,
  "IsSuccess": true,
  "Message": "sample string 2",
  "Result": [
    {
      "recordIDField": 1,
      "OppId": 2,
      "oppNameField": "sample string 3",
      "oppDescField": "sample string 4",
      "salesStatusField": "sample string 5",
      "oppTypeField": "sample string 6",
      "oppNoteField": "sample string 7",
      "oppTotalField": 8.0,
      "totalQuantityField": 9,
      "CompanyName": "sample string 10",
      "FirstName": "sample string 11",
      "LastName": "sample string 12",
      "ListOpportunitiesProducts": [
        {
          "ProductName": "sample string 1",
          "productDescField": "sample string 2",
          "productCodeField": "sample string 3",
          "productNumberField": "sample string 4",
          "unitPriceField": 5.1,
          "quantityField": 6,
          "productTotalField": 7.1
        },
        {
          "ProductName": "sample string 1",
          "productDescField": "sample string 2",
          "productCodeField": "sample string 3",
          "productNumberField": "sample string 4",
          "unitPriceField": 5.1,
          "quantityField": 6,
          "productTotalField": 7.1
        },
        {
          "ProductName": "sample string 1",
          "productDescField": "sample string 2",
          "productCodeField": "sample string 3",
          "productNumberField": "sample string 4",
          "unitPriceField": 5.1,
          "quantityField": 6,
          "productTotalField": 7.1
        }
      ]
    },
    {
      "recordIDField": 1,
      "OppId": 2,
      "oppNameField": "sample string 3",
      "oppDescField": "sample string 4",
      "salesStatusField": "sample string 5",
      "oppTypeField": "sample string 6",
      "oppNoteField": "sample string 7",
      "oppTotalField": 8.0,
      "totalQuantityField": 9,
      "CompanyName": "sample string 10",
      "FirstName": "sample string 11",
      "LastName": "sample string 12",
      "ListOpportunitiesProducts": [
        {
          "ProductName": "sample string 1",
          "productDescField": "sample string 2",
          "productCodeField": "sample string 3",
          "productNumberField": "sample string 4",
          "unitPriceField": 5.1,
          "quantityField": 6,
          "productTotalField": 7.1
        },
        {
          "ProductName": "sample string 1",
          "productDescField": "sample string 2",
          "productCodeField": "sample string 3",
          "productNumberField": "sample string 4",
          "unitPriceField": 5.1,
          "quantityField": 6,
          "productTotalField": 7.1
        },
        {
          "ProductName": "sample string 1",
          "productDescField": "sample string 2",
          "productCodeField": "sample string 3",
          "productNumberField": "sample string 4",
          "unitPriceField": 5.1,
          "quantityField": 6,
          "productTotalField": 7.1
        }
      ]
    },
    {
      "recordIDField": 1,
      "OppId": 2,
      "oppNameField": "sample string 3",
      "oppDescField": "sample string 4",
      "salesStatusField": "sample string 5",
      "oppTypeField": "sample string 6",
      "oppNoteField": "sample string 7",
      "oppTotalField": 8.0,
      "totalQuantityField": 9,
      "CompanyName": "sample string 10",
      "FirstName": "sample string 11",
      "LastName": "sample string 12",
      "ListOpportunitiesProducts": [
        {
          "ProductName": "sample string 1",
          "productDescField": "sample string 2",
          "productCodeField": "sample string 3",
          "productNumberField": "sample string 4",
          "unitPriceField": 5.1,
          "quantityField": 6,
          "productTotalField": 7.1
        },
        {
          "ProductName": "sample string 1",
          "productDescField": "sample string 2",
          "productCodeField": "sample string 3",
          "productNumberField": "sample string 4",
          "unitPriceField": 5.1,
          "quantityField": 6,
          "productTotalField": 7.1
        },
        {
          "ProductName": "sample string 1",
          "productDescField": "sample string 2",
          "productCodeField": "sample string 3",
          "productNumberField": "sample string 4",
          "unitPriceField": 5.1,
          "quantityField": 6,
          "productTotalField": 7.1
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<APIResponseBaseOfArrayOfNewOpportunitiesObject6ZPUqztj xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessObjects.ViewModel">
  <IsSuccess>true</IsSuccess>
  <Message>sample string 2</Message>
  <Result>
    <NewOpportunitiesObject>
      <CompanyName>sample string 10</CompanyName>
      <FirstName>sample string 11</FirstName>
      <LastName>sample string 12</LastName>
      <ListOpportunitiesProducts>
        <NewOpportunitiesProducts>
          <ProductName>sample string 1</ProductName>
          <productCodeField>sample string 3</productCodeField>
          <productDescField>sample string 2</productDescField>
          <productNumberField>sample string 4</productNumberField>
          <productTotalField>7.1</productTotalField>
          <quantityField>6</quantityField>
          <unitPriceField>5.1</unitPriceField>
        </NewOpportunitiesProducts>
        <NewOpportunitiesProducts>
          <ProductName>sample string 1</ProductName>
          <productCodeField>sample string 3</productCodeField>
          <productDescField>sample string 2</productDescField>
          <productNumberField>sample string 4</productNumberField>
          <productTotalField>7.1</productTotalField>
          <quantityField>6</quantityField>
          <unitPriceField>5.1</unitPriceField>
        </NewOpportunitiesProducts>
        <NewOpportunitiesProducts>
          <ProductName>sample string 1</ProductName>
          <productCodeField>sample string 3</productCodeField>
          <productDescField>sample string 2</productDescField>
          <productNumberField>sample string 4</productNumberField>
          <productTotalField>7.1</productTotalField>
          <quantityField>6</quantityField>
          <unitPriceField>5.1</unitPriceField>
        </NewOpportunitiesProducts>
      </ListOpportunitiesProducts>
      <OppId>2</OppId>
      <oppDescField>sample string 4</oppDescField>
      <oppNameField>sample string 3</oppNameField>
      <oppNoteField>sample string 7</oppNoteField>
      <oppTotalField>8</oppTotalField>
      <oppTypeField>sample string 6</oppTypeField>
      <recordIDField>1</recordIDField>
      <salesStatusField>sample string 5</salesStatusField>
      <totalQuantityField>9</totalQuantityField>
    </NewOpportunitiesObject>
    <NewOpportunitiesObject>
      <CompanyName>sample string 10</CompanyName>
      <FirstName>sample string 11</FirstName>
      <LastName>sample string 12</LastName>
      <ListOpportunitiesProducts>
        <NewOpportunitiesProducts>
          <ProductName>sample string 1</ProductName>
          <productCodeField>sample string 3</productCodeField>
          <productDescField>sample string 2</productDescField>
          <productNumberField>sample string 4</productNumberField>
          <productTotalField>7.1</productTotalField>
          <quantityField>6</quantityField>
          <unitPriceField>5.1</unitPriceField>
        </NewOpportunitiesProducts>
        <NewOpportunitiesProducts>
          <ProductName>sample string 1</ProductName>
          <productCodeField>sample string 3</productCodeField>
          <productDescField>sample string 2</productDescField>
          <productNumberField>sample string 4</productNumberField>
          <productTotalField>7.1</productTotalField>
          <quantityField>6</quantityField>
          <unitPriceField>5.1</unitPriceField>
        </NewOpportunitiesProducts>
        <NewOpportunitiesProducts>
          <ProductName>sample string 1</ProductName>
          <productCodeField>sample string 3</productCodeField>
          <productDescField>sample string 2</productDescField>
          <productNumberField>sample string 4</productNumberField>
          <productTotalField>7.1</productTotalField>
          <quantityField>6</quantityField>
          <unitPriceField>5.1</unitPriceField>
        </NewOpportunitiesProducts>
      </ListOpportunitiesProducts>
      <OppId>2</OppId>
      <oppDescField>sample string 4</oppDescField>
      <oppNameField>sample string 3</oppNameField>
      <oppNoteField>sample string 7</oppNoteField>
      <oppTotalField>8</oppTotalField>
      <oppTypeField>sample string 6</oppTypeField>
      <recordIDField>1</recordIDField>
      <salesStatusField>sample string 5</salesStatusField>
      <totalQuantityField>9</totalQuantityField>
    </NewOpportunitiesObject>
    <NewOpportunitiesObject>
      <CompanyName>sample string 10</CompanyName>
      <FirstName>sample string 11</FirstName>
      <LastName>sample string 12</LastName>
      <ListOpportunitiesProducts>
        <NewOpportunitiesProducts>
          <ProductName>sample string 1</ProductName>
          <productCodeField>sample string 3</productCodeField>
          <productDescField>sample string 2</productDescField>
          <productNumberField>sample string 4</productNumberField>
          <productTotalField>7.1</productTotalField>
          <quantityField>6</quantityField>
          <unitPriceField>5.1</unitPriceField>
        </NewOpportunitiesProducts>
        <NewOpportunitiesProducts>
          <ProductName>sample string 1</ProductName>
          <productCodeField>sample string 3</productCodeField>
          <productDescField>sample string 2</productDescField>
          <productNumberField>sample string 4</productNumberField>
          <productTotalField>7.1</productTotalField>
          <quantityField>6</quantityField>
          <unitPriceField>5.1</unitPriceField>
        </NewOpportunitiesProducts>
        <NewOpportunitiesProducts>
          <ProductName>sample string 1</ProductName>
          <productCodeField>sample string 3</productCodeField>
          <productDescField>sample string 2</productDescField>
          <productNumberField>sample string 4</productNumberField>
          <productTotalField>7.1</productTotalField>
          <quantityField>6</quantityField>
          <unitPriceField>5.1</unitPriceField>
        </NewOpportunitiesProducts>
      </ListOpportunitiesProducts>
      <OppId>2</OppId>
      <oppDescField>sample string 4</oppDescField>
      <oppNameField>sample string 3</oppNameField>
      <oppNoteField>sample string 7</oppNoteField>
      <oppTotalField>8</oppTotalField>
      <oppTypeField>sample string 6</oppTypeField>
      <recordIDField>1</recordIDField>
      <salesStatusField>sample string 5</salesStatusField>
      <totalQuantityField>9</totalQuantityField>
    </NewOpportunitiesObject>
  </Result>
  <StatusCode>Continue</StatusCode>
</APIResponseBaseOfArrayOfNewOpportunitiesObject6ZPUqztj>