POST api/Product/UpdateProductDetails

Request Information

URI Parameters

None.

Body Parameters

ProductViewModel
NameDescriptionTypeAdditional information
productmasterid

integer

None.

productcode

string

None.

companyid

integer

None.

productname

string

None.

productunitid

integer

None.

producthsncode

string

None.

productcategory

string

None.

productdescription

string

None.

istrackable

boolean

None.

productopeningstock

integer

None.

manufacturername

string

None.

productdetailsid

integer

None.

productrate

decimal number

None.

productpurchaseprice

decimal number

None.

productrateperunit

decimal number

None.

productgstpercentid

integer

None.

producttypeid

integer

None.

producttypecode

string

None.

producttypename

string

None.

productunitname

string

None.

productstock

integer

None.

vendorfullname

string

None.

vendorcompanyname

string

None.

producttaxname

string

None.

producttaxamount

decimal number

None.

financialyearid

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "productmasterid": 1,
  "productcode": "sample string 2",
  "companyid": 3,
  "productname": "sample string 4",
  "productunitid": 5,
  "producthsncode": "sample string 6",
  "productcategory": "sample string 7",
  "productdescription": "sample string 8",
  "istrackable": true,
  "productopeningstock": 10,
  "manufacturername": "sample string 11",
  "productdetailsid": 12,
  "productrate": 13.1,
  "productpurchaseprice": 14.1,
  "productrateperunit": 15.1,
  "productgstpercentid": 16,
  "producttypeid": 17,
  "producttypecode": "sample string 18",
  "producttypename": "sample string 19",
  "productunitname": "sample string 20",
  "productstock": 21,
  "vendorfullname": "sample string 22",
  "vendorcompanyname": "sample string 23",
  "producttaxname": "sample string 24",
  "producttaxamount": 25.1,
  "financialyearid": 26
}

application/xml, text/xml

Sample:
<ProductViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Kantaserp.Models">
  <companyid>3</companyid>
  <financialyearid>26</financialyearid>
  <istrackable>true</istrackable>
  <manufacturername>sample string 11</manufacturername>
  <productcategory>sample string 7</productcategory>
  <productcode>sample string 2</productcode>
  <productdescription>sample string 8</productdescription>
  <productdetailsid>12</productdetailsid>
  <productgstpercentid>16</productgstpercentid>
  <producthsncode>sample string 6</producthsncode>
  <productmasterid>1</productmasterid>
  <productname>sample string 4</productname>
  <productopeningstock>10</productopeningstock>
  <productpurchaseprice>14.1</productpurchaseprice>
  <productrate>13.1</productrate>
  <productrateperunit>15.1</productrateperunit>
  <productstock>21</productstock>
  <producttaxamount>25.1</producttaxamount>
  <producttaxname>sample string 24</producttaxname>
  <producttypecode>sample string 18</producttypecode>
  <producttypeid>17</producttypeid>
  <producttypename>sample string 19</producttypename>
  <productunitid>5</productunitid>
  <productunitname>sample string 20</productunitname>
  <vendorcompanyname>sample string 23</vendorcompanyname>
  <vendorfullname>sample string 22</vendorfullname>
</ProductViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResultViewModel
NameDescriptionTypeAdditional information
status

boolean

None.

message

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "message": "sample string 2",
  "data": {}
}

application/xml, text/xml

Sample:
<HttpResultViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Kantaserp.Models">
  <data />
  <message>sample string 2</message>
  <status>true</status>
</HttpResultViewModel>