POST api/OpeningStocks/InsertBagOpeningStock?vUserID={vUserID}&IsOpen={IsOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vUserID | integer |
Required |
|
| IsOpen | boolean |
Required |
Body Parameters
Collection of BagsOpeningStock| Name | Description | Type | Additional information |
|---|---|---|---|
| SerialNo | integer |
None. |
|
| BagTypeID | integer |
None. |
|
| ClassID | integer |
None. |
|
| Quantity | integer |
None. |
|
| Rate | decimal number |
None. |
|
| Cost | decimal number |
None. |
|
| TTLValue | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"SerialNo": 1,
"BagTypeID": 2,
"ClassID": 3,
"Quantity": 4,
"Rate": 5.0,
"Cost": 6.0,
"TTLValue": 7.0
},
{
"SerialNo": 1,
"BagTypeID": 2,
"ClassID": 3,
"Quantity": 4,
"Rate": 5.0,
"Cost": 6.0,
"TTLValue": 7.0
}
]
application/xml, text/xml
Sample:
<ArrayOfBagsOpeningStock xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
<BagsOpeningStock>
<BagTypeID>2</BagTypeID>
<ClassID>3</ClassID>
<Cost>6</Cost>
<Quantity>4</Quantity>
<Rate>5</Rate>
<SerialNo>1</SerialNo>
<TTLValue>7</TTLValue>
</BagsOpeningStock>
<BagsOpeningStock>
<BagTypeID>2</BagTypeID>
<ClassID>3</ClassID>
<Cost>6</Cost>
<Quantity>4</Quantity>
<Rate>5</Rate>
<SerialNo>1</SerialNo>
<TTLValue>7</TTLValue>
</BagsOpeningStock>
</ArrayOfBagsOpeningStock>
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. |