POST api/edititem
Request Information
URI Parameters
None.
Body Parameters
ModItem| Name | Description | Type | Additional information |
|---|---|---|---|
| ItemId | integer |
None. |
|
| UserId | integer |
None. |
|
| ItemName | string |
None. |
|
| HsnCode | string |
None. |
|
| Unit | string |
None. |
|
| UnitConversion | string |
None. |
|
| Category | string |
None. |
|
| ItemCode | string |
None. |
|
| ItemImage | string |
None. |
|
| SalePrice | decimal number |
None. |
|
| SaleTax | integer |
None. |
|
| Discount | decimal number |
None. |
|
| DiscountType | integer |
None. |
|
| WholeSalePrice | decimal number |
None. |
|
| WholeSaleTax | integer |
None. |
|
| MinWholeSaleQnt | integer |
None. |
|
| PurchasePrice | decimal number |
None. |
|
| PurchaseTax | integer |
None. |
|
| Taxes | decimal number |
None. |
|
| OpeningQuantity | integer |
None. |
|
| Amount | decimal number |
None. |
|
| AsOfDate | string |
None. |
|
| MinStock | integer |
None. |
|
| Locations | string |
None. |
|
| DiscountAmount | decimal number |
None. |
|
| FinalSalePrice | decimal number |
None. |
|
| FinalPurchasePrice | decimal number |
None. |
|
| CreateDate | string |
None. |
|
| TotalStockAmount | decimal number |
None. |
|
| tax_name | string |
None. |
|
| BranchId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ItemId": 1,
"UserId": 2,
"ItemName": "sample string 3",
"HsnCode": "sample string 4",
"Unit": "sample string 5",
"UnitConversion": "sample string 6",
"Category": "sample string 7",
"ItemCode": "sample string 8",
"ItemImage": "sample string 9",
"SalePrice": 10.0,
"SaleTax": 11,
"Discount": 12.0,
"DiscountType": 13,
"WholeSalePrice": 14.0,
"WholeSaleTax": 15,
"MinWholeSaleQnt": 16,
"PurchasePrice": 17.0,
"PurchaseTax": 18,
"Taxes": 19.0,
"OpeningQuantity": 20,
"Amount": 21.0,
"AsOfDate": "sample string 22",
"MinStock": 23,
"Locations": "sample string 24",
"DiscountAmount": 25.0,
"FinalSalePrice": 26.0,
"FinalPurchasePrice": 27.0,
"CreateDate": "sample string 28",
"TotalStockAmount": 29.0,
"tax_name": "sample string 30",
"BranchId": 31
}
application/xml, text/xml
Sample:
<ModItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MnbebookApi.Models"> <Amount>21</Amount> <AsOfDate>sample string 22</AsOfDate> <BranchId>31</BranchId> <Category>sample string 7</Category> <CreateDate>sample string 28</CreateDate> <Discount>12</Discount> <DiscountAmount>25</DiscountAmount> <DiscountType>13</DiscountType> <FinalPurchasePrice>27</FinalPurchasePrice> <FinalSalePrice>26</FinalSalePrice> <HsnCode>sample string 4</HsnCode> <ItemCode>sample string 8</ItemCode> <ItemId>1</ItemId> <ItemImage>sample string 9</ItemImage> <ItemName>sample string 3</ItemName> <Locations>sample string 24</Locations> <MinStock>23</MinStock> <MinWholeSaleQnt>16</MinWholeSaleQnt> <OpeningQuantity>20</OpeningQuantity> <PurchasePrice>17</PurchasePrice> <PurchaseTax>18</PurchaseTax> <SalePrice>10</SalePrice> <SaleTax>11</SaleTax> <Taxes>19</Taxes> <TotalStockAmount>29</TotalStockAmount> <Unit>sample string 5</Unit> <UnitConversion>sample string 6</UnitConversion> <UserId>2</UserId> <WholeSalePrice>14</WholeSalePrice> <WholeSaleTax>15</WholeSaleTax> <tax_name>sample string 30</tax_name> </ModItem>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CommonResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | integer |
None. |
|
| Data | Object |
None. |
|
| Message | string |
None. |
|
| refresh_token | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": 1,
"Data": {},
"Message": "sample string 3",
"refresh_token": "sample string 4"
}
application/xml, text/xml
Sample:
<CommonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MnbebookApi.Models"> <Data /> <Message>sample string 3</Message> <Status>1</Status> <refresh_token>sample string 4</refresh_token> </CommonResponse>