POST api/CounterSales/SaveAsDraft
Request Information
URI Parameters
None.
Body Parameters
CounterSalesSaveModels| Name | Description | Type | Additional information |
|---|---|---|---|
| CS_Name | string |
None. |
|
| CS_Email | string |
None. |
|
| CS_MobileNo | string |
None. |
|
| CS_Address | string |
None. |
|
| CS_CouponCode | string |
Max length: 10 |
|
| CS_StoreCoupons_Id_FK | integer |
None. |
|
| CS_TotalSavings | decimal number |
None. |
|
| CounterSalesList | Collection of CounterSalesListSaveModels |
Required |
|
| CashReceivedList | Collection of CounterSalesDenominationModels |
None. |
|
| CashReturnedList | Collection of CounterSalesReturnedDenominationModels |
None. |
|
| CS_UTRNO | string |
None. |
|
| PaymentMode | string |
Required |
|
| CS_ReceivedAmount | decimal number |
None. |
|
| CS_ReturnedAmount | decimal number |
None. |
|
| CS_D_ReceivedAmount | decimal number |
None. |
|
| CS_D_ReturnedAmount | decimal number |
None. |
|
| CSDR_Note | string |
None. |
|
| CSDR_Id | integer |
None. |
|
| CSDR_Type | string |
None. |
|
| CS_DiscountPercentage | decimal number |
None. |
|
| TotalSavingsPerProduct | decimal number |
None. |
|
| TotalSavings | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"CS_Name": "sample string 1",
"CS_Email": "sample string 2",
"CS_MobileNo": "sample string 3",
"CS_Address": "sample string 4",
"CS_CouponCode": "sample string 5",
"CS_StoreCoupons_Id_FK": 1,
"CS_TotalSavings": 6.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
}
]
}
],
"CashReceivedList": [
{
"DIN_Value": 1,
"No_Of_Notes": 2
},
{
"DIN_Value": 1,
"No_Of_Notes": 2
}
],
"CashReturnedList": [
{
"DIN_Value": 1,
"No_Of_Notes_Returned": 2
},
{
"DIN_Value": 1,
"No_Of_Notes_Returned": 2
}
],
"CS_UTRNO": "sample string 7",
"PaymentMode": "sample string 8",
"CS_ReceivedAmount": 1.0,
"CS_ReturnedAmount": 1.0,
"CS_D_ReceivedAmount": 1.0,
"CS_D_ReturnedAmount": 1.0,
"CSDR_Note": "sample string 9",
"CSDR_Id": 1,
"CSDR_Type": "sample string 10",
"CS_DiscountPercentage": 11.0,
"TotalSavingsPerProduct": 12.0,
"TotalSavings": 13.0
}
application/xml, text/xml
Sample:
<CounterSalesSaveModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
<CSDR_Id>1</CSDR_Id>
<CSDR_Note>sample string 9</CSDR_Note>
<CSDR_Type>sample string 10</CSDR_Type>
<CS_Address>sample string 4</CS_Address>
<CS_CouponCode>sample string 5</CS_CouponCode>
<CS_D_ReceivedAmount>1</CS_D_ReceivedAmount>
<CS_D_ReturnedAmount>1</CS_D_ReturnedAmount>
<CS_DiscountPercentage>11</CS_DiscountPercentage>
<CS_Email>sample string 2</CS_Email>
<CS_MobileNo>sample string 3</CS_MobileNo>
<CS_Name>sample string 1</CS_Name>
<CS_ReceivedAmount>1</CS_ReceivedAmount>
<CS_ReturnedAmount>1</CS_ReturnedAmount>
<CS_StoreCoupons_Id_FK>1</CS_StoreCoupons_Id_FK>
<CS_TotalSavings>6</CS_TotalSavings>
<CS_UTRNO>sample string 7</CS_UTRNO>
<CashReceivedList>
<CounterSalesDenominationModels>
<DIN_Value>1</DIN_Value>
<No_Of_Notes>2</No_Of_Notes>
</CounterSalesDenominationModels>
<CounterSalesDenominationModels>
<DIN_Value>1</DIN_Value>
<No_Of_Notes>2</No_Of_Notes>
</CounterSalesDenominationModels>
</CashReceivedList>
<CashReturnedList>
<CounterSalesReturnedDenominationModels>
<DIN_Value>1</DIN_Value>
<No_Of_Notes_Returned>2</No_Of_Notes_Returned>
</CounterSalesReturnedDenominationModels>
<CounterSalesReturnedDenominationModels>
<DIN_Value>1</DIN_Value>
<No_Of_Notes_Returned>2</No_Of_Notes_Returned>
</CounterSalesReturnedDenominationModels>
</CashReturnedList>
<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>
<PaymentMode>sample string 8</PaymentMode>
<TotalSavings>13</TotalSavings>
<TotalSavingsPerProduct>12</TotalSavingsPerProduct>
</CounterSalesSaveModels>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.