POST api/StockiestReturn

Request Information

URI Parameters

None.

Body Parameters

StockiestReturnsModels
NameDescriptionTypeAdditional information
SR_Id

integer

None.

SR_Number

string

None.

SR_Date

date

None.

SR_PartnerName

string

None.

SR_Partner_Id_FK

integer

None.

SR_WarehouseName

string

None.

SR_Warehouse_Id_FK

integer

None.

SR_Note

string

None.

SR_User_Id_FK

integer

None.

stockiestReturnDetails

Collection of StokiestReturnDetailsModels

None.

Request Formats

application/json, text/json

Sample:
{
  "SR_Id": 1,
  "SR_Number": "sample string 2",
  "SR_Date": "2019-07-16T06:01:11.5966775+05:30",
  "SR_PartnerName": "sample string 4",
  "SR_Partner_Id_FK": 5,
  "SR_WarehouseName": "sample string 6",
  "SR_Warehouse_Id_FK": 1,
  "SR_Note": "sample string 7",
  "SR_User_Id_FK": 8,
  "stockiestReturnDetails": [
    {
      "SRD_Id": 1,
      "SRD_SR_Id_FK": 2,
      "SRD_P_Id_FK": 3,
      "SRD_PA_Id_FK": 4,
      "SRD_Price": 5.0,
      "SRD_Qty": 6.0,
      "PacksizeCode": "sample string 7",
      "ProductName": "sample string 8",
      "PackSize": "sample string 9",
      "PackUOM": "sample string 10",
      "PackType": "sample string 11"
    },
    {
      "SRD_Id": 1,
      "SRD_SR_Id_FK": 2,
      "SRD_P_Id_FK": 3,
      "SRD_PA_Id_FK": 4,
      "SRD_Price": 5.0,
      "SRD_Qty": 6.0,
      "PacksizeCode": "sample string 7",
      "ProductName": "sample string 8",
      "PackSize": "sample string 9",
      "PackUOM": "sample string 10",
      "PackType": "sample string 11"
    }
  ]
}

application/xml, text/xml

Sample:
<StockiestReturnsModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <SR_Date>2019-07-16T06:01:11.5966775+05:30</SR_Date>
  <SR_Id>1</SR_Id>
  <SR_Note>sample string 7</SR_Note>
  <SR_Number>sample string 2</SR_Number>
  <SR_PartnerName>sample string 4</SR_PartnerName>
  <SR_Partner_Id_FK>5</SR_Partner_Id_FK>
  <SR_User_Id_FK>8</SR_User_Id_FK>
  <SR_WarehouseName>sample string 6</SR_WarehouseName>
  <SR_Warehouse_Id_FK>1</SR_Warehouse_Id_FK>
  <stockiestReturnDetails>
    <StokiestReturnDetailsModels>
      <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>
      <SRD_Id>1</SRD_Id>
      <SRD_PA_Id_FK>4</SRD_PA_Id_FK>
      <SRD_P_Id_FK>3</SRD_P_Id_FK>
      <SRD_Price>5</SRD_Price>
      <SRD_Qty>6</SRD_Qty>
      <SRD_SR_Id_FK>2</SRD_SR_Id_FK>
    </StokiestReturnDetailsModels>
    <StokiestReturnDetailsModels>
      <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>
      <SRD_Id>1</SRD_Id>
      <SRD_PA_Id_FK>4</SRD_PA_Id_FK>
      <SRD_P_Id_FK>3</SRD_P_Id_FK>
      <SRD_Price>5</SRD_Price>
      <SRD_Qty>6</SRD_Qty>
      <SRD_SR_Id_FK>2</SRD_SR_Id_FK>
    </StokiestReturnDetailsModels>
  </stockiestReturnDetails>
</StockiestReturnsModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.