POST api/Coding/InsertProduct?isOpen={isOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Required |
Body Parameters
ProductModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductID | string |
None. |
|
| CompanyID | string |
None. |
|
| GroupId | integer |
None. |
|
| SubGroupId | integer |
None. |
|
| Size | decimal number |
None. |
|
| UnitId | string |
None. |
|
| ProductName | string |
None. |
|
| PurchasePrice | decimal number |
None. |
|
| SalePrice | decimal number |
None. |
|
| PurDiscRatio | decimal number |
None. |
|
| SaleDiscRatio | decimal number |
None. |
|
| PurDiscValue | decimal number |
None. |
|
| SaleDiscValue | decimal number |
None. |
|
| PurSTRatio | decimal number |
None. |
|
| SaleSTRatio | decimal number |
None. |
|
| PurPackingId | integer |
None. |
|
| SalPackingId | integer |
None. |
|
| RetailPrice | decimal number |
None. |
|
| IsValueB4Ratio | boolean |
None. |
|
| IsFTaxExempted | boolean |
None. |
|
| PriceControlId | integer |
None. |
|
| IsFTaxOnRP | boolean |
None. |
|
| UrduName | string |
None. |
|
| PurchasePrice2 | decimal number |
None. |
|
| PurchasePrice3 | decimal number |
None. |
|
| SalePrice2 | decimal number |
None. |
|
| SalePrice3 | decimal number |
None. |
|
| MinStockLevel | integer |
None. |
|
| MinStockPackId | integer |
None. |
|
| BarCode | string |
None. |
|
| ShortCode | string |
None. |
|
| ProductWeight | decimal number |
None. |
|
| LabourCharges | decimal number |
None. |
|
| RPTaxRate | decimal number |
None. |
|
| ProductWeight2 | decimal number |
None. |
|
| MinSalePrice | decimal number |
None. |
|
| MaxSalePrice | decimal number |
None. |
|
| MaxStockLevel | integer |
None. |
|
| ShelfName | string |
None. |
|
| IsActive | boolean |
None. |
|
| ProductNameUrdu | string |
None. |
|
| ProductNameShort | string |
None. |
|
| BrandID | integer |
None. |
|
| ManualCode | string |
None. |
|
| Point | string |
None. |
|
| Shade | string |
None. |
|
| VendorID | string |
None. |
|
| IsBatch | boolean |
None. |
|
| IsInventory | boolean |
None. |
|
| PriceChangeable | boolean |
None. |
|
| SaleWHTRatio | decimal number |
None. |
|
| Scheme | decimal number |
None. |
|
| ExpiryDate | date |
None. |
|
| PerPoint | decimal number |
None. |
|
| IsGST | boolean |
None. |
|
| PCTCode | string |
None. |
|
| STSchID | integer |
None. |
|
| HSCodeID | integer |
None. |
|
| CategoryID | integer |
None. |
|
| CategoryRate | decimal number |
None. |
|
| MaxRetailPrice | decimal number |
None. |
|
| PurDiscValueP | decimal number |
None. |
|
| SaleDiscValueP | decimal number |
None. |
|
| ChkUpdateOpening | boolean |
None. |
|
| ChkOpeningStock | boolean |
None. |
|
| OpeningQtyP | integer |
None. |
|
| OpeningQtyL | integer |
None. |
|
| CStock | decimal number |
None. |
|
| ListPackings | Collection of ProductPacking |
None. |
|
| ListSizes | Collection of ProductSize |
None. |
|
| ListColors | Collection of ProductColors |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProductID": "sample string 1",
"CompanyID": "sample string 2",
"GroupId": 3,
"SubGroupId": 4,
"Size": 5.0,
"UnitId": "sample string 6",
"ProductName": "sample string 7",
"PurchasePrice": 8.0,
"SalePrice": 9.0,
"PurDiscRatio": 10.0,
"SaleDiscRatio": 11.0,
"PurDiscValue": 12.0,
"SaleDiscValue": 13.0,
"PurSTRatio": 14.0,
"SaleSTRatio": 15.0,
"PurPackingId": 16,
"SalPackingId": 17,
"RetailPrice": 18.0,
"IsValueB4Ratio": true,
"IsFTaxExempted": true,
"PriceControlId": 21,
"IsFTaxOnRP": true,
"UrduName": "sample string 23",
"PurchasePrice2": 24.0,
"PurchasePrice3": 25.0,
"SalePrice2": 26.0,
"SalePrice3": 27.0,
"MinStockLevel": 28,
"MinStockPackId": 29,
"BarCode": "sample string 30",
"ShortCode": "sample string 31",
"ProductWeight": 32.0,
"LabourCharges": 33.0,
"RPTaxRate": 34.0,
"ProductWeight2": 35.0,
"MinSalePrice": 36.0,
"MaxSalePrice": 37.0,
"MaxStockLevel": 38,
"ShelfName": "sample string 39",
"IsActive": true,
"ProductNameUrdu": "sample string 41",
"ProductNameShort": "sample string 42",
"BrandID": 43,
"ManualCode": "sample string 44",
"Point": "sample string 45",
"Shade": "sample string 46",
"VendorID": "sample string 47",
"IsBatch": true,
"IsInventory": true,
"PriceChangeable": true,
"SaleWHTRatio": 51.0,
"Scheme": 52.0,
"ExpiryDate": "2025-12-16T08:16:39.326988+05:00",
"PerPoint": 54.0,
"IsGST": true,
"PCTCode": "sample string 56",
"STSchID": 57,
"HSCodeID": 58,
"CategoryID": 59,
"CategoryRate": 60.0,
"MaxRetailPrice": 61.0,
"PurDiscValueP": 62.0,
"SaleDiscValueP": 63.0,
"ChkUpdateOpening": true,
"ChkOpeningStock": true,
"OpeningQtyP": 66,
"OpeningQtyL": 67,
"CStock": 68.0,
"ListPackings": [
{
"PackingName": "sample string 1",
"ProductId": "sample string 2",
"PackingId": 3,
"Multiplier": 4.0
},
{
"PackingName": "sample string 1",
"ProductId": "sample string 2",
"PackingId": 3,
"Multiplier": 4.0
}
],
"ListSizes": [
{
"SizeName": "sample string 1",
"ProductId": "sample string 2",
"SizeID": 3
},
{
"SizeName": "sample string 1",
"ProductId": "sample string 2",
"SizeID": 3
}
],
"ListColors": [
{
"ColorName": "sample string 1",
"ProductId": "sample string 2",
"ColorID": 3.0
},
{
"ColorName": "sample string 1",
"ProductId": "sample string 2",
"ColorID": 3.0
}
]
}
application/xml, text/xml
Sample:
<ProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models">
<BarCode>sample string 30</BarCode>
<BrandID>43</BrandID>
<CStock>68</CStock>
<CategoryID>59</CategoryID>
<CategoryRate>60</CategoryRate>
<ChkOpeningStock>true</ChkOpeningStock>
<ChkUpdateOpening>true</ChkUpdateOpening>
<CompanyID>sample string 2</CompanyID>
<ExpiryDate>2025-12-16T08:16:39.326988+05:00</ExpiryDate>
<GroupId>3</GroupId>
<HSCodeID>58</HSCodeID>
<IsActive>true</IsActive>
<IsBatch>true</IsBatch>
<IsFTaxExempted>true</IsFTaxExempted>
<IsFTaxOnRP>true</IsFTaxOnRP>
<IsGST>true</IsGST>
<IsInventory>true</IsInventory>
<IsValueB4Ratio>true</IsValueB4Ratio>
<LabourCharges>33</LabourCharges>
<ListColors>
<ProductColors>
<ColorID>3</ColorID>
<ColorName>sample string 1</ColorName>
<ProductId>sample string 2</ProductId>
</ProductColors>
<ProductColors>
<ColorID>3</ColorID>
<ColorName>sample string 1</ColorName>
<ProductId>sample string 2</ProductId>
</ProductColors>
</ListColors>
<ListPackings>
<ProductPacking>
<Multiplier>4</Multiplier>
<PackingId>3</PackingId>
<PackingName>sample string 1</PackingName>
<ProductId>sample string 2</ProductId>
</ProductPacking>
<ProductPacking>
<Multiplier>4</Multiplier>
<PackingId>3</PackingId>
<PackingName>sample string 1</PackingName>
<ProductId>sample string 2</ProductId>
</ProductPacking>
</ListPackings>
<ListSizes>
<ProductSize>
<ProductId>sample string 2</ProductId>
<SizeID>3</SizeID>
<SizeName>sample string 1</SizeName>
</ProductSize>
<ProductSize>
<ProductId>sample string 2</ProductId>
<SizeID>3</SizeID>
<SizeName>sample string 1</SizeName>
</ProductSize>
</ListSizes>
<ManualCode>sample string 44</ManualCode>
<MaxRetailPrice>61</MaxRetailPrice>
<MaxSalePrice>37</MaxSalePrice>
<MaxStockLevel>38</MaxStockLevel>
<MinSalePrice>36</MinSalePrice>
<MinStockLevel>28</MinStockLevel>
<MinStockPackId>29</MinStockPackId>
<OpeningQtyL>67</OpeningQtyL>
<OpeningQtyP>66</OpeningQtyP>
<PCTCode>sample string 56</PCTCode>
<PerPoint>54</PerPoint>
<Point>sample string 45</Point>
<PriceChangeable>true</PriceChangeable>
<PriceControlId>21</PriceControlId>
<ProductID>sample string 1</ProductID>
<ProductName>sample string 7</ProductName>
<ProductNameShort>sample string 42</ProductNameShort>
<ProductNameUrdu>sample string 41</ProductNameUrdu>
<ProductWeight>32</ProductWeight>
<ProductWeight2>35</ProductWeight2>
<PurDiscRatio>10</PurDiscRatio>
<PurDiscValue>12</PurDiscValue>
<PurDiscValueP>62</PurDiscValueP>
<PurPackingId>16</PurPackingId>
<PurSTRatio>14</PurSTRatio>
<PurchasePrice>8</PurchasePrice>
<PurchasePrice2>24</PurchasePrice2>
<PurchasePrice3>25</PurchasePrice3>
<RPTaxRate>34</RPTaxRate>
<RetailPrice>18</RetailPrice>
<STSchID>57</STSchID>
<SalPackingId>17</SalPackingId>
<SaleDiscRatio>11</SaleDiscRatio>
<SaleDiscValue>13</SaleDiscValue>
<SaleDiscValueP>63</SaleDiscValueP>
<SalePrice>9</SalePrice>
<SalePrice2>26</SalePrice2>
<SalePrice3>27</SalePrice3>
<SaleSTRatio>15</SaleSTRatio>
<SaleWHTRatio>51</SaleWHTRatio>
<Scheme>52</Scheme>
<Shade>sample string 46</Shade>
<ShelfName>sample string 39</ShelfName>
<ShortCode>sample string 31</ShortCode>
<Size>5</Size>
<SubGroupId>4</SubGroupId>
<UnitId>sample string 6</UnitId>
<UrduName>sample string 23</UrduName>
<VendorID>sample string 47</VendorID>
</ProductModel>
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. |