PUT api/CounterSales/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

CounterSalesDraftsModels
NameDescriptionTypeAdditional information
CSDR_Id

integer

None.

CSDR_Note

string

None.

CSDR_Id_Encypt

string

None.

CSDR_SK_Id_FK

integer

None.

StockistDetails

StockiestModels

None.

CSDR_DraftNo

string

None.

CSDR_DateTime

date

None.

CSDR_UserId_FK

integer

None.

CSDR_TS

date

None.

CSDR_Inactive

character

None.

CSDR_TS_LastEdited

date

None.

CSDR_TS_Edited_Uid_FK

integer

None.

CSDR_Type

string

None.

DiscountPercentage

decimal number

None.

TotalSavingsPerProduct

decimal number

None.

TotalSavings

decimal number

None.

CounterSalesList

Collection of CounterSalesListSaveModels

None.

CS_Name

string

None.

CS_MobileNo

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CSDR_Id": 1,
  "CSDR_Note": "sample string 2",
  "CSDR_Id_Encypt": "sample string 3",
  "CSDR_SK_Id_FK": 4,
  "StockistDetails": {
    "SK_Id": 1,
    "SK_Code": "sample string 2",
    "SK_Name": "sample string 3",
    "SK_Country": "sample string 4",
    "SK_Street": "sample string 5",
    "SK_DoorNo": "sample string 6",
    "SK_PinCode": 7,
    "SK_MobileNo": 8,
    "SK_Email": "sample string 9",
    "SK_Note": "sample string 10",
    "SK_TINNo": "sample string 11",
    "SK_STNo": "sample string 12",
    "SK_Contract": "sample string 13",
    "StateSpeedSearch": {
      "ST_Id": 1,
      "ST_StateID": "sample string 2",
      "ST_StateName": "sample string 3"
    },
    "DistrictSpeedSearch": {
      "DI_Id": 1,
      "DI_DistrictId": "sample string 2",
      "DI_District": "sample string 3"
    },
    "TalukSpeedSearch": {
      "TA_Id": 1,
      "TA_TalukId": "sample string 2",
      "TA_Taluk": "sample string 3"
    },
    "VillageSpeedSearch": {
      "VI_Id": 1,
      "VI_VillageId": "sample string 2",
      "VI_Village": "sample string 3"
    },
    "ChainSpeedSearch": {
      "C_Id": 1,
      "C_Code": "sample string 2",
      "C_Name": "sample string 3"
    },
    "AssociateToWarehouse": "sample string 14",
    "SelectedWarehouse": {
      "WH_Id": 1,
      "WH_Code": "sample string 2",
      "WH_Name": "sample string 3"
    },
    "SK_UserId_FK": 15,
    "SK_TS": "2019-10-23T03:06:25.7404544+05:30",
    "SK_Inactive": "A",
    "SK_TS_LastEdited": "2019-10-23T03:06:25.7404544+05:30",
    "SK_TS_Edited_Uid_FK": 19,
    "TotalAmount": 20.0,
    "SelectedPartners": [
      {
        "P_Id": 1,
        "P_Partner_Name": "sample string 2",
        "IsSelected": true,
        "IsPreviouslySelected": true
      },
      {
        "P_Id": 1,
        "P_Partner_Name": "sample string 2",
        "IsSelected": true,
        "IsPreviouslySelected": true
      }
    ],
    "ToaddressForstockTransfer": "sample string 21"
  },
  "CSDR_DraftNo": "sample string 5",
  "CSDR_DateTime": "2019-10-23T03:06:25.7404544+05:30",
  "CSDR_UserId_FK": 7,
  "CSDR_TS": "2019-10-23T03:06:25.7404544+05:30",
  "CSDR_Inactive": "A",
  "CSDR_TS_LastEdited": "2019-10-23T03:06:25.7414402+05:30",
  "CSDR_TS_Edited_Uid_FK": 11,
  "CSDR_Type": "sample string 12",
  "DiscountPercentage": 13.0,
  "TotalSavingsPerProduct": 14.0,
  "TotalSavings": 15.0,
  "CounterSalesList": [
    {
      "ProductId": 1,
      "ProductName": "sample string 2",
      "PackagingId": 3,
      "PackagingCode": "sample string 4",
      "ProductImage": "sample string 5",
      "PackageImage": "sample string 6",
      "Barcode": "sample string 7",
      "Size": "sample string 8",
      "UOM": "sample string 9",
      "Type": "sample string 10",
      "discount": 11,
      "Qty": 12.0,
      "MaxQty": 13.0,
      "CustomerPrice": 14.0,
      "MaximumPrice": 15.0,
      "ActualCustomerPrice": 16.0,
      "StockistCustomerPrice": 17.0,
      "GST_Percentage": 18.0,
      "DiscountPercentage": 19.0,
      "PR_VGSL_BUY_PRICE": 20.0,
      "StokistDealList": [
        {
          "ProductName": "sample string 1",
          "ProductCode": "sample string 2",
          "PackSize": "sample string 3",
          "UOM": "sample string 4",
          "PackType": "sample string 5",
          "CustomerPrice": 6.0,
          "SDD_Id": 7,
          "SDD_SD_Id_FK": 8,
          "SDD_PA_Id_FK": 9,
          "SDD_P_Id_FK": 10,
          "SDD_DealValue": 11.0,
          "SDD_DealType": "sample string 12",
          "SDD_Min_Quantity": 13
        },
        {
          "ProductName": "sample string 1",
          "ProductCode": "sample string 2",
          "PackSize": "sample string 3",
          "UOM": "sample string 4",
          "PackType": "sample string 5",
          "CustomerPrice": 6.0,
          "SDD_Id": 7,
          "SDD_SD_Id_FK": 8,
          "SDD_PA_Id_FK": 9,
          "SDD_P_Id_FK": 10,
          "SDD_DealValue": 11.0,
          "SDD_DealType": "sample string 12",
          "SDD_Min_Quantity": 13
        }
      ]
    },
    {
      "ProductId": 1,
      "ProductName": "sample string 2",
      "PackagingId": 3,
      "PackagingCode": "sample string 4",
      "ProductImage": "sample string 5",
      "PackageImage": "sample string 6",
      "Barcode": "sample string 7",
      "Size": "sample string 8",
      "UOM": "sample string 9",
      "Type": "sample string 10",
      "discount": 11,
      "Qty": 12.0,
      "MaxQty": 13.0,
      "CustomerPrice": 14.0,
      "MaximumPrice": 15.0,
      "ActualCustomerPrice": 16.0,
      "StockistCustomerPrice": 17.0,
      "GST_Percentage": 18.0,
      "DiscountPercentage": 19.0,
      "PR_VGSL_BUY_PRICE": 20.0,
      "StokistDealList": [
        {
          "ProductName": "sample string 1",
          "ProductCode": "sample string 2",
          "PackSize": "sample string 3",
          "UOM": "sample string 4",
          "PackType": "sample string 5",
          "CustomerPrice": 6.0,
          "SDD_Id": 7,
          "SDD_SD_Id_FK": 8,
          "SDD_PA_Id_FK": 9,
          "SDD_P_Id_FK": 10,
          "SDD_DealValue": 11.0,
          "SDD_DealType": "sample string 12",
          "SDD_Min_Quantity": 13
        },
        {
          "ProductName": "sample string 1",
          "ProductCode": "sample string 2",
          "PackSize": "sample string 3",
          "UOM": "sample string 4",
          "PackType": "sample string 5",
          "CustomerPrice": 6.0,
          "SDD_Id": 7,
          "SDD_SD_Id_FK": 8,
          "SDD_PA_Id_FK": 9,
          "SDD_P_Id_FK": 10,
          "SDD_DealValue": 11.0,
          "SDD_DealType": "sample string 12",
          "SDD_Min_Quantity": 13
        }
      ]
    }
  ],
  "CS_Name": "sample string 16",
  "CS_MobileNo": "sample string 17"
}

application/xml, text/xml

Sample:
<CounterSalesDraftsModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <CSDR_DateTime>2019-10-23T03:06:25.7404544+05:30</CSDR_DateTime>
  <CSDR_DraftNo>sample string 5</CSDR_DraftNo>
  <CSDR_Id>1</CSDR_Id>
  <CSDR_Id_Encypt>sample string 3</CSDR_Id_Encypt>
  <CSDR_Inactive>65</CSDR_Inactive>
  <CSDR_Note>sample string 2</CSDR_Note>
  <CSDR_SK_Id_FK>4</CSDR_SK_Id_FK>
  <CSDR_TS>2019-10-23T03:06:25.7404544+05:30</CSDR_TS>
  <CSDR_TS_Edited_Uid_FK>11</CSDR_TS_Edited_Uid_FK>
  <CSDR_TS_LastEdited>2019-10-23T03:06:25.7414402+05:30</CSDR_TS_LastEdited>
  <CSDR_Type>sample string 12</CSDR_Type>
  <CSDR_UserId_FK>7</CSDR_UserId_FK>
  <CS_MobileNo>sample string 17</CS_MobileNo>
  <CS_Name>sample string 16</CS_Name>
  <CounterSalesList>
    <CounterSalesListSaveModels>
      <ActualCustomerPrice>16</ActualCustomerPrice>
      <Barcode>sample string 7</Barcode>
      <CustomerPrice>14</CustomerPrice>
      <DiscountPercentage>19</DiscountPercentage>
      <GST_Percentage>18</GST_Percentage>
      <MaxQty>13</MaxQty>
      <MaximumPrice>15</MaximumPrice>
      <PR_VGSL_BUY_PRICE>20</PR_VGSL_BUY_PRICE>
      <PackageImage>sample string 6</PackageImage>
      <PackagingCode>sample string 4</PackagingCode>
      <PackagingId>3</PackagingId>
      <ProductId>1</ProductId>
      <ProductImage>sample string 5</ProductImage>
      <ProductName>sample string 2</ProductName>
      <Qty>12</Qty>
      <Size>sample string 8</Size>
      <StockistCustomerPrice>17</StockistCustomerPrice>
      <StokistDealList>
        <StockistDealsDetailsModels>
          <CustomerPrice>6</CustomerPrice>
          <PackSize>sample string 3</PackSize>
          <PackType>sample string 5</PackType>
          <ProductCode>sample string 2</ProductCode>
          <ProductName>sample string 1</ProductName>
          <SDD_DealType>sample string 12</SDD_DealType>
          <SDD_DealValue>11</SDD_DealValue>
          <SDD_Id>7</SDD_Id>
          <SDD_Min_Quantity>13</SDD_Min_Quantity>
          <SDD_PA_Id_FK>9</SDD_PA_Id_FK>
          <SDD_P_Id_FK>10</SDD_P_Id_FK>
          <SDD_SD_Id_FK>8</SDD_SD_Id_FK>
          <UOM>sample string 4</UOM>
        </StockistDealsDetailsModels>
        <StockistDealsDetailsModels>
          <CustomerPrice>6</CustomerPrice>
          <PackSize>sample string 3</PackSize>
          <PackType>sample string 5</PackType>
          <ProductCode>sample string 2</ProductCode>
          <ProductName>sample string 1</ProductName>
          <SDD_DealType>sample string 12</SDD_DealType>
          <SDD_DealValue>11</SDD_DealValue>
          <SDD_Id>7</SDD_Id>
          <SDD_Min_Quantity>13</SDD_Min_Quantity>
          <SDD_PA_Id_FK>9</SDD_PA_Id_FK>
          <SDD_P_Id_FK>10</SDD_P_Id_FK>
          <SDD_SD_Id_FK>8</SDD_SD_Id_FK>
          <UOM>sample string 4</UOM>
        </StockistDealsDetailsModels>
      </StokistDealList>
      <Type>sample string 10</Type>
      <UOM>sample string 9</UOM>
      <discount>11</discount>
    </CounterSalesListSaveModels>
    <CounterSalesListSaveModels>
      <ActualCustomerPrice>16</ActualCustomerPrice>
      <Barcode>sample string 7</Barcode>
      <CustomerPrice>14</CustomerPrice>
      <DiscountPercentage>19</DiscountPercentage>
      <GST_Percentage>18</GST_Percentage>
      <MaxQty>13</MaxQty>
      <MaximumPrice>15</MaximumPrice>
      <PR_VGSL_BUY_PRICE>20</PR_VGSL_BUY_PRICE>
      <PackageImage>sample string 6</PackageImage>
      <PackagingCode>sample string 4</PackagingCode>
      <PackagingId>3</PackagingId>
      <ProductId>1</ProductId>
      <ProductImage>sample string 5</ProductImage>
      <ProductName>sample string 2</ProductName>
      <Qty>12</Qty>
      <Size>sample string 8</Size>
      <StockistCustomerPrice>17</StockistCustomerPrice>
      <StokistDealList>
        <StockistDealsDetailsModels>
          <CustomerPrice>6</CustomerPrice>
          <PackSize>sample string 3</PackSize>
          <PackType>sample string 5</PackType>
          <ProductCode>sample string 2</ProductCode>
          <ProductName>sample string 1</ProductName>
          <SDD_DealType>sample string 12</SDD_DealType>
          <SDD_DealValue>11</SDD_DealValue>
          <SDD_Id>7</SDD_Id>
          <SDD_Min_Quantity>13</SDD_Min_Quantity>
          <SDD_PA_Id_FK>9</SDD_PA_Id_FK>
          <SDD_P_Id_FK>10</SDD_P_Id_FK>
          <SDD_SD_Id_FK>8</SDD_SD_Id_FK>
          <UOM>sample string 4</UOM>
        </StockistDealsDetailsModels>
        <StockistDealsDetailsModels>
          <CustomerPrice>6</CustomerPrice>
          <PackSize>sample string 3</PackSize>
          <PackType>sample string 5</PackType>
          <ProductCode>sample string 2</ProductCode>
          <ProductName>sample string 1</ProductName>
          <SDD_DealType>sample string 12</SDD_DealType>
          <SDD_DealValue>11</SDD_DealValue>
          <SDD_Id>7</SDD_Id>
          <SDD_Min_Quantity>13</SDD_Min_Quantity>
          <SDD_PA_Id_FK>9</SDD_PA_Id_FK>
          <SDD_P_Id_FK>10</SDD_P_Id_FK>
          <SDD_SD_Id_FK>8</SDD_SD_Id_FK>
          <UOM>sample string 4</UOM>
        </StockistDealsDetailsModels>
      </StokistDealList>
      <Type>sample string 10</Type>
      <UOM>sample string 9</UOM>
      <discount>11</discount>
    </CounterSalesListSaveModels>
  </CounterSalesList>
  <DiscountPercentage>13</DiscountPercentage>
  <StockistDetails>
    <AssociateToWarehouse>sample string 14</AssociateToWarehouse>
    <ChainSpeedSearch xmlns:d3p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
      <d3p1:C_Code>sample string 2</d3p1:C_Code>
      <d3p1:C_Id>1</d3p1:C_Id>
      <d3p1:C_Name>sample string 3</d3p1:C_Name>
    </ChainSpeedSearch>
    <DistrictSpeedSearch xmlns:d3p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
      <d3p1:DI_District>sample string 3</d3p1:DI_District>
      <d3p1:DI_DistrictId>sample string 2</d3p1:DI_DistrictId>
      <d3p1:DI_Id>1</d3p1:DI_Id>
    </DistrictSpeedSearch>
    <SK_Code>sample string 2</SK_Code>
    <SK_Contract>sample string 13</SK_Contract>
    <SK_Country>sample string 4</SK_Country>
    <SK_DoorNo>sample string 6</SK_DoorNo>
    <SK_Email>sample string 9</SK_Email>
    <SK_Id>1</SK_Id>
    <SK_Inactive>65</SK_Inactive>
    <SK_MobileNo>8</SK_MobileNo>
    <SK_Name>sample string 3</SK_Name>
    <SK_Note>sample string 10</SK_Note>
    <SK_PinCode>7</SK_PinCode>
    <SK_STNo>sample string 12</SK_STNo>
    <SK_Street>sample string 5</SK_Street>
    <SK_TINNo>sample string 11</SK_TINNo>
    <SK_TS>2019-10-23T03:06:25.7404544+05:30</SK_TS>
    <SK_TS_Edited_Uid_FK>19</SK_TS_Edited_Uid_FK>
    <SK_TS_LastEdited>2019-10-23T03:06:25.7404544+05:30</SK_TS_LastEdited>
    <SK_UserId_FK>15</SK_UserId_FK>
    <SelectedPartners>
      <StockistPartnerList>
        <IsPreviouslySelected>true</IsPreviouslySelected>
        <IsSelected>true</IsSelected>
        <P_Id>1</P_Id>
        <P_Partner_Name>sample string 2</P_Partner_Name>
      </StockistPartnerList>
      <StockistPartnerList>
        <IsPreviouslySelected>true</IsPreviouslySelected>
        <IsSelected>true</IsSelected>
        <P_Id>1</P_Id>
        <P_Partner_Name>sample string 2</P_Partner_Name>
      </StockistPartnerList>
    </SelectedPartners>
    <SelectedWarehouse xmlns:d3p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
      <d3p1:WH_Code>sample string 2</d3p1:WH_Code>
      <d3p1:WH_Id>1</d3p1:WH_Id>
      <d3p1:WH_Name>sample string 3</d3p1:WH_Name>
    </SelectedWarehouse>
    <StateSpeedSearch xmlns:d3p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
      <d3p1:ST_Id>1</d3p1:ST_Id>
      <d3p1:ST_StateID>sample string 2</d3p1:ST_StateID>
      <d3p1:ST_StateName>sample string 3</d3p1:ST_StateName>
    </StateSpeedSearch>
    <TalukSpeedSearch xmlns:d3p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
      <d3p1:TA_Id>1</d3p1:TA_Id>
      <d3p1:TA_Taluk>sample string 3</d3p1:TA_Taluk>
      <d3p1:TA_TalukId>sample string 2</d3p1:TA_TalukId>
    </TalukSpeedSearch>
    <ToaddressForstockTransfer>sample string 21</ToaddressForstockTransfer>
    <TotalAmount>20</TotalAmount>
    <VillageSpeedSearch xmlns:d3p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
      <d3p1:VI_Id>1</d3p1:VI_Id>
      <d3p1:VI_Village>sample string 3</d3p1:VI_Village>
      <d3p1:VI_VillageId>sample string 2</d3p1:VI_VillageId>
    </VillageSpeedSearch>
  </StockistDetails>
  <TotalSavings>15</TotalSavings>
  <TotalSavingsPerProduct>14</TotalSavingsPerProduct>
</CounterSalesDraftsModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.