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 |
|
| 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. |
|
| CSDR_Note | string |
None. |
|
| CSDR_Id | integer |
None. |
|
| CSDR_Type | string |
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",
"CounterSalesList": [
{
"ProductId": 1,
"ProductName": "sample string 2",
"PackagingId": 3,
"PackagingCode": "sample string 4",
"Size": "sample string 5",
"UOM": "sample string 6",
"Type": "sample string 7",
"Qty": 8,
"MaxQty": 9.0,
"CustomerPrice": 10.0,
"MaximumPrice": 11.0,
"GST_Percentage": 12.0
},
{
"ProductId": 1,
"ProductName": "sample string 2",
"PackagingId": 3,
"PackagingCode": "sample string 4",
"Size": "sample string 5",
"UOM": "sample string 6",
"Type": "sample string 7",
"Qty": 8,
"MaxQty": 9.0,
"CustomerPrice": 10.0,
"MaximumPrice": 11.0,
"GST_Percentage": 12.0
}
],
"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 6",
"PaymentMode": "sample string 7",
"CS_ReceivedAmount": 1.0,
"CS_ReturnedAmount": 1.0,
"CSDR_Note": "sample string 8",
"CSDR_Id": 1,
"CSDR_Type": "sample string 9"
}
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 8</CSDR_Note>
<CSDR_Type>sample string 9</CSDR_Type>
<CS_Address>sample string 4</CS_Address>
<CS_CouponCode>sample string 5</CS_CouponCode>
<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_UTRNO>sample string 6</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>
<CustomerPrice>10</CustomerPrice>
<GST_Percentage>12</GST_Percentage>
<MaxQty>9</MaxQty>
<MaximumPrice>11</MaximumPrice>
<PackagingCode>sample string 4</PackagingCode>
<PackagingId>3</PackagingId>
<ProductId>1</ProductId>
<ProductName>sample string 2</ProductName>
<Qty>8</Qty>
<Size>sample string 5</Size>
<Type>sample string 7</Type>
<UOM>sample string 6</UOM>
</CounterSalesListSaveModels>
<CounterSalesListSaveModels>
<CustomerPrice>10</CustomerPrice>
<GST_Percentage>12</GST_Percentage>
<MaxQty>9</MaxQty>
<MaximumPrice>11</MaximumPrice>
<PackagingCode>sample string 4</PackagingCode>
<PackagingId>3</PackagingId>
<ProductId>1</ProductId>
<ProductName>sample string 2</ProductName>
<Qty>8</Qty>
<Size>sample string 5</Size>
<Type>sample string 7</Type>
<UOM>sample string 6</UOM>
</CounterSalesListSaveModels>
</CounterSalesList>
<PaymentMode>sample string 7</PaymentMode>
</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.