POST api/OpeningStocks/InsertInventoryOpeningStock?vUserID={vUserID}&IsOpen={IsOpen}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
vUserID

integer

Required

IsOpen

boolean

Required

Body Parameters

Collection of InventoryOpeningStock
NameDescriptionTypeAdditional information
SerialNo

integer

None.

ProductID

integer

None.

Qty

decimal number

None.

Price

decimal number

None.

TotalValue

decimal number

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "SerialNo": 1,
    "ProductID": 2,
    "Qty": 3.0,
    "Price": 4.0,
    "TotalValue": 5.0
  },
  {
    "SerialNo": 1,
    "ProductID": 2,
    "Qty": 3.0,
    "Price": 4.0,
    "TotalValue": 5.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfInventoryOpeningStock xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
  <InventoryOpeningStock>
    <Price>4</Price>
    <ProductID>2</ProductID>
    <Qty>3</Qty>
    <SerialNo>1</SerialNo>
    <TotalValue>5</TotalValue>
  </InventoryOpeningStock>
  <InventoryOpeningStock>
    <Price>4</Price>
    <ProductID>2</ProductID>
    <Qty>3</Qty>
    <SerialNo>1</SerialNo>
    <TotalValue>5</TotalValue>
  </InventoryOpeningStock>
</ArrayOfInventoryOpeningStock>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.