POST api/item/add
Request Information
URI Parameters
None.
Body Parameters
ItemModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ItemId | integer |
None. |
|
| ItemName | string |
None. |
|
| ItemCode | string |
None. |
|
| GroupName | string |
None. |
|
| Unit | string |
None. |
|
| PurchaseRate | decimal number |
None. |
|
| SaleRate | decimal number |
None. |
|
| OpeningStock | decimal number |
None. |
|
| Width | decimal number |
None. |
|
| Length | decimal number |
None. |
|
| Height | decimal number |
None. |
|
| IsSizeRequired | boolean |
None. |
|
| IsApplySaleRate | boolean |
None. |
|
| MinimumStock | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"ItemId": 1,
"ItemName": "sample string 2",
"ItemCode": "sample string 3",
"GroupName": "sample string 4",
"Unit": "sample string 5",
"PurchaseRate": 6.0,
"SaleRate": 7.0,
"OpeningStock": 8.0,
"Width": 1.0,
"Length": 1.0,
"Height": 1.0,
"IsSizeRequired": true,
"IsApplySaleRate": true,
"MinimumStock": 1.0
}
application/xml, text/xml
Sample:
<ItemModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/timberapi.Models"> <GroupName>sample string 4</GroupName> <Height>1</Height> <IsApplySaleRate>true</IsApplySaleRate> <IsSizeRequired>true</IsSizeRequired> <ItemCode>sample string 3</ItemCode> <ItemId>1</ItemId> <ItemName>sample string 2</ItemName> <Length>1</Length> <MinimumStock>1</MinimumStock> <OpeningStock>8</OpeningStock> <PurchaseRate>6</PurchaseRate> <SaleRate>7</SaleRate> <Unit>sample string 5</Unit> <Width>1</Width> </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.