POST api/Sales/InsertUpdateSalesRice?vUserID={vUserID}&IsOpen={IsOpen}&IsWeightWise={IsWeightWise}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vUserID | integer |
Required |
|
| IsOpen | boolean |
Required |
|
| IsWeightWise | boolean |
Required |
Body Parameters
SalesRice| Name | Description | Type | Additional information |
|---|---|---|---|
| ModeOfPayment | string |
None. |
|
| SaleID | integer |
None. |
|
| SaleDate | date |
None. |
|
| DoNo | string |
None. |
|
| ContractId | integer |
None. |
|
| BuyerID | integer |
None. |
|
| DeliveredTo | string |
None. |
|
| BrokerID | integer |
None. |
|
| BrokeragePerBag | string |
None. |
|
| NOofVehicle | decimal number |
None. |
|
| Narration | string |
None. |
|
| GrossVal | decimal number |
None. |
|
| OtherExp | decimal number |
None. |
|
| Freight | decimal number |
None. |
|
| WBCharge | decimal number |
None. |
|
| PhoneCharge | decimal number |
None. |
|
| AnalysisCharges | decimal number |
None. |
|
| LoadingCharges | decimal number |
None. |
|
| MarketComm | decimal number |
None. |
|
| PreBalance | decimal number |
None. |
|
| TotalReceivable | decimal number |
None. |
|
| ReceivedAmount | decimal number |
None. |
|
| Balance | decimal number |
None. |
|
| IsAdvanceSale | boolean |
None. |
|
| WBMinus | boolean |
None. |
|
| PhChargesMinus | boolean |
None. |
|
| AChargesMinus | boolean |
None. |
|
| LoadChargesMinus | boolean |
None. |
|
| MinCommMinus | boolean |
None. |
|
| BrokerageVal | decimal number |
None. |
|
| Brokerage | decimal number |
None. |
|
| PreviouseBalType | string |
None. |
|
| BrokeryCommision | decimal number |
None. |
|
| BrokeryCommPlus | boolean |
None. |
|
| Mazdoori | decimal number |
None. |
|
| MazdooriPlus | boolean |
None. |
|
| DueDate | date |
None. |
|
| NetValue | decimal number |
None. |
|
| IsBrokerageToParty | boolean |
None. |
|
| IncludeBrokerageAmount | boolean |
None. |
|
| StitchingCharges | decimal number |
None. |
|
| StitchingChargesMinus | boolean |
None. |
|
| BagFilling | decimal number |
None. |
|
| BagFillingMinus | boolean |
None. |
|
| PromiseID | integer |
None. |
|
| IsPromise | boolean |
None. |
|
| IsFreightToSale | boolean |
None. |
|
| OtherExpMinus | boolean |
None. |
|
| FreightMinus | boolean |
None. |
|
| CherityCondition | string |
None. |
|
| CherityMinus | boolean |
None. |
|
| Cherity | decimal number |
None. |
|
| CherityAmount | decimal number |
None. |
|
| StockWeight | decimal number |
None. |
|
| BuyerAccID | string |
None. |
|
| BuyerName | string |
None. |
|
| BrokerAccID | string |
None. |
|
| BrokerName | string |
None. |
|
| ContractedQty | string |
None. |
|
| RemQty | string |
None. |
|
| CropID | string |
None. |
|
| CommodityID | string |
None. |
|
| Rate | string |
None. |
|
| DueDateCon | string |
None. |
|
| PrevDrCr | string |
None. |
|
| IsPercentage | boolean |
None. |
|
| IsPerBag | boolean |
None. |
|
| IsPerMound | boolean |
None. |
|
| IsPerVeh | boolean |
None. |
|
| IsPer100KG | boolean |
None. |
|
| CharityPersent | boolean |
None. |
|
| CharityPerMnd | boolean |
None. |
|
| NetValueOnly | boolean |
None. |
|
| PromiseIDOpen | integer |
None. |
|
| ListBody | Collection of SaleRiceBody |
None. |
|
| ListStock | Collection of CurrentStockGrid |
None. |
Request Formats
application/json, text/json
Sample:
{
"ModeOfPayment": "sample string 1",
"SaleID": 2,
"SaleDate": "2025-12-11T01:02:53.4956623-08:00",
"DoNo": "sample string 4",
"ContractId": 5,
"BuyerID": 6,
"DeliveredTo": "sample string 7",
"BrokerID": 8,
"BrokeragePerBag": "sample string 9",
"NOofVehicle": 10.0,
"Narration": "sample string 11",
"GrossVal": 12.0,
"OtherExp": 13.0,
"Freight": 14.0,
"WBCharge": 15.0,
"PhoneCharge": 16.0,
"AnalysisCharges": 17.0,
"LoadingCharges": 18.0,
"MarketComm": 19.0,
"PreBalance": 20.0,
"TotalReceivable": 21.0,
"ReceivedAmount": 22.0,
"Balance": 23.0,
"IsAdvanceSale": true,
"WBMinus": true,
"PhChargesMinus": true,
"AChargesMinus": true,
"LoadChargesMinus": true,
"MinCommMinus": true,
"BrokerageVal": 30.0,
"Brokerage": 31.0,
"PreviouseBalType": "sample string 32",
"BrokeryCommision": 33.0,
"BrokeryCommPlus": true,
"Mazdoori": 35.0,
"MazdooriPlus": true,
"DueDate": "2025-12-11T01:02:53.4956623-08:00",
"NetValue": 38.0,
"IsBrokerageToParty": true,
"IncludeBrokerageAmount": true,
"StitchingCharges": 41.0,
"StitchingChargesMinus": true,
"BagFilling": 43.0,
"BagFillingMinus": true,
"PromiseID": 45,
"IsPromise": true,
"IsFreightToSale": true,
"OtherExpMinus": true,
"FreightMinus": true,
"CherityCondition": "sample string 50",
"CherityMinus": true,
"Cherity": 52.0,
"CherityAmount": 53.0,
"StockWeight": 54.0,
"BuyerAccID": "sample string 55",
"BuyerName": "sample string 56",
"BrokerAccID": "sample string 57",
"BrokerName": "sample string 58",
"ContractedQty": "sample string 59",
"RemQty": "sample string 60",
"CropID": "sample string 61",
"CommodityID": "sample string 62",
"Rate": "sample string 63",
"DueDateCon": "sample string 64",
"PrevDrCr": "sample string 65",
"IsPercentage": true,
"IsPerBag": true,
"IsPerMound": true,
"IsPerVeh": true,
"IsPer100KG": true,
"CharityPersent": true,
"CharityPerMnd": true,
"NetValueOnly": true,
"PromiseIDOpen": 74,
"ListBody": [
{
"SerialNo": 1,
"SaleID": 2,
"CommodityId": 3,
"CommodityClassID": 4,
"BagTypeID": 5,
"BagsClassID": 6,
"TQty": 7.0,
"Qty": 8.0,
"Bags": 9.0,
"Deduction": 10.0,
"Moisture": 11.0,
"Net": 12.0,
"RateBeforeDed": 13.0,
"RateDeduction": 14.0,
"Rate": 15.0,
"BagRate": 16.0,
"Range": "sample string 17",
"Condition": "sample string 18",
"Value": 19.0,
"BagVal": 20.0,
"TotalValue": 21.0,
"VehicalNo": "sample string 22",
"BiltyNo": "sample string 23",
"GatePassNo": "sample string 24",
"HeapNo": 25,
"Heap": "sample string 26",
"Excess": 27.0,
"IsExcess": true,
"StockWeight": 29.0,
"UnitName": "sample string 30",
"DamageRange": "sample string 31",
"DamageCondition": "sample string 32",
"DamageValue": 33.0,
"Shortage": 34.0,
"DeliverTo": "sample string 35",
"CommodityClassName": "sample string 36",
"CommodityName": "sample string 37",
"BagType": "sample string 38",
"BagClass": "sample string 39",
"GrossVal": 40.0,
"BrokenValue": 41.0,
"GrossWeight": 42.0,
"UnitWeightKg": 43.0,
"RateUnitID": 44,
"IsSelected": true,
"GatePassDate": "sample string 46",
"LotNo": "sample string 47",
"ListBodyBags": [
{
"BagGatePassId": 1,
"BagTypeID": 2,
"BagsClassID": 3,
"BagsClass": "sample string 4",
"BagsType": "sample string 5",
"Quantity": 6.0,
"Bharti": 7.0,
"BagsRate": 8.0,
"BagTotalValue": 9.0
},
{
"BagGatePassId": 1,
"BagTypeID": 2,
"BagsClassID": 3,
"BagsClass": "sample string 4",
"BagsType": "sample string 5",
"Quantity": 6.0,
"Bharti": 7.0,
"BagsRate": 8.0,
"BagTotalValue": 9.0
}
]
},
{
"SerialNo": 1,
"SaleID": 2,
"CommodityId": 3,
"CommodityClassID": 4,
"BagTypeID": 5,
"BagsClassID": 6,
"TQty": 7.0,
"Qty": 8.0,
"Bags": 9.0,
"Deduction": 10.0,
"Moisture": 11.0,
"Net": 12.0,
"RateBeforeDed": 13.0,
"RateDeduction": 14.0,
"Rate": 15.0,
"BagRate": 16.0,
"Range": "sample string 17",
"Condition": "sample string 18",
"Value": 19.0,
"BagVal": 20.0,
"TotalValue": 21.0,
"VehicalNo": "sample string 22",
"BiltyNo": "sample string 23",
"GatePassNo": "sample string 24",
"HeapNo": 25,
"Heap": "sample string 26",
"Excess": 27.0,
"IsExcess": true,
"StockWeight": 29.0,
"UnitName": "sample string 30",
"DamageRange": "sample string 31",
"DamageCondition": "sample string 32",
"DamageValue": 33.0,
"Shortage": 34.0,
"DeliverTo": "sample string 35",
"CommodityClassName": "sample string 36",
"CommodityName": "sample string 37",
"BagType": "sample string 38",
"BagClass": "sample string 39",
"GrossVal": 40.0,
"BrokenValue": 41.0,
"GrossWeight": 42.0,
"UnitWeightKg": 43.0,
"RateUnitID": 44,
"IsSelected": true,
"GatePassDate": "sample string 46",
"LotNo": "sample string 47",
"ListBodyBags": [
{
"BagGatePassId": 1,
"BagTypeID": 2,
"BagsClassID": 3,
"BagsClass": "sample string 4",
"BagsType": "sample string 5",
"Quantity": 6.0,
"Bharti": 7.0,
"BagsRate": 8.0,
"BagTotalValue": 9.0
},
{
"BagGatePassId": 1,
"BagTypeID": 2,
"BagsClassID": 3,
"BagsClass": "sample string 4",
"BagsType": "sample string 5",
"Quantity": 6.0,
"Bharti": 7.0,
"BagsRate": 8.0,
"BagTotalValue": 9.0
}
]
}
],
"ListStock": [
{
"UnitName": "sample string 1",
"TotalWeight": 2.0,
"NetWeight": 3.0
},
{
"UnitName": "sample string 1",
"TotalWeight": 2.0,
"NetWeight": 3.0
}
]
}
application/xml, text/xml
Sample:
<SalesRice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
<AChargesMinus>true</AChargesMinus>
<AnalysisCharges>17</AnalysisCharges>
<BagFilling>43</BagFilling>
<BagFillingMinus>true</BagFillingMinus>
<Balance>23</Balance>
<BrokerAccID>sample string 57</BrokerAccID>
<BrokerID>8</BrokerID>
<BrokerName>sample string 58</BrokerName>
<Brokerage>31</Brokerage>
<BrokeragePerBag>sample string 9</BrokeragePerBag>
<BrokerageVal>30</BrokerageVal>
<BrokeryCommPlus>true</BrokeryCommPlus>
<BrokeryCommision>33</BrokeryCommision>
<BuyerAccID>sample string 55</BuyerAccID>
<BuyerID>6</BuyerID>
<BuyerName>sample string 56</BuyerName>
<CharityPerMnd>true</CharityPerMnd>
<CharityPersent>true</CharityPersent>
<Cherity>52</Cherity>
<CherityAmount>53</CherityAmount>
<CherityCondition>sample string 50</CherityCondition>
<CherityMinus>true</CherityMinus>
<CommodityID>sample string 62</CommodityID>
<ContractId>5</ContractId>
<ContractedQty>sample string 59</ContractedQty>
<CropID>sample string 61</CropID>
<DeliveredTo>sample string 7</DeliveredTo>
<DoNo>sample string 4</DoNo>
<DueDate>2025-12-11T01:02:53.4956623-08:00</DueDate>
<DueDateCon>sample string 64</DueDateCon>
<Freight>14</Freight>
<FreightMinus>true</FreightMinus>
<GrossVal>12</GrossVal>
<IncludeBrokerageAmount>true</IncludeBrokerageAmount>
<IsAdvanceSale>true</IsAdvanceSale>
<IsBrokerageToParty>true</IsBrokerageToParty>
<IsFreightToSale>true</IsFreightToSale>
<IsPer100KG>true</IsPer100KG>
<IsPerBag>true</IsPerBag>
<IsPerMound>true</IsPerMound>
<IsPerVeh>true</IsPerVeh>
<IsPercentage>true</IsPercentage>
<IsPromise>true</IsPromise>
<ListBody>
<SaleRiceBody>
<BagClass>sample string 39</BagClass>
<BagRate>16</BagRate>
<BagType>sample string 38</BagType>
<BagTypeID>5</BagTypeID>
<BagVal>20</BagVal>
<Bags>9</Bags>
<BagsClassID>6</BagsClassID>
<BiltyNo>sample string 23</BiltyNo>
<BrokenValue>41</BrokenValue>
<CommodityClassID>4</CommodityClassID>
<CommodityClassName>sample string 36</CommodityClassName>
<CommodityId>3</CommodityId>
<CommodityName>sample string 37</CommodityName>
<Condition>sample string 18</Condition>
<DamageCondition>sample string 32</DamageCondition>
<DamageRange>sample string 31</DamageRange>
<DamageValue>33</DamageValue>
<Deduction>10</Deduction>
<DeliverTo>sample string 35</DeliverTo>
<Excess>27</Excess>
<GatePassDate>sample string 46</GatePassDate>
<GatePassNo>sample string 24</GatePassNo>
<GrossVal>40</GrossVal>
<GrossWeight>42</GrossWeight>
<Heap>sample string 26</Heap>
<HeapNo>25</HeapNo>
<IsExcess>true</IsExcess>
<IsSelected>true</IsSelected>
<ListBodyBags>
<SaleRiceBodyBags>
<BagGatePassId>1</BagGatePassId>
<BagTotalValue>9</BagTotalValue>
<BagTypeID>2</BagTypeID>
<BagsClass>sample string 4</BagsClass>
<BagsClassID>3</BagsClassID>
<BagsRate>8</BagsRate>
<BagsType>sample string 5</BagsType>
<Bharti>7</Bharti>
<Quantity>6</Quantity>
</SaleRiceBodyBags>
<SaleRiceBodyBags>
<BagGatePassId>1</BagGatePassId>
<BagTotalValue>9</BagTotalValue>
<BagTypeID>2</BagTypeID>
<BagsClass>sample string 4</BagsClass>
<BagsClassID>3</BagsClassID>
<BagsRate>8</BagsRate>
<BagsType>sample string 5</BagsType>
<Bharti>7</Bharti>
<Quantity>6</Quantity>
</SaleRiceBodyBags>
</ListBodyBags>
<LotNo>sample string 47</LotNo>
<Moisture>11</Moisture>
<Net>12</Net>
<Qty>8</Qty>
<Range>sample string 17</Range>
<Rate>15</Rate>
<RateBeforeDed>13</RateBeforeDed>
<RateDeduction>14</RateDeduction>
<RateUnitID>44</RateUnitID>
<SaleID>2</SaleID>
<SerialNo>1</SerialNo>
<Shortage>34</Shortage>
<StockWeight>29</StockWeight>
<TQty>7</TQty>
<TotalValue>21</TotalValue>
<UnitName>sample string 30</UnitName>
<UnitWeightKg>43</UnitWeightKg>
<Value>19</Value>
<VehicalNo>sample string 22</VehicalNo>
</SaleRiceBody>
<SaleRiceBody>
<BagClass>sample string 39</BagClass>
<BagRate>16</BagRate>
<BagType>sample string 38</BagType>
<BagTypeID>5</BagTypeID>
<BagVal>20</BagVal>
<Bags>9</Bags>
<BagsClassID>6</BagsClassID>
<BiltyNo>sample string 23</BiltyNo>
<BrokenValue>41</BrokenValue>
<CommodityClassID>4</CommodityClassID>
<CommodityClassName>sample string 36</CommodityClassName>
<CommodityId>3</CommodityId>
<CommodityName>sample string 37</CommodityName>
<Condition>sample string 18</Condition>
<DamageCondition>sample string 32</DamageCondition>
<DamageRange>sample string 31</DamageRange>
<DamageValue>33</DamageValue>
<Deduction>10</Deduction>
<DeliverTo>sample string 35</DeliverTo>
<Excess>27</Excess>
<GatePassDate>sample string 46</GatePassDate>
<GatePassNo>sample string 24</GatePassNo>
<GrossVal>40</GrossVal>
<GrossWeight>42</GrossWeight>
<Heap>sample string 26</Heap>
<HeapNo>25</HeapNo>
<IsExcess>true</IsExcess>
<IsSelected>true</IsSelected>
<ListBodyBags>
<SaleRiceBodyBags>
<BagGatePassId>1</BagGatePassId>
<BagTotalValue>9</BagTotalValue>
<BagTypeID>2</BagTypeID>
<BagsClass>sample string 4</BagsClass>
<BagsClassID>3</BagsClassID>
<BagsRate>8</BagsRate>
<BagsType>sample string 5</BagsType>
<Bharti>7</Bharti>
<Quantity>6</Quantity>
</SaleRiceBodyBags>
<SaleRiceBodyBags>
<BagGatePassId>1</BagGatePassId>
<BagTotalValue>9</BagTotalValue>
<BagTypeID>2</BagTypeID>
<BagsClass>sample string 4</BagsClass>
<BagsClassID>3</BagsClassID>
<BagsRate>8</BagsRate>
<BagsType>sample string 5</BagsType>
<Bharti>7</Bharti>
<Quantity>6</Quantity>
</SaleRiceBodyBags>
</ListBodyBags>
<LotNo>sample string 47</LotNo>
<Moisture>11</Moisture>
<Net>12</Net>
<Qty>8</Qty>
<Range>sample string 17</Range>
<Rate>15</Rate>
<RateBeforeDed>13</RateBeforeDed>
<RateDeduction>14</RateDeduction>
<RateUnitID>44</RateUnitID>
<SaleID>2</SaleID>
<SerialNo>1</SerialNo>
<Shortage>34</Shortage>
<StockWeight>29</StockWeight>
<TQty>7</TQty>
<TotalValue>21</TotalValue>
<UnitName>sample string 30</UnitName>
<UnitWeightKg>43</UnitWeightKg>
<Value>19</Value>
<VehicalNo>sample string 22</VehicalNo>
</SaleRiceBody>
</ListBody>
<ListStock>
<CurrentStockGrid>
<NetWeight>3</NetWeight>
<TotalWeight>2</TotalWeight>
<UnitName>sample string 1</UnitName>
</CurrentStockGrid>
<CurrentStockGrid>
<NetWeight>3</NetWeight>
<TotalWeight>2</TotalWeight>
<UnitName>sample string 1</UnitName>
</CurrentStockGrid>
</ListStock>
<LoadChargesMinus>true</LoadChargesMinus>
<LoadingCharges>18</LoadingCharges>
<MarketComm>19</MarketComm>
<Mazdoori>35</Mazdoori>
<MazdooriPlus>true</MazdooriPlus>
<MinCommMinus>true</MinCommMinus>
<ModeOfPayment>sample string 1</ModeOfPayment>
<NOofVehicle>10</NOofVehicle>
<Narration>sample string 11</Narration>
<NetValue>38</NetValue>
<NetValueOnly>true</NetValueOnly>
<OtherExp>13</OtherExp>
<OtherExpMinus>true</OtherExpMinus>
<PhChargesMinus>true</PhChargesMinus>
<PhoneCharge>16</PhoneCharge>
<PreBalance>20</PreBalance>
<PrevDrCr>sample string 65</PrevDrCr>
<PreviouseBalType>sample string 32</PreviouseBalType>
<PromiseID>45</PromiseID>
<PromiseIDOpen>74</PromiseIDOpen>
<Rate>sample string 63</Rate>
<ReceivedAmount>22</ReceivedAmount>
<RemQty>sample string 60</RemQty>
<SaleDate>2025-12-11T01:02:53.4956623-08:00</SaleDate>
<SaleID>2</SaleID>
<StitchingCharges>41</StitchingCharges>
<StitchingChargesMinus>true</StitchingChargesMinus>
<StockWeight>54</StockWeight>
<TotalReceivable>21</TotalReceivable>
<WBCharge>15</WBCharge>
<WBMinus>true</WBMinus>
</SalesRice>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |