POST api/WarehouseReturns

Request Information

URI Parameters

None.

Body Parameters

WarehouseReturnsModels
NameDescriptionTypeAdditional information
InvoiceId

integer

None.

InvoiceType

string

None.

Invoice_No

string

None.

InvoiceDate

date

None.

Customer_Stockist_Id

integer

None.

Customer_Stockist_Name

string

None.

Customer_Stockist_Address

string

None.

CN_UserId_FK

integer

None.

CN_TS

date

None.

CN_Inactive

character

None.

CN_TS_LastEdited

date

None.

CN_TS_Edited_Uid_FK

integer

None.

WarehouseReturnsDetails

Collection of WarehouseReturnsDetailsModels

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceId": 1,
  "InvoiceType": "sample string 2",
  "Invoice_No": "sample string 3",
  "InvoiceDate": "2019-07-17T04:17:27.6186187+05:30",
  "Customer_Stockist_Id": 5,
  "Customer_Stockist_Name": "sample string 6",
  "Customer_Stockist_Address": "sample string 7",
  "CN_UserId_FK": 8,
  "CN_TS": "2019-07-17T04:17:27.6186187+05:30",
  "CN_Inactive": "A",
  "CN_TS_LastEdited": "2019-07-17T04:17:27.6186187+05:30",
  "CN_TS_Edited_Uid_FK": 12,
  "WarehouseReturnsDetails": [
    {
      "P_Id": 1,
      "PA_Id": 2,
      "P_Name": "sample string 3",
      "PA_Size": "sample string 4",
      "PA_UOM": "sample string 5",
      "PA_Type": "sample string 6",
      "PA_Code": "sample string 7",
      "Qty": 8,
      "PR_Price": 9.0,
      "PR_TaxRate": 10.0,
      "CND_UserId_FK": 11,
      "CND_TS": "2019-07-17T04:17:27.6186187+05:30",
      "CND_Inactive": "A",
      "CND_TS_LastEdited": "2019-07-17T04:17:27.6186187+05:30",
      "CND_TS_Edited_Uid_FK": 15
    },
    {
      "P_Id": 1,
      "PA_Id": 2,
      "P_Name": "sample string 3",
      "PA_Size": "sample string 4",
      "PA_UOM": "sample string 5",
      "PA_Type": "sample string 6",
      "PA_Code": "sample string 7",
      "Qty": 8,
      "PR_Price": 9.0,
      "PR_TaxRate": 10.0,
      "CND_UserId_FK": 11,
      "CND_TS": "2019-07-17T04:17:27.6186187+05:30",
      "CND_Inactive": "A",
      "CND_TS_LastEdited": "2019-07-17T04:17:27.6186187+05:30",
      "CND_TS_Edited_Uid_FK": 15
    }
  ]
}

application/xml, text/xml

Sample:
<WarehouseReturnsModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <CN_Inactive>65</CN_Inactive>
  <CN_TS>2019-07-17T04:17:27.6186187+05:30</CN_TS>
  <CN_TS_Edited_Uid_FK>12</CN_TS_Edited_Uid_FK>
  <CN_TS_LastEdited>2019-07-17T04:17:27.6186187+05:30</CN_TS_LastEdited>
  <CN_UserId_FK>8</CN_UserId_FK>
  <Customer_Stockist_Address>sample string 7</Customer_Stockist_Address>
  <Customer_Stockist_Id>5</Customer_Stockist_Id>
  <Customer_Stockist_Name>sample string 6</Customer_Stockist_Name>
  <InvoiceDate>2019-07-17T04:17:27.6186187+05:30</InvoiceDate>
  <InvoiceId>1</InvoiceId>
  <InvoiceType>sample string 2</InvoiceType>
  <Invoice_No>sample string 3</Invoice_No>
  <WarehouseReturnsDetails>
    <WarehouseReturnsDetailsModels>
      <CND_Inactive>65</CND_Inactive>
      <CND_TS>2019-07-17T04:17:27.6186187+05:30</CND_TS>
      <CND_TS_Edited_Uid_FK>15</CND_TS_Edited_Uid_FK>
      <CND_TS_LastEdited>2019-07-17T04:17:27.6186187+05:30</CND_TS_LastEdited>
      <CND_UserId_FK>11</CND_UserId_FK>
      <PA_Code>sample string 7</PA_Code>
      <PA_Id>2</PA_Id>
      <PA_Size>sample string 4</PA_Size>
      <PA_Type>sample string 6</PA_Type>
      <PA_UOM>sample string 5</PA_UOM>
      <PR_Price>9</PR_Price>
      <PR_TaxRate>10</PR_TaxRate>
      <P_Id>1</P_Id>
      <P_Name>sample string 3</P_Name>
      <Qty>8</Qty>
    </WarehouseReturnsDetailsModels>
    <WarehouseReturnsDetailsModels>
      <CND_Inactive>65</CND_Inactive>
      <CND_TS>2019-07-17T04:17:27.6186187+05:30</CND_TS>
      <CND_TS_Edited_Uid_FK>15</CND_TS_Edited_Uid_FK>
      <CND_TS_LastEdited>2019-07-17T04:17:27.6186187+05:30</CND_TS_LastEdited>
      <CND_UserId_FK>11</CND_UserId_FK>
      <PA_Code>sample string 7</PA_Code>
      <PA_Id>2</PA_Id>
      <PA_Size>sample string 4</PA_Size>
      <PA_Type>sample string 6</PA_Type>
      <PA_UOM>sample string 5</PA_UOM>
      <PR_Price>9</PR_Price>
      <PR_TaxRate>10</PR_TaxRate>
      <P_Id>1</P_Id>
      <P_Name>sample string 3</P_Name>
      <Qty>8</Qty>
    </WarehouseReturnsDetailsModels>
  </WarehouseReturnsDetails>
</WarehouseReturnsModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.