URL

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

Description

Updates 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:
{
  "ProductId": 1,
  "access_token": "sample string 2",
  "ProductName": "sample string 3",
  "ProductDesc": "sample string 4",
  "IsHeader": 5,
  "ProductCode": "sample string 6",
  "UnitPrice": 7.1,
  "QBItemId": "sample string 8",
  "IsActive": true,
  "IsTaxable": true,
  "IncomeAccountRef": "sample string 11",
  "ExpenseAccountRef": "sample string 12",
  "AssetAccountRef": "sample string 13",
  "TrackQuantityOnHand": true,
  "QBProductId": 15
}

application/xml, text/xml

Sample:
<UpdateOppProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessObjects.ViewModel">
  <AssetAccountRef>sample string 13</AssetAccountRef>
  <ExpenseAccountRef>sample string 12</ExpenseAccountRef>
  <IncomeAccountRef>sample string 11</IncomeAccountRef>
  <IsActive>true</IsActive>
  <IsHeader>5</IsHeader>
  <IsTaxable>true</IsTaxable>
  <ProductCode>sample string 6</ProductCode>
  <ProductDesc>sample string 4</ProductDesc>
  <ProductId>1</ProductId>
  <ProductName>sample string 3</ProductName>
  <QBItemId>sample string 8</QBItemId>
  <QBProductId>15</QBProductId>
  <TrackQuantityOnHand>true</TrackQuantityOnHand>
  <UnitPrice>7.1</UnitPrice>
  <access_token>sample string 2</access_token>
</UpdateOppProduct>

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>