POST api/Stock/InsertWastageInvoice?isOpen={isOpen}&userId={userId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Default value is False |
|
| userId | integer |
Default value is 0 |
Body Parameters
WastageModel| Name | Description | Type | Additional information |
|---|---|---|---|
| IsPosted | boolean |
None. |
|
| InvoiceId | integer |
None. |
|
| InvoiceDate | date |
None. |
|
| Narration | string |
None. |
|
| OfficeID | integer |
None. |
|
| IsMultiInvoice | boolean |
None. |
|
| IsPosted2 | boolean |
None. |
|
| IsPosted3 | boolean |
None. |
|
| IsPosted4 | boolean |
None. |
|
| IDOffice | integer |
None. |
|
| ListBody | Collection of WastageBody |
None. |
|
| ListBatch | Collection of WastageBatch |
None. |
|
| ListStore | Collection of WastageStores |
None. |
Request Formats
application/json, text/json
Sample:
{
"IsPosted": true,
"InvoiceId": 2,
"InvoiceDate": "2025-12-16T08:20:24.4295504+05:00",
"Narration": "sample string 4",
"OfficeID": 5,
"IsMultiInvoice": true,
"IsPosted2": true,
"IsPosted3": true,
"IsPosted4": true,
"IDOffice": 10,
"ListBody": [
{
"SerialNo": 1,
"InvoiceId": 2,
"ProductId": "sample string 3",
"PackingId": 4,
"Qty": 5,
"Rate": 6.0,
"QtyL": 7,
"Value": 8.0,
"ProductName": "sample string 9",
"PackingName": "sample string 10",
"Multiplier": 11.0
},
{
"SerialNo": 1,
"InvoiceId": 2,
"ProductId": "sample string 3",
"PackingId": 4,
"Qty": 5,
"Rate": 6.0,
"QtyL": 7,
"Value": 8.0,
"ProductName": "sample string 9",
"PackingName": "sample string 10",
"Multiplier": 11.0
}
],
"ListBatch": [
{
"InvoiceId": 1,
"ProductId": "sample string 2",
"BatchNo": "sample string 3",
"ExpiryDate": "2025-12-16T08:20:24.4295504+05:00",
"Quantity": 5,
"QtyP": 6,
"QtyL": 7,
"Cost": 8.0,
"IsDeleted": true,
"StoreID": 10,
"Wasted": true,
"PackingId": 12
},
{
"InvoiceId": 1,
"ProductId": "sample string 2",
"BatchNo": "sample string 3",
"ExpiryDate": "2025-12-16T08:20:24.4295504+05:00",
"Quantity": 5,
"QtyP": 6,
"QtyL": 7,
"Cost": 8.0,
"IsDeleted": true,
"StoreID": 10,
"Wasted": true,
"PackingId": 12
}
],
"ListStore": [
{
"StoreID": 1,
"InvoiceId": 2,
"ProductID": "sample string 3",
"PackingID": 4,
"QtyP": 5,
"QtyL": 6,
"isDeleted": true
},
{
"StoreID": 1,
"InvoiceId": 2,
"ProductID": "sample string 3",
"PackingID": 4,
"QtyP": 5,
"QtyL": 6,
"isDeleted": true
}
]
}
application/xml, text/xml
Sample:
<WastageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models.Stock">
<IDOffice>10</IDOffice>
<InvoiceDate>2025-12-16T08:20:24.4295504+05:00</InvoiceDate>
<InvoiceId>2</InvoiceId>
<IsMultiInvoice>true</IsMultiInvoice>
<IsPosted>true</IsPosted>
<IsPosted2>true</IsPosted2>
<IsPosted3>true</IsPosted3>
<IsPosted4>true</IsPosted4>
<ListBatch>
<WastageBatch>
<BatchNo>sample string 3</BatchNo>
<Cost>8</Cost>
<ExpiryDate>2025-12-16T08:20:24.4295504+05:00</ExpiryDate>
<InvoiceId>1</InvoiceId>
<IsDeleted>true</IsDeleted>
<PackingId>12</PackingId>
<ProductId>sample string 2</ProductId>
<QtyL>7</QtyL>
<QtyP>6</QtyP>
<Quantity>5</Quantity>
<StoreID>10</StoreID>
<Wasted>true</Wasted>
</WastageBatch>
<WastageBatch>
<BatchNo>sample string 3</BatchNo>
<Cost>8</Cost>
<ExpiryDate>2025-12-16T08:20:24.4295504+05:00</ExpiryDate>
<InvoiceId>1</InvoiceId>
<IsDeleted>true</IsDeleted>
<PackingId>12</PackingId>
<ProductId>sample string 2</ProductId>
<QtyL>7</QtyL>
<QtyP>6</QtyP>
<Quantity>5</Quantity>
<StoreID>10</StoreID>
<Wasted>true</Wasted>
</WastageBatch>
</ListBatch>
<ListBody>
<WastageBody>
<InvoiceId>2</InvoiceId>
<Multiplier>11</Multiplier>
<PackingId>4</PackingId>
<PackingName>sample string 10</PackingName>
<ProductId>sample string 3</ProductId>
<ProductName>sample string 9</ProductName>
<Qty>5</Qty>
<QtyL>7</QtyL>
<Rate>6</Rate>
<SerialNo>1</SerialNo>
<Value>8</Value>
</WastageBody>
<WastageBody>
<InvoiceId>2</InvoiceId>
<Multiplier>11</Multiplier>
<PackingId>4</PackingId>
<PackingName>sample string 10</PackingName>
<ProductId>sample string 3</ProductId>
<ProductName>sample string 9</ProductName>
<Qty>5</Qty>
<QtyL>7</QtyL>
<Rate>6</Rate>
<SerialNo>1</SerialNo>
<Value>8</Value>
</WastageBody>
</ListBody>
<ListStore>
<WastageStores>
<InvoiceId>2</InvoiceId>
<PackingID>4</PackingID>
<ProductID>sample string 3</ProductID>
<QtyL>6</QtyL>
<QtyP>5</QtyP>
<StoreID>1</StoreID>
<isDeleted>true</isDeleted>
</WastageStores>
<WastageStores>
<InvoiceId>2</InvoiceId>
<PackingID>4</PackingID>
<ProductID>sample string 3</ProductID>
<QtyL>6</QtyL>
<QtyP>5</QtyP>
<StoreID>1</StoreID>
<isDeleted>true</isDeleted>
</WastageStores>
</ListStore>
<Narration>sample string 4</Narration>
<OfficeID>5</OfficeID>
</WastageModel>
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. |