URL

http://webapi.leadmaster.com/api/LMWebAPI/AddOpportunity?access_token={access_token}

Description

Create opportunity in leadmaster

HttpMethod

POST

Request Information

Parameters

NameDescriptionAdditional information
opportunitydata
Opportunity will be created on the basis of call back data provided in the OpportunityData.

Define this parameter in the request body.

access_token
Token required for the authentication.

Define this parameter in the request URI.

Request body formats

application/json, text/json

Sample:
{
  "recordIDField": 1,
  "rECDNOField": 2,
  "companyNameField": "sample string 3",
  "oppNameField": "sample string 4",
  "oppDescField": "sample string 5",
  "salesStatusField": "sample string 6",
  "forecastDateField": "sample string 7",
  "closeDateField": "sample string 8",
  "winProbabilityField": 9.1,
  "numOfHourWorkField": 10,
  "numOfHourTravelField": 11,
  "oppSourceField": "sample string 12",
  "oppTypeField": "sample string 13",
  "salesStageField": "sample string 14",
  "closeReasonField": "sample string 15",
  "custom0Field": "sample string 16",
  "custom1Field": "sample string 17",
  "custom2Field": "sample string 18",
  "custom3Field": "sample string 19",
  "custom4Field": "sample string 20",
  "oppNoteField": "sample string 21",
  "oppTotalField": 22.0,
  "totalQuantityField": 23,
  "custom5Field": 24.0,
  "custom6Field": "sample string 25",
  "custom7Field": 26.0,
  "customC8Field": "sample string 27",
  "customC9Field": "sample string 28",
  "customC10Field": "sample string 29",
  "customC11Field": "sample string 30",
  "customC12Field": "sample string 31",
  "customC13Field": "sample string 32",
  "customC14Field": "sample string 33",
  "customC15Field": "sample string 34",
  "customC16Field": "sample string 35",
  "customN1Field": "sample string 36",
  "customN2Field": "sample string 37",
  "customN3Field": "sample string 38",
  "customN4Field": "sample string 39",
  "customN5Field": "sample string 40",
  "customN6Field": "sample string 41",
  "customN7Field": "sample string 42",
  "customN8Field": "sample string 43",
  "customN9Field": "sample string 44",
  "customN10Field": "sample string 45",
  "customD1Field": "sample string 46",
  "customD2Field": "sample string 47",
  "customD3Field": "sample string 48",
  "customD4Field": "sample string 49",
  "customD5Field": "sample string 50",
  "customD6Field": "sample string 51",
  "customD7Field": "sample string 52",
  "customD8Field": "sample string 53",
  "customD9Field": "sample string 54",
  "customD10Field": "sample string 55",
  "lastUpdatedField": "sample string 56"
}

application/xml, text/xml

Sample:
<TypeOpportunityData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication1.LMService">
  <closeDateField>sample string 8</closeDateField>
  <closeReasonField>sample string 15</closeReasonField>
  <companyNameField>sample string 3</companyNameField>
  <custom0Field>sample string 16</custom0Field>
  <custom1Field>sample string 17</custom1Field>
  <custom2Field>sample string 18</custom2Field>
  <custom3Field>sample string 19</custom3Field>
  <custom4Field>sample string 20</custom4Field>
  <custom5Field>24</custom5Field>
  <custom6Field>sample string 25</custom6Field>
  <custom7Field>26</custom7Field>
  <customC10Field>sample string 29</customC10Field>
  <customC11Field>sample string 30</customC11Field>
  <customC12Field>sample string 31</customC12Field>
  <customC13Field>sample string 32</customC13Field>
  <customC14Field>sample string 33</customC14Field>
  <customC15Field>sample string 34</customC15Field>
  <customC16Field>sample string 35</customC16Field>
  <customC8Field>sample string 27</customC8Field>
  <customC9Field>sample string 28</customC9Field>
  <customD10Field>sample string 55</customD10Field>
  <customD1Field>sample string 46</customD1Field>
  <customD2Field>sample string 47</customD2Field>
  <customD3Field>sample string 48</customD3Field>
  <customD4Field>sample string 49</customD4Field>
  <customD5Field>sample string 50</customD5Field>
  <customD6Field>sample string 51</customD6Field>
  <customD7Field>sample string 52</customD7Field>
  <customD8Field>sample string 53</customD8Field>
  <customD9Field>sample string 54</customD9Field>
  <customN10Field>sample string 45</customN10Field>
  <customN1Field>sample string 36</customN1Field>
  <customN2Field>sample string 37</customN2Field>
  <customN3Field>sample string 38</customN3Field>
  <customN4Field>sample string 39</customN4Field>
  <customN5Field>sample string 40</customN5Field>
  <customN6Field>sample string 41</customN6Field>
  <customN7Field>sample string 42</customN7Field>
  <customN8Field>sample string 43</customN8Field>
  <customN9Field>sample string 44</customN9Field>
  <forecastDateField>sample string 7</forecastDateField>
  <lastUpdatedField>sample string 56</lastUpdatedField>
  <numOfHourTravelField>11</numOfHourTravelField>
  <numOfHourWorkField>10</numOfHourWorkField>
  <oppDescField>sample string 5</oppDescField>
  <oppNameField>sample string 4</oppNameField>
  <oppNoteField>sample string 21</oppNoteField>
  <oppSourceField>sample string 12</oppSourceField>
  <oppTotalField>22</oppTotalField>
  <oppTypeField>sample string 13</oppTypeField>
  <rECDNOField>2</rECDNOField>
  <recordIDField>1</recordIDField>
  <salesStageField>sample string 14</salesStageField>
  <salesStatusField>sample string 6</salesStatusField>
  <totalQuantityField>23</totalQuantityField>
  <winProbabilityField>9.1</winProbabilityField>
</TypeOpportunityData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

No documentation available.

Response body formats

application/json, text/json

Sample:
{
  "recordIDField": 1,
  "rECDNOField": 2,
  "companyNameField": "sample string 3",
  "oppNameField": "sample string 4",
  "oppDescField": "sample string 5",
  "salesStatusField": "sample string 6",
  "forecastDateField": "sample string 7",
  "closeDateField": "sample string 8",
  "winProbabilityField": 9.1,
  "numOfHourWorkField": 10,
  "numOfHourTravelField": 11,
  "oppSourceField": "sample string 12",
  "oppTypeField": "sample string 13",
  "salesStageField": "sample string 14",
  "closeReasonField": "sample string 15",
  "custom0Field": "sample string 16",
  "custom1Field": "sample string 17",
  "custom2Field": "sample string 18",
  "custom3Field": "sample string 19",
  "custom4Field": "sample string 20",
  "oppNoteField": "sample string 21",
  "oppTotalField": 22.0,
  "totalQuantityField": 23,
  "custom5Field": 24.0,
  "custom6Field": "sample string 25",
  "custom7Field": 26.0,
  "customC8Field": "sample string 27",
  "customC9Field": "sample string 28",
  "customC10Field": "sample string 29",
  "customC11Field": "sample string 30",
  "customC12Field": "sample string 31",
  "customC13Field": "sample string 32",
  "customC14Field": "sample string 33",
  "customC15Field": "sample string 34",
  "customC16Field": "sample string 35",
  "customN1Field": "sample string 36",
  "customN2Field": "sample string 37",
  "customN3Field": "sample string 38",
  "customN4Field": "sample string 39",
  "customN5Field": "sample string 40",
  "customN6Field": "sample string 41",
  "customN7Field": "sample string 42",
  "customN8Field": "sample string 43",
  "customN9Field": "sample string 44",
  "customN10Field": "sample string 45",
  "customD1Field": "sample string 46",
  "customD2Field": "sample string 47",
  "customD3Field": "sample string 48",
  "customD4Field": "sample string 49",
  "customD5Field": "sample string 50",
  "customD6Field": "sample string 51",
  "customD7Field": "sample string 52",
  "customD8Field": "sample string 53",
  "customD9Field": "sample string 54",
  "customD10Field": "sample string 55",
  "lastUpdatedField": "sample string 56"
}

application/xml, text/xml

Sample:
<TypeOpportunityData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication1.LMService">
  <closeDateField>sample string 8</closeDateField>
  <closeReasonField>sample string 15</closeReasonField>
  <companyNameField>sample string 3</companyNameField>
  <custom0Field>sample string 16</custom0Field>
  <custom1Field>sample string 17</custom1Field>
  <custom2Field>sample string 18</custom2Field>
  <custom3Field>sample string 19</custom3Field>
  <custom4Field>sample string 20</custom4Field>
  <custom5Field>24</custom5Field>
  <custom6Field>sample string 25</custom6Field>
  <custom7Field>26</custom7Field>
  <customC10Field>sample string 29</customC10Field>
  <customC11Field>sample string 30</customC11Field>
  <customC12Field>sample string 31</customC12Field>
  <customC13Field>sample string 32</customC13Field>
  <customC14Field>sample string 33</customC14Field>
  <customC15Field>sample string 34</customC15Field>
  <customC16Field>sample string 35</customC16Field>
  <customC8Field>sample string 27</customC8Field>
  <customC9Field>sample string 28</customC9Field>
  <customD10Field>sample string 55</customD10Field>
  <customD1Field>sample string 46</customD1Field>
  <customD2Field>sample string 47</customD2Field>
  <customD3Field>sample string 48</customD3Field>
  <customD4Field>sample string 49</customD4Field>
  <customD5Field>sample string 50</customD5Field>
  <customD6Field>sample string 51</customD6Field>
  <customD7Field>sample string 52</customD7Field>
  <customD8Field>sample string 53</customD8Field>
  <customD9Field>sample string 54</customD9Field>
  <customN10Field>sample string 45</customN10Field>
  <customN1Field>sample string 36</customN1Field>
  <customN2Field>sample string 37</customN2Field>
  <customN3Field>sample string 38</customN3Field>
  <customN4Field>sample string 39</customN4Field>
  <customN5Field>sample string 40</customN5Field>
  <customN6Field>sample string 41</customN6Field>
  <customN7Field>sample string 42</customN7Field>
  <customN8Field>sample string 43</customN8Field>
  <customN9Field>sample string 44</customN9Field>
  <forecastDateField>sample string 7</forecastDateField>
  <lastUpdatedField>sample string 56</lastUpdatedField>
  <numOfHourTravelField>11</numOfHourTravelField>
  <numOfHourWorkField>10</numOfHourWorkField>
  <oppDescField>sample string 5</oppDescField>
  <oppNameField>sample string 4</oppNameField>
  <oppNoteField>sample string 21</oppNoteField>
  <oppSourceField>sample string 12</oppSourceField>
  <oppTotalField>22</oppTotalField>
  <oppTypeField>sample string 13</oppTypeField>
  <rECDNOField>2</rECDNOField>
  <recordIDField>1</recordIDField>
  <salesStageField>sample string 14</salesStageField>
  <salesStatusField>sample string 6</salesStatusField>
  <totalQuantityField>23</totalQuantityField>
  <winProbabilityField>9.1</winProbabilityField>
</TypeOpportunityData>