URL

https://devwebapi.leadmaster.com/api/Automation/AddOppProduct

Description

Add the opportunity product in leadmaster.

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:
{
  "access_token": "sample string 1",
  "ProductName": "sample string 2",
  "ProductDesc": "sample string 3",
  "IsHeader": 4,
  "ProductCode": "sample string 5",
  "UnitPrice": 6.1,
  "QBItemId": "sample string 7",
  "IsTaxable": true,
  "IncomeAccountRef": "sample string 9",
  "ExpenseAccountRef": "sample string 10",
  "AssetAccountRef": "sample string 11",
  "TrackQuantityOnHand": true,
  "QBProductId": 13
}

application/xml, text/xml

Sample:
<AddOppProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessObjects.ViewModel">
  <AssetAccountRef>sample string 11</AssetAccountRef>
  <ExpenseAccountRef>sample string 10</ExpenseAccountRef>
  <IncomeAccountRef>sample string 9</IncomeAccountRef>
  <IsHeader>4</IsHeader>
  <IsTaxable>true</IsTaxable>
  <ProductCode>sample string 5</ProductCode>
  <ProductDesc>sample string 3</ProductDesc>
  <ProductName>sample string 2</ProductName>
  <QBItemId>sample string 7</QBItemId>
  <QBProductId>13</QBProductId>
  <TrackQuantityOnHand>true</TrackQuantityOnHand>
  <UnitPrice>6.1</UnitPrice>
  <access_token>sample string 1</access_token>
</AddOppProduct>

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": "sample string 3"
}

application/xml, text/xml

Sample:
<APIResponseBaseOfstring 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>sample string 3</Result>
  <StatusCode>Continue</StatusCode>
</APIResponseBaseOfstring>