POST api/Item
Request Information
URI Parameters
None.
Body Parameters
Item| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| UnitOfMeasureId | integer |
None. |
|
| CategoryId | integer |
None. |
|
| FactoryStock | decimal number |
None. |
|
| GodownStock | decimal number |
None. |
|
| HSNCode | integer |
None. |
|
| GST | decimal number |
None. |
|
| CGST | decimal number |
None. |
|
| SGST | decimal number |
None. |
|
| IsActive | boolean |
None. |
|
| IsRawMaterial | boolean |
None. |
|
| PricingTierId | integer |
None. |
|
| Category | string |
None. |
|
| Price | decimal number |
None. |
|
| UnitOfMeasure | string |
None. |
|
| Multiply | integer |
None. |
|
| FileName | string |
None. |
|
| MimeType | string |
None. |
|
| ImagePath | string |
None. |
|
| Base64String | string |
None. |
|
| IsRetailerCanOrder | boolean |
None. |
|
| AuditId | integer |
None. |
|
| Status | string |
None. |
|
| Prices | Collection of ItemPrice |
None. |
|
| CreatedBy | integer |
None. |
|
| LastModifiedBy | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Description": "sample string 3",
"UnitOfMeasureId": 4,
"CategoryId": 5,
"FactoryStock": 1.0,
"GodownStock": 1.0,
"HSNCode": 6,
"GST": 7.0,
"CGST": 8.0,
"SGST": 9.0,
"IsActive": true,
"IsRawMaterial": true,
"PricingTierId": 12,
"Category": "sample string 13",
"Price": 14.0,
"UnitOfMeasure": "sample string 15",
"Multiply": 16,
"FileName": "sample string 17",
"MimeType": "sample string 18",
"ImagePath": "sample string 19",
"Base64String": "sample string 20",
"IsRetailerCanOrder": true,
"AuditId": 22,
"Status": "sample string 23",
"Prices": [
{
"Id": 1,
"ItemId": 2,
"PricingTierId": 3,
"PricingTierName": "sample string 4",
"Price": 5.0,
"AuditId": 6,
"CreatedBy": 7,
"LastModifiedBy": 1
},
{
"Id": 1,
"ItemId": 2,
"PricingTierId": 3,
"PricingTierName": "sample string 4",
"Price": 5.0,
"AuditId": 6,
"CreatedBy": 7,
"LastModifiedBy": 1
}
],
"CreatedBy": 24,
"LastModifiedBy": 1
}
application/xml, text/xml
Sample:
<Item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IKimWebService.Domain">
<CreatedBy>24</CreatedBy>
<LastModifiedBy>1</LastModifiedBy>
<AuditId>22</AuditId>
<Base64String>sample string 20</Base64String>
<CGST>8</CGST>
<Category>sample string 13</Category>
<CategoryId>5</CategoryId>
<Description>sample string 3</Description>
<FactoryStock>1</FactoryStock>
<FileName>sample string 17</FileName>
<GST>7</GST>
<GodownStock>1</GodownStock>
<HSNCode>6</HSNCode>
<Id>1</Id>
<ImagePath>sample string 19</ImagePath>
<IsActive>true</IsActive>
<IsRawMaterial>true</IsRawMaterial>
<IsRetailerCanOrder>true</IsRetailerCanOrder>
<MimeType>sample string 18</MimeType>
<Multiply>16</Multiply>
<Name>sample string 2</Name>
<Price>14</Price>
<Prices>
<ItemPrice>
<CreatedBy>7</CreatedBy>
<LastModifiedBy>1</LastModifiedBy>
<AuditId>6</AuditId>
<Id>1</Id>
<ItemId>2</ItemId>
<Price>5</Price>
<PricingTierId>3</PricingTierId>
<PricingTierName>sample string 4</PricingTierName>
</ItemPrice>
<ItemPrice>
<CreatedBy>7</CreatedBy>
<LastModifiedBy>1</LastModifiedBy>
<AuditId>6</AuditId>
<Id>1</Id>
<ItemId>2</ItemId>
<Price>5</Price>
<PricingTierId>3</PricingTierId>
<PricingTierName>sample string 4</PricingTierName>
</ItemPrice>
</Prices>
<PricingTierId>12</PricingTierId>
<SGST>9</SGST>
<Status>sample string 23</Status>
<UnitOfMeasure>sample string 15</UnitOfMeasure>
<UnitOfMeasureId>4</UnitOfMeasureId>
</Item>
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. |