POST api/P_NewItemMaster
Request Information
URI Parameters
None.
Body Parameters
C_P_NewItemMaster| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ItemCode | string |
None. |
|
| ItemName | string |
None. |
|
| ItemType | string |
None. |
|
| ProductMainGroupId | integer |
None. |
|
| ProductGroupId | integer |
None. |
|
| ProductTypeId | integer |
None. |
|
| ProductClassId | integer |
None. |
|
| ItemSize | string |
None. |
|
| InventoryUnit | integer |
None. |
|
| ItemWeight | integer |
None. |
|
| WeightUnit | integer |
None. |
|
| PurchaseUnit | integer |
None. |
|
| PurchasePrice | decimal number |
None. |
|
| CostPrice | decimal number |
None. |
|
| WarehouseId | integer |
None. |
|
| HSNCode | string |
None. |
|
| PurchaseLedgerCode | string |
None. |
|
| WIPLedgerCode | string |
None. |
|
| PurchaseReturnLedgerCode | string |
None. |
|
| CostOfProductionLedgerCode | string |
None. |
|
| MaterialIssforProductionLedgerCode | string |
None. |
|
| QualityFlag | string |
None. |
|
| CreatedBy | integer |
None. |
|
| CreatedOn | date |
None. |
|
| ModifiedBy | integer |
None. |
|
| ModifiedOn | date |
None. |
|
| BranchCode | integer |
None. |
|
| Warranty | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"ItemCode": "sample string 2",
"ItemName": "sample string 3",
"ItemType": "sample string 4",
"ProductMainGroupId": 5,
"ProductGroupId": 1,
"ProductTypeId": 1,
"ProductClassId": 1,
"ItemSize": "sample string 6",
"InventoryUnit": 1,
"ItemWeight": 1,
"WeightUnit": 1,
"PurchaseUnit": 1,
"PurchasePrice": 1.0,
"CostPrice": 1.0,
"WarehouseId": 1,
"HSNCode": "sample string 7",
"PurchaseLedgerCode": "sample string 8",
"WIPLedgerCode": "sample string 9",
"PurchaseReturnLedgerCode": "sample string 10",
"CostOfProductionLedgerCode": "sample string 11",
"MaterialIssforProductionLedgerCode": "sample string 12",
"QualityFlag": "sample string 13",
"CreatedBy": 1,
"CreatedOn": "2025-12-17T23:57:21.722644+00:00",
"ModifiedBy": 1,
"ModifiedOn": "2025-12-17T23:57:21.722644+00:00",
"BranchCode": 14,
"Warranty": 15
}
application/xml, text/xml
Sample:
<C_P_NewItemMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models"> <BranchCode>14</BranchCode> <CostOfProductionLedgerCode>sample string 11</CostOfProductionLedgerCode> <CostPrice>1</CostPrice> <CreatedBy>1</CreatedBy> <CreatedOn>2025-12-17T23:57:21.722644+00:00</CreatedOn> <HSNCode>sample string 7</HSNCode> <Id>1</Id> <InventoryUnit>1</InventoryUnit> <ItemCode>sample string 2</ItemCode> <ItemName>sample string 3</ItemName> <ItemSize>sample string 6</ItemSize> <ItemType>sample string 4</ItemType> <ItemWeight>1</ItemWeight> <MaterialIssforProductionLedgerCode>sample string 12</MaterialIssforProductionLedgerCode> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-12-17T23:57:21.722644+00:00</ModifiedOn> <ProductClassId>1</ProductClassId> <ProductGroupId>1</ProductGroupId> <ProductMainGroupId>5</ProductMainGroupId> <ProductTypeId>1</ProductTypeId> <PurchaseLedgerCode>sample string 8</PurchaseLedgerCode> <PurchasePrice>1</PurchasePrice> <PurchaseReturnLedgerCode>sample string 10</PurchaseReturnLedgerCode> <PurchaseUnit>1</PurchaseUnit> <QualityFlag>sample string 13</QualityFlag> <WIPLedgerCode>sample string 9</WIPLedgerCode> <WarehouseId>1</WarehouseId> <Warranty>15</Warranty> <WeightUnit>1</WeightUnit> </C_P_NewItemMaster>
application/x-www-form-urlencoded
Sample:
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. |