POST api/StockTransfer

Request Information

URI Parameters

None.

Body Parameters

StockTransferModels
NameDescriptionTypeAdditional information
ST_Id

integer

None.

ST_Number

string

None.

ST_Date

date

None.

ST_SK_Id_From_FK

integer

None.

ST_SK_Id_To_FK

integer

None.

ST_Note

string

None.

ST_Received

string

None.

ST_User_Id_FK

integer

None.

stockiestTransferDetails

Collection of StockTransferDetailsModels

None.

StockTransferFrom

string

None.

StockTransferTo

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ST_Id": 1,
  "ST_Number": "sample string 2",
  "ST_Date": "2019-05-26T18:56:07.0692088+05:30",
  "ST_SK_Id_From_FK": 4,
  "ST_SK_Id_To_FK": 5,
  "ST_Note": "sample string 6",
  "ST_Received": "sample string 7",
  "ST_User_Id_FK": 8,
  "stockiestTransferDetails": [
    {
      "STD_Id": 1,
      "STD_ST_Id_FK": 2,
      "STD_P_Id_FK": 3,
      "STD_PA_Id_FK": 4,
      "STD_Price": 5.0,
      "STD_Qty": 6.0,
      "PacksizeCode": "sample string 7",
      "ProductName": "sample string 8",
      "PackSize": "sample string 9",
      "PackUOM": "sample string 10",
      "PackType": "sample string 11"
    },
    {
      "STD_Id": 1,
      "STD_ST_Id_FK": 2,
      "STD_P_Id_FK": 3,
      "STD_PA_Id_FK": 4,
      "STD_Price": 5.0,
      "STD_Qty": 6.0,
      "PacksizeCode": "sample string 7",
      "ProductName": "sample string 8",
      "PackSize": "sample string 9",
      "PackUOM": "sample string 10",
      "PackType": "sample string 11"
    }
  ],
  "StockTransferFrom": "sample string 9",
  "StockTransferTo": "sample string 10"
}

application/xml, text/xml

Sample:
<StockTransferModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <ST_Date>2019-05-26T18:56:07.0692088+05:30</ST_Date>
  <ST_Id>1</ST_Id>
  <ST_Note>sample string 6</ST_Note>
  <ST_Number>sample string 2</ST_Number>
  <ST_Received>sample string 7</ST_Received>
  <ST_SK_Id_From_FK>4</ST_SK_Id_From_FK>
  <ST_SK_Id_To_FK>5</ST_SK_Id_To_FK>
  <ST_User_Id_FK>8</ST_User_Id_FK>
  <StockTransferFrom>sample string 9</StockTransferFrom>
  <StockTransferTo>sample string 10</StockTransferTo>
  <stockiestTransferDetails>
    <StockTransferDetailsModels>
      <PackSize>sample string 9</PackSize>
      <PackType>sample string 11</PackType>
      <PackUOM>sample string 10</PackUOM>
      <PacksizeCode>sample string 7</PacksizeCode>
      <ProductName>sample string 8</ProductName>
      <STD_Id>1</STD_Id>
      <STD_PA_Id_FK>4</STD_PA_Id_FK>
      <STD_P_Id_FK>3</STD_P_Id_FK>
      <STD_Price>5</STD_Price>
      <STD_Qty>6</STD_Qty>
      <STD_ST_Id_FK>2</STD_ST_Id_FK>
    </StockTransferDetailsModels>
    <StockTransferDetailsModels>
      <PackSize>sample string 9</PackSize>
      <PackType>sample string 11</PackType>
      <PackUOM>sample string 10</PackUOM>
      <PacksizeCode>sample string 7</PacksizeCode>
      <ProductName>sample string 8</ProductName>
      <STD_Id>1</STD_Id>
      <STD_PA_Id_FK>4</STD_PA_Id_FK>
      <STD_P_Id_FK>3</STD_P_Id_FK>
      <STD_Price>5</STD_Price>
      <STD_Qty>6</STD_Qty>
      <STD_ST_Id_FK>2</STD_ST_Id_FK>
    </StockTransferDetailsModels>
  </stockiestTransferDetails>
</StockTransferModels>

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 'StockTransferModels'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.