POST api/Ecomm/addProduct?companycode={companycode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companycode | string |
Required |
Body Parameters
ItemModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ItemCode | string |
None. |
|
| ItemName | string |
None. |
|
| description | string |
None. |
|
| Unit | string |
None. |
|
| EAN | string |
None. |
|
| MRP | decimal number |
None. |
|
| Tax | decimal number |
None. |
|
| SRate | decimal number |
None. |
|
| Category | string |
None. |
|
| Inventory | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ItemCode": "sample string 1",
"ItemName": "sample string 2",
"description": "sample string 3",
"Unit": "sample string 4",
"EAN": "sample string 5",
"MRP": 6.0,
"Tax": 7.0,
"SRate": 8.0,
"Category": "sample string 9",
"Inventory": 10
}
application/xml, text/xml
Sample:
<ReportsController.ItemModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers"> <Category>sample string 9</Category> <EAN>sample string 5</EAN> <Inventory>10</Inventory> <ItemCode>sample string 1</ItemCode> <ItemName>sample string 2</ItemName> <MRP>6</MRP> <SRate>8</SRate> <Tax>7</Tax> <Unit>sample string 4</Unit> <description>sample string 3</description> </ReportsController.ItemModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.