POST api/InvWastage/InsertUpdateRecord?vUserID={vUserID}&IsOpen={IsOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vUserID | integer |
Required |
|
| IsOpen | boolean |
Required |
Body Parameters
InventoryWast| Name | Description | Type | Additional information |
|---|---|---|---|
| WastID | integer |
None. |
|
| InvoiceDate | date |
None. |
|
| Narration | string |
None. |
|
| TotalValue | decimal number |
None. |
|
| ListBody | Collection of InventoryWastBody |
None. |
|
| ListBatch | Collection of InventoryWastBatch |
None. |
Request Formats
application/json, text/json
Sample:
{
"WastID": 1,
"InvoiceDate": "2025-12-11T01:03:02.6062542-08:00",
"Narration": "sample string 3",
"TotalValue": 4.0,
"ListBody": [
{
"SerialNo": 1,
"WastID": 2,
"ProductID": 3,
"Qty": 4.0,
"Price": 5.0,
"TTLValue": 6.0,
"Cost": 7.0,
"ProductName": "sample string 8",
"CurrentStock": 9.0,
"IsBatchProduct": true
},
{
"SerialNo": 1,
"WastID": 2,
"ProductID": 3,
"Qty": 4.0,
"Price": 5.0,
"TTLValue": 6.0,
"Cost": 7.0,
"ProductName": "sample string 8",
"CurrentStock": 9.0,
"IsBatchProduct": true
}
],
"ListBatch": [
{
"WastID": 1,
"ProductID": 2,
"BatchNo": "sample string 3",
"ExpiryDate": "2025-12-11T01:03:02.6062542-08:00",
"Qty": 5,
"Cost": 6.0
},
{
"WastID": 1,
"ProductID": 2,
"BatchNo": "sample string 3",
"ExpiryDate": "2025-12-11T01:03:02.6062542-08:00",
"Qty": 5,
"Cost": 6.0
}
]
}
application/xml, text/xml
Sample:
<InventoryWast xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
<InvoiceDate>2025-12-11T01:03:02.6062542-08:00</InvoiceDate>
<ListBatch>
<InventoryWastBatch>
<BatchNo>sample string 3</BatchNo>
<Cost>6</Cost>
<ExpiryDate>2025-12-11T01:03:02.6062542-08:00</ExpiryDate>
<ProductID>2</ProductID>
<Qty>5</Qty>
<WastID>1</WastID>
</InventoryWastBatch>
<InventoryWastBatch>
<BatchNo>sample string 3</BatchNo>
<Cost>6</Cost>
<ExpiryDate>2025-12-11T01:03:02.6062542-08:00</ExpiryDate>
<ProductID>2</ProductID>
<Qty>5</Qty>
<WastID>1</WastID>
</InventoryWastBatch>
</ListBatch>
<ListBody>
<InventoryWastBody>
<Cost>7</Cost>
<CurrentStock>9</CurrentStock>
<IsBatchProduct>true</IsBatchProduct>
<Price>5</Price>
<ProductID>3</ProductID>
<ProductName>sample string 8</ProductName>
<Qty>4</Qty>
<SerialNo>1</SerialNo>
<TTLValue>6</TTLValue>
<WastID>2</WastID>
</InventoryWastBody>
<InventoryWastBody>
<Cost>7</Cost>
<CurrentStock>9</CurrentStock>
<IsBatchProduct>true</IsBatchProduct>
<Price>5</Price>
<ProductID>3</ProductID>
<ProductName>sample string 8</ProductName>
<Qty>4</Qty>
<SerialNo>1</SerialNo>
<TTLValue>6</TTLValue>
<WastID>2</WastID>
</InventoryWastBody>
</ListBody>
<Narration>sample string 3</Narration>
<TotalValue>4</TotalValue>
<WastID>1</WastID>
</InventoryWast>
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. |