POST api/stockinout/create/{companycode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companycode

string

Required

Body Parameters

StockInOut
NameDescriptionTypeAdditional information
StockInOutId

integer

None.

BranchId

integer

None.

BranchCode

string

None.

Remarks

string

None.

Staff

string

None.

Type

integer

None.

Items

Collection of StockInOutItem

None.

Request Formats

application/json, text/json

Sample:
{
  "StockInOutId": 1,
  "BranchId": 2,
  "BranchCode": "sample string 3",
  "Remarks": "sample string 4",
  "Staff": "sample string 5",
  "Type": 6,
  "Items": [
    {
      "ItemId": 1,
      "Quantity": 2,
      "ItemNo": "sample string 3"
    },
    {
      "ItemId": 1,
      "Quantity": 2,
      "ItemNo": "sample string 3"
    }
  ]
}

text/xml

Sample:
<StockInOut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CloudSysPOSWeb.Models">
  <BranchCode>sample string 3</BranchCode>
  <BranchId>2</BranchId>
  <Items>
    <StockInOutItem>
      <ItemId>1</ItemId>
      <ItemNo>sample string 3</ItemNo>
      <Quantity>2</Quantity>
    </StockInOutItem>
    <StockInOutItem>
      <ItemId>1</ItemId>
      <ItemNo>sample string 3</ItemNo>
      <Quantity>2</Quantity>
    </StockInOutItem>
  </Items>
  <Remarks>sample string 4</Remarks>
  <Staff>sample string 5</Staff>
  <StockInOutId>1</StockInOutId>
  <Type>6</Type>
</StockInOut>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'StockInOut'.

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.