POST api/CounterSalesExchange

Request Information

URI Parameters

None.

Body Parameters

CounterSalesExchangeModels
NameDescriptionTypeAdditional information
CS_Id

integer

Required

CounterSalesReturnsDetails

Collection of CounterSalesDetailsModels

Required

CS_SK_Id_FK

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CS_Id": 1,
  "CounterSalesReturnsDetails": [
    {
      "CSD_Id": 1,
      "CSD_CS_Id_FK": 2,
      "CSD_P_Id_FK": 3,
      "CSD_PA_Id_FK": 4,
      "CSD_P_ProductCode_FK": "sample string 5",
      "CSD_P_ProductName_FK": "sample string 6",
      "CSD_Quantity_FK": 7.0,
      "CSD_PR_CustomerPrice_FK": 8.0,
      "CSD_GST_Percentage": 9.0,
      "CSD_PA_Size": "sample string 10",
      "CSD_PA_PackUOM": "sample string 11",
      "CSD_PA_PackType": "sample string 12",
      "CSD_UserId_FK": 13,
      "CSD_TS": "2019-10-23T03:06:46.9700135+05:30",
      "CSD_Inactive": "A",
      "CSD_TS_LastEdited": "2019-10-23T03:06:46.9700135+05:30",
      "CSD_TS_Edited_Uid_FK": 17,
      "CSD_PR_MaxPrice": 18.0,
      "CSD_Stock_Quantity": 19,
      "CSRD_Qty": 20.0,
      "CSRD_Price": 21.0
    },
    {
      "CSD_Id": 1,
      "CSD_CS_Id_FK": 2,
      "CSD_P_Id_FK": 3,
      "CSD_PA_Id_FK": 4,
      "CSD_P_ProductCode_FK": "sample string 5",
      "CSD_P_ProductName_FK": "sample string 6",
      "CSD_Quantity_FK": 7.0,
      "CSD_PR_CustomerPrice_FK": 8.0,
      "CSD_GST_Percentage": 9.0,
      "CSD_PA_Size": "sample string 10",
      "CSD_PA_PackUOM": "sample string 11",
      "CSD_PA_PackType": "sample string 12",
      "CSD_UserId_FK": 13,
      "CSD_TS": "2019-10-23T03:06:46.9700135+05:30",
      "CSD_Inactive": "A",
      "CSD_TS_LastEdited": "2019-10-23T03:06:46.9700135+05:30",
      "CSD_TS_Edited_Uid_FK": 17,
      "CSD_PR_MaxPrice": 18.0,
      "CSD_Stock_Quantity": 19,
      "CSRD_Qty": 20.0,
      "CSRD_Price": 21.0
    }
  ],
  "CS_SK_Id_FK": 2
}

application/xml, text/xml

Sample:
<CounterSalesExchangeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <CS_Id>1</CS_Id>
  <CS_SK_Id_FK>2</CS_SK_Id_FK>
  <CounterSalesReturnsDetails>
    <CounterSalesDetailsModels>
      <CSD_CS_Id_FK>2</CSD_CS_Id_FK>
      <CSD_GST_Percentage>9</CSD_GST_Percentage>
      <CSD_Id>1</CSD_Id>
      <CSD_Inactive>65</CSD_Inactive>
      <CSD_PA_Id_FK>4</CSD_PA_Id_FK>
      <CSD_PA_PackType>sample string 12</CSD_PA_PackType>
      <CSD_PA_PackUOM>sample string 11</CSD_PA_PackUOM>
      <CSD_PA_Size>sample string 10</CSD_PA_Size>
      <CSD_PR_CustomerPrice_FK>8</CSD_PR_CustomerPrice_FK>
      <CSD_PR_MaxPrice>18</CSD_PR_MaxPrice>
      <CSD_P_Id_FK>3</CSD_P_Id_FK>
      <CSD_P_ProductCode_FK>sample string 5</CSD_P_ProductCode_FK>
      <CSD_P_ProductName_FK>sample string 6</CSD_P_ProductName_FK>
      <CSD_Quantity_FK>7</CSD_Quantity_FK>
      <CSD_Stock_Quantity>19</CSD_Stock_Quantity>
      <CSD_TS>2019-10-23T03:06:46.9700135+05:30</CSD_TS>
      <CSD_TS_Edited_Uid_FK>17</CSD_TS_Edited_Uid_FK>
      <CSD_TS_LastEdited>2019-10-23T03:06:46.9700135+05:30</CSD_TS_LastEdited>
      <CSD_UserId_FK>13</CSD_UserId_FK>
      <CSRD_Price>21</CSRD_Price>
      <CSRD_Qty>20</CSRD_Qty>
    </CounterSalesDetailsModels>
    <CounterSalesDetailsModels>
      <CSD_CS_Id_FK>2</CSD_CS_Id_FK>
      <CSD_GST_Percentage>9</CSD_GST_Percentage>
      <CSD_Id>1</CSD_Id>
      <CSD_Inactive>65</CSD_Inactive>
      <CSD_PA_Id_FK>4</CSD_PA_Id_FK>
      <CSD_PA_PackType>sample string 12</CSD_PA_PackType>
      <CSD_PA_PackUOM>sample string 11</CSD_PA_PackUOM>
      <CSD_PA_Size>sample string 10</CSD_PA_Size>
      <CSD_PR_CustomerPrice_FK>8</CSD_PR_CustomerPrice_FK>
      <CSD_PR_MaxPrice>18</CSD_PR_MaxPrice>
      <CSD_P_Id_FK>3</CSD_P_Id_FK>
      <CSD_P_ProductCode_FK>sample string 5</CSD_P_ProductCode_FK>
      <CSD_P_ProductName_FK>sample string 6</CSD_P_ProductName_FK>
      <CSD_Quantity_FK>7</CSD_Quantity_FK>
      <CSD_Stock_Quantity>19</CSD_Stock_Quantity>
      <CSD_TS>2019-10-23T03:06:46.9700135+05:30</CSD_TS>
      <CSD_TS_Edited_Uid_FK>17</CSD_TS_Edited_Uid_FK>
      <CSD_TS_LastEdited>2019-10-23T03:06:46.9700135+05:30</CSD_TS_LastEdited>
      <CSD_UserId_FK>13</CSD_UserId_FK>
      <CSRD_Price>21</CSRD_Price>
      <CSRD_Qty>20</CSRD_Qty>
    </CounterSalesDetailsModels>
  </CounterSalesReturnsDetails>
</CounterSalesExchangeModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.