POST stock/CreateStockCategory
Request Information
URI Parameters
None.
Body Parameters
StockCatEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| TenantID | integer |
None. |
|
| StockCategory | string |
None. |
|
| SalesAccount | string |
None. |
|
| CostAccount | string |
None. |
|
| CategoryDesc | string |
None. |
|
| IsEnabled | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"TenantID": 1,
"StockCategory": "sample string 2",
"SalesAccount": "sample string 3",
"CostAccount": "sample string 4",
"CategoryDesc": "sample string 5",
"IsEnabled": true
}
text/html
Sample:
{"TenantID":1,"StockCategory":"sample string 2","SalesAccount":"sample string 3","CostAccount":"sample string 4","CategoryDesc":"sample string 5","IsEnabled":true}
application/xml, text/xml
Sample:
<StockCatEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ListenerOnline.BusinessEntities.Stock"> <CategoryDesc>sample string 5</CategoryDesc> <CostAccount>sample string 4</CostAccount> <IsEnabled>true</IsEnabled> <SalesAccount>sample string 3</SalesAccount> <StockCategory>sample string 2</StockCategory> <TenantID>1</TenantID> </StockCatEntity>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.