POST api/v1/ProductVariantSave
Request Information
URI Parameters
None.
Body Parameters
ProdVariantSaveInput| Name | Description | Type | Additional information |
|---|---|---|---|
| Mode | string |
None. |
|
| ProductID | integer |
None. |
|
| VariantID | integer |
None. |
|
| Barcode | string |
None. |
|
| SKU | string |
None. |
|
| VariantName | string |
None. |
|
| isSerialized | boolean |
None. |
|
| CostPrice | decimal number |
None. |
|
| MRP | decimal number |
None. |
|
| SellingPrice | decimal number |
None. |
|
| Warranty | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Mode": "sample string 1",
"ProductID": 2,
"VariantID": 3,
"Barcode": "sample string 4",
"SKU": "sample string 5",
"VariantName": "sample string 6",
"isSerialized": true,
"CostPrice": 8.0,
"MRP": 9.0,
"SellingPrice": 10.0,
"Warranty": 11
}
application/xml, text/xml
Sample:
<ProdVariantSaveInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models"> <Barcode>sample string 4</Barcode> <CostPrice>8</CostPrice> <MRP>9</MRP> <Mode>sample string 1</Mode> <ProductID>2</ProductID> <SKU>sample string 5</SKU> <SellingPrice>10</SellingPrice> <VariantID>3</VariantID> <VariantName>sample string 6</VariantName> <Warranty>11</Warranty> <isSerialized>true</isSerialized> </ProdVariantSaveInput>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |