POST api/MasterItem/CreateMasterItem
Request Information
URI Parameters
None.
Body Parameters
MasterItemBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ItemId | integer |
None. |
|
| CategoryId | integer |
None. |
|
| ItemName | string |
None. |
|
| GST | decimal number |
None. |
|
| Unit | string |
None. |
|
| HSN | string |
None. |
|
| ProductCode | string |
None. |
|
| DisplayName | string |
None. |
|
| DisplayTags | string |
None. |
|
| IsActive | boolean |
None. |
|
| Description | string |
None. |
|
| CreationDate | date |
None. |
|
| CreatedBy | integer |
None. |
|
| UpdationDate | date |
None. |
|
| UpdatedBy | integer |
None. |
|
| Ratings | decimal number |
None. |
|
| IsSinglePackage | boolean |
None. |
|
| IsPopular | boolean |
None. |
|
| IsFeatured | boolean |
None. |
|
| CategoryName | string |
None. |
|
| DefaultPrice | integer |
None. |
|
| DefaultWeight | decimal number |
None. |
|
| MasterPackageList | Collection of MasterPackageBindingModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"ItemId": 1,
"CategoryId": 1,
"ItemName": "sample string 2",
"GST": 1.1,
"Unit": "sample string 3",
"HSN": "sample string 4",
"ProductCode": "sample string 5",
"DisplayName": "sample string 6",
"DisplayTags": "sample string 7",
"IsActive": true,
"Description": "sample string 8",
"CreationDate": "2025-12-06T09:50:40.3938538+05:30",
"CreatedBy": 1,
"UpdationDate": "2025-12-06T09:50:40.3938538+05:30",
"UpdatedBy": 1,
"Ratings": 1.1,
"IsSinglePackage": true,
"IsPopular": true,
"IsFeatured": true,
"CategoryName": "sample string 9",
"DefaultPrice": 10,
"DefaultWeight": 1.1,
"MasterPackageList": [
{
"PackageId": 1,
"ItemId": 1,
"DisplayName": "sample string 2",
"CreatedBy": 1,
"CreationDate": "2025-12-06T09:50:40.3968052+05:30",
"UpdatedBy": 1,
"UpdationDate": "2025-12-06T09:50:40.3978375+05:30",
"Price": 1.1,
"IsActive": true,
"PackageWeight": 1.1
},
{
"PackageId": 1,
"ItemId": 1,
"DisplayName": "sample string 2",
"CreatedBy": 1,
"CreationDate": "2025-12-06T09:50:40.3968052+05:30",
"UpdatedBy": 1,
"UpdationDate": "2025-12-06T09:50:40.3978375+05:30",
"Price": 1.1,
"IsActive": true,
"PackageWeight": 1.1
}
]
}
application/xml, text/xml
Sample:
<MasterItemBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EcommerceWebApi.Models">
<CategoryId>1</CategoryId>
<CategoryName>sample string 9</CategoryName>
<CreatedBy>1</CreatedBy>
<CreationDate>2025-12-06T09:50:40.3938538+05:30</CreationDate>
<DefaultPrice>10</DefaultPrice>
<DefaultWeight>1.1</DefaultWeight>
<Description>sample string 8</Description>
<DisplayName>sample string 6</DisplayName>
<DisplayTags>sample string 7</DisplayTags>
<GST>1.1</GST>
<HSN>sample string 4</HSN>
<IsActive>true</IsActive>
<IsFeatured>true</IsFeatured>
<IsPopular>true</IsPopular>
<IsSinglePackage>true</IsSinglePackage>
<ItemId>1</ItemId>
<ItemName>sample string 2</ItemName>
<MasterPackageList>
<MasterPackageBindingModel>
<CreatedBy>1</CreatedBy>
<CreationDate>2025-12-06T09:50:40.3968052+05:30</CreationDate>
<DisplayName>sample string 2</DisplayName>
<IsActive>true</IsActive>
<ItemId>1</ItemId>
<PackageId>1</PackageId>
<PackageWeight>1.1</PackageWeight>
<Price>1.1</Price>
<UpdatedBy>1</UpdatedBy>
<UpdationDate>2025-12-06T09:50:40.3978375+05:30</UpdationDate>
</MasterPackageBindingModel>
<MasterPackageBindingModel>
<CreatedBy>1</CreatedBy>
<CreationDate>2025-12-06T09:50:40.3968052+05:30</CreationDate>
<DisplayName>sample string 2</DisplayName>
<IsActive>true</IsActive>
<ItemId>1</ItemId>
<PackageId>1</PackageId>
<PackageWeight>1.1</PackageWeight>
<Price>1.1</Price>
<UpdatedBy>1</UpdatedBy>
<UpdationDate>2025-12-06T09:50:40.3978375+05:30</UpdationDate>
</MasterPackageBindingModel>
</MasterPackageList>
<ProductCode>sample string 5</ProductCode>
<Ratings>1.1</Ratings>
<Unit>sample string 3</Unit>
<UpdatedBy>1</UpdatedBy>
<UpdationDate>2025-12-06T09:50:40.3938538+05:30</UpdationDate>
</MasterItemBindingModel>
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.