POST api/CounterSalesExchange
Request Information
URI Parameters
None.
Body Parameters
CounterSalesExchangeModels| Name | Description | Type | Additional information |
|---|---|---|---|
| CS_Id | integer |
Required |
|
| CounterSalesReturnsDetails | Collection of CounterSalesDetailsModels |
Required |
|
| CounterSalesExchangeDetails | Collection of CounterSalesDetailsModels |
Required |
|
| CashReceivedList | Collection of CounterSalesDenominationModels |
None. |
|
| CashReturnedList | Collection of CounterSalesReturnedDenominationModels |
None. |
|
| CS_UTRNO | string |
None. |
|
| PaymentMode | string |
Required |
|
| CS_SK_Id_FK | integer |
None. |
|
| CS_ReceivedAmount | decimal number |
None. |
|
| CS_ReturnedAmount | decimal number |
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,
"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": "2025-12-06T11:18:19.2008217+05:30",
"CSD_Inactive": "A",
"CSD_TS_LastEdited": "2025-12-06T11:18:19.2008217+05:30",
"CSD_TS_Edited_Uid_FK": 17,
"CSD_PR_MaxPrice": 18.0,
"CSD_Stock_Quantity": 19
},
{
"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,
"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": "2025-12-06T11:18:19.2008217+05:30",
"CSD_Inactive": "A",
"CSD_TS_LastEdited": "2025-12-06T11:18:19.2008217+05:30",
"CSD_TS_Edited_Uid_FK": 17,
"CSD_PR_MaxPrice": 18.0,
"CSD_Stock_Quantity": 19
}
],
"CounterSalesExchangeDetails": [
{
"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,
"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": "2025-12-06T11:18:19.2008217+05:30",
"CSD_Inactive": "A",
"CSD_TS_LastEdited": "2025-12-06T11:18:19.2008217+05:30",
"CSD_TS_Edited_Uid_FK": 17,
"CSD_PR_MaxPrice": 18.0,
"CSD_Stock_Quantity": 19
},
{
"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,
"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": "2025-12-06T11:18:19.2008217+05:30",
"CSD_Inactive": "A",
"CSD_TS_LastEdited": "2025-12-06T11:18:19.2008217+05:30",
"CSD_TS_Edited_Uid_FK": 17,
"CSD_PR_MaxPrice": 18.0,
"CSD_Stock_Quantity": 19
}
],
"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 2",
"PaymentMode": "sample string 3",
"CS_SK_Id_FK": 4,
"CS_ReceivedAmount": 1.0,
"CS_ReturnedAmount": 1.0
}
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_ReceivedAmount>1</CS_ReceivedAmount>
<CS_ReturnedAmount>1</CS_ReturnedAmount>
<CS_SK_Id_FK>4</CS_SK_Id_FK>
<CS_UTRNO>sample string 2</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>
<CounterSalesExchangeDetails>
<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>2025-12-06T11:18:19.2008217+05:30</CSD_TS>
<CSD_TS_Edited_Uid_FK>17</CSD_TS_Edited_Uid_FK>
<CSD_TS_LastEdited>2025-12-06T11:18:19.2008217+05:30</CSD_TS_LastEdited>
<CSD_UserId_FK>13</CSD_UserId_FK>
</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>2025-12-06T11:18:19.2008217+05:30</CSD_TS>
<CSD_TS_Edited_Uid_FK>17</CSD_TS_Edited_Uid_FK>
<CSD_TS_LastEdited>2025-12-06T11:18:19.2008217+05:30</CSD_TS_LastEdited>
<CSD_UserId_FK>13</CSD_UserId_FK>
</CounterSalesDetailsModels>
</CounterSalesExchangeDetails>
<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>2025-12-06T11:18:19.2008217+05:30</CSD_TS>
<CSD_TS_Edited_Uid_FK>17</CSD_TS_Edited_Uid_FK>
<CSD_TS_LastEdited>2025-12-06T11:18:19.2008217+05:30</CSD_TS_LastEdited>
<CSD_UserId_FK>13</CSD_UserId_FK>
</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>2025-12-06T11:18:19.2008217+05:30</CSD_TS>
<CSD_TS_Edited_Uid_FK>17</CSD_TS_Edited_Uid_FK>
<CSD_TS_LastEdited>2025-12-06T11:18:19.2008217+05:30</CSD_TS_LastEdited>
<CSD_UserId_FK>13</CSD_UserId_FK>
</CounterSalesDetailsModels>
</CounterSalesReturnsDetails>
<PaymentMode>sample string 3</PaymentMode>
</CounterSalesExchangeModels>
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.