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. |
|
| Stock | 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. |
|
| 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,
"Stock": 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",
"AuditId": 16,
"Status": "sample string 17",
"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": 18,
"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>18</CreatedBy>
<LastModifiedBy>1</LastModifiedBy>
<AuditId>16</AuditId>
<CGST>8</CGST>
<Category>sample string 13</Category>
<CategoryId>5</CategoryId>
<Description>sample string 3</Description>
<GST>7</GST>
<HSNCode>6</HSNCode>
<Id>1</Id>
<IsActive>true</IsActive>
<IsRawMaterial>true</IsRawMaterial>
<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 17</Status>
<Stock>1</Stock>
<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. |