POST api/SellerProduct/AddProduct
Request Information
URI Parameters
None.
Body Parameters
ReqAddProduct| Name | Description | Type | Additional information |
|---|---|---|---|
| CategoryId | integer |
None. |
|
| ProductId | integer |
None. |
|
| ProductName | string |
Required |
|
| ProductImage | string |
None. |
|
| MRP | decimal number |
None. |
|
| SellingPrice | decimal number |
None. |
|
| Quantity | integer |
None. |
|
| UnitId | integer |
None. |
|
| ProductDescription | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CategoryId": 1,
"ProductId": 2,
"ProductName": "sample string 3",
"ProductImage": "sample string 4",
"MRP": 5.0,
"SellingPrice": 6.0,
"Quantity": 7,
"UnitId": 8,
"ProductDescription": "sample string 9"
}
application/xml, text/xml
Sample:
<ReqAddProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NEOWAY.Models.Request.Product"> <CategoryId>1</CategoryId> <MRP>5</MRP> <ProductDescription>sample string 9</ProductDescription> <ProductId>2</ProductId> <ProductImage>sample string 4</ProductImage> <ProductName>sample string 3</ProductName> <Quantity>7</Quantity> <SellingPrice>6</SellingPrice> <UnitId>8</UnitId> </ReqAddProduct>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |