POST api/Sales/SaveRecord?IsOpen={IsOpen}&vUserID={vUserID}&IsDetailInvoice={IsDetailInvoice}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| IsOpen | boolean |
Required |
|
| vUserID | integer |
Required |
|
| IsDetailInvoice | boolean |
Default value is False |
Body Parameters
Sales| Name | Description | Type | Additional information |
|---|---|---|---|
| SalesId | integer |
None. |
|
| SalesDate | date |
None. |
|
| ContractId | integer |
None. |
|
| PartyId | integer |
None. |
|
| BrokerId | integer |
None. |
|
| InvoiceType | string |
None. |
|
| Brokerage | decimal number |
None. |
|
| GrossTotal | decimal number |
None. |
|
| Unloading | decimal number |
None. |
|
| Freight | decimal number |
None. |
|
| Expenses | decimal number |
None. |
|
| ReceivedAmount | decimal number |
None. |
|
| SpecialDiscount | decimal number |
None. |
|
| NetValue | decimal number |
None. |
|
| PreviousDebit | decimal number |
None. |
|
| IsPosted | boolean |
None. |
|
| CashCounterParty | string |
None. |
|
| Narration | string |
None. |
|
| IsAdvanceSale | boolean |
None. |
|
| VehicleWeight | decimal number |
None. |
|
| IsPerBag | boolean |
None. |
|
| LoadingExpMinus | boolean |
None. |
|
| FrieghtMinus | boolean |
None. |
|
| ExpMinus | boolean |
None. |
|
| VehicleID | integer |
None. |
|
| VehicleFrieght | decimal number |
None. |
|
| ProvisonalTexPer | decimal number |
None. |
|
| ProvisonalTexVal | decimal number |
None. |
|
| GatePBSId | integer |
None. |
|
| GatePassId | integer |
None. |
|
| DueDays | integer |
None. |
|
| MarketFee | decimal number |
None. |
|
| BrokeragePer | decimal number |
None. |
|
| IsPer100Kgs | boolean |
None. |
|
| IsPerGross | boolean |
None. |
|
| MarketExpMinus | boolean |
None. |
|
| BrokerageExpMinus | boolean |
None. |
|
| MarketFeeVal | decimal number |
None. |
|
| BrokerageValueExp | decimal number |
None. |
|
| VehicleNo | string |
None. |
|
| MannualGatePassNo | integer |
None. |
|
| BillNo | integer |
None. |
|
| SBUID | integer |
None. |
|
| WHTRatio | decimal number |
None. |
|
| WHTValue | decimal number |
None. |
|
| TTLComDiscValue | decimal number |
None. |
|
| NetValueTaxes | decimal number |
None. |
|
| SootliPer | decimal number |
None. |
|
| SootliTotal | decimal number |
None. |
|
| SootliType | string |
None. |
|
| SootliPlusMinus | string |
None. |
|
| PriceType | string |
None. |
|
| CurrencyId | integer |
None. |
|
| MarkeetFeeType | string |
None. |
|
| PartyMobileNo | string |
None. |
|
| BrokerName | string |
None. |
|
| Quantity | string |
None. |
|
| ContractDate | string |
None. |
|
| ContractRate | string |
None. |
|
| BrokerageCon | string |
None. |
|
| IsSMS | boolean |
None. |
|
| CutRateVisible | boolean |
None. |
|
| CreditLimit | decimal number |
None. |
|
| TotalReceivable | decimal number |
None. |
|
| BuyerName | string |
None. |
|
| VehicleName | string |
None. |
|
| BiltyNo | string |
None. |
|
| CommodityId | integer |
None. |
|
| CropSeasonID | integer |
None. |
|
| WeighmentID | integer |
None. |
|
| IDSBU | integer |
None. |
|
| IDSBUContract | integer |
None. |
|
| CommodityID | integer |
None. |
|
| IDCommodity | integer |
None. |
|
| ListBody | Collection of SalesBody |
None. |
|
| ListStock | Collection of CStockList |
None. |
Request Formats
application/json, text/json
Sample:
{
"SalesId": 1,
"SalesDate": "2026-06-24T03:07:55.4847322-07:00",
"ContractId": 3,
"PartyId": 4,
"BrokerId": 5,
"InvoiceType": "sample string 6",
"Brokerage": 7.0,
"GrossTotal": 8.0,
"Unloading": 9.0,
"Freight": 10.0,
"Expenses": 11.0,
"ReceivedAmount": 12.0,
"SpecialDiscount": 13.0,
"NetValue": 14.0,
"PreviousDebit": 15.0,
"IsPosted": true,
"CashCounterParty": "sample string 17",
"Narration": "sample string 18",
"IsAdvanceSale": true,
"VehicleWeight": 20.0,
"IsPerBag": true,
"LoadingExpMinus": true,
"FrieghtMinus": true,
"ExpMinus": true,
"VehicleID": 25,
"VehicleFrieght": 26.0,
"ProvisonalTexPer": 27.0,
"ProvisonalTexVal": 28.0,
"GatePBSId": 1,
"GatePassId": 1,
"DueDays": 29,
"MarketFee": 30.0,
"BrokeragePer": 31.0,
"IsPer100Kgs": true,
"IsPerGross": true,
"MarketExpMinus": true,
"BrokerageExpMinus": true,
"MarketFeeVal": 36.0,
"BrokerageValueExp": 37.0,
"VehicleNo": "sample string 38",
"MannualGatePassNo": 39,
"BillNo": 40,
"SBUID": 41,
"WHTRatio": 42.0,
"WHTValue": 43.0,
"TTLComDiscValue": 44.0,
"NetValueTaxes": 45.0,
"SootliPer": 46.0,
"SootliTotal": 47.0,
"SootliType": "sample string 48",
"SootliPlusMinus": "sample string 49",
"PriceType": "sample string 50",
"CurrencyId": 51,
"MarkeetFeeType": "sample string 52",
"PartyMobileNo": "sample string 53",
"BrokerName": "sample string 54",
"Quantity": "sample string 55",
"ContractDate": "sample string 56",
"ContractRate": "sample string 57",
"BrokerageCon": "sample string 58",
"IsSMS": true,
"CutRateVisible": true,
"CreditLimit": 61.0,
"TotalReceivable": 62.0,
"BuyerName": "sample string 63",
"VehicleName": "sample string 64",
"BiltyNo": "sample string 65",
"CommodityId": 66,
"CropSeasonID": 67,
"WeighmentID": 68,
"IDSBU": 69,
"IDSBUContract": 70,
"CommodityID": 71,
"IDCommodity": 72,
"ListBody": [
{
"SerialNo": 1,
"SalesId": 2,
"CommodityId": 3,
"BagsTypeId": 4,
"BagsClassId": 5,
"UnitID": 6,
"NoOfBags": 7,
"BagWeight": 8.0,
"TotalWeight": 9.0,
"Rate": 10.0,
"BagRate": 11.0,
"TotalValue": 12.0,
"Cost": 13.0,
"BagsCost": 14.0,
"DepartureID": 15,
"BrokerageRate": 16.0,
"BrokerageAmt": 17.0,
"Qty": 18.0,
"Condition": "sample string 19",
"Deduction": 20.0,
"GrossWeight": 21.0,
"Cut": 22.0,
"CutBaseKg": 23.0,
"FinalRate": 24.0,
"ComDiscRatio": 25.0,
"ComDiscValue": 26.0,
"ContractedQty": 27.0,
"TotalWeightBeforDed": 28.0,
"CommodityName": "sample string 29",
"BagsType": "sample string 30",
"BagsClass": "sample string 31",
"UnitName": "sample string 32",
"ContractMode": "sample string 33",
"LotNo": "sample string 34"
},
{
"SerialNo": 1,
"SalesId": 2,
"CommodityId": 3,
"BagsTypeId": 4,
"BagsClassId": 5,
"UnitID": 6,
"NoOfBags": 7,
"BagWeight": 8.0,
"TotalWeight": 9.0,
"Rate": 10.0,
"BagRate": 11.0,
"TotalValue": 12.0,
"Cost": 13.0,
"BagsCost": 14.0,
"DepartureID": 15,
"BrokerageRate": 16.0,
"BrokerageAmt": 17.0,
"Qty": 18.0,
"Condition": "sample string 19",
"Deduction": 20.0,
"GrossWeight": 21.0,
"Cut": 22.0,
"CutBaseKg": 23.0,
"FinalRate": 24.0,
"ComDiscRatio": 25.0,
"ComDiscValue": 26.0,
"ContractedQty": 27.0,
"TotalWeightBeforDed": 28.0,
"CommodityName": "sample string 29",
"BagsType": "sample string 30",
"BagsClass": "sample string 31",
"UnitName": "sample string 32",
"ContractMode": "sample string 33",
"LotNo": "sample string 34"
}
],
"ListStock": [
{
"CommodityID": 1,
"BagsTypeID": 2,
"BagsType": "sample string 3",
"NoOfBags": 4.0,
"TotalWeight": 5.0,
"LotNo": "sample string 6"
},
{
"CommodityID": 1,
"BagsTypeID": 2,
"BagsType": "sample string 3",
"NoOfBags": 4.0,
"TotalWeight": 5.0,
"LotNo": "sample string 6"
}
]
}
application/xml, text/xml
Sample:
<Sales xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Objects">
<BillNo>40</BillNo>
<BiltyNo>sample string 65</BiltyNo>
<BrokerId>5</BrokerId>
<BrokerName>sample string 54</BrokerName>
<Brokerage>7</Brokerage>
<BrokerageCon>sample string 58</BrokerageCon>
<BrokerageExpMinus>true</BrokerageExpMinus>
<BrokeragePer>31</BrokeragePer>
<BrokerageValueExp>37</BrokerageValueExp>
<BuyerName>sample string 63</BuyerName>
<CashCounterParty>sample string 17</CashCounterParty>
<CommodityID>71</CommodityID>
<CommodityId>66</CommodityId>
<ContractDate>sample string 56</ContractDate>
<ContractId>3</ContractId>
<ContractRate>sample string 57</ContractRate>
<CreditLimit>61</CreditLimit>
<CropSeasonID>67</CropSeasonID>
<CurrencyId>51</CurrencyId>
<CutRateVisible>true</CutRateVisible>
<DueDays>29</DueDays>
<ExpMinus>true</ExpMinus>
<Expenses>11</Expenses>
<Freight>10</Freight>
<FrieghtMinus>true</FrieghtMinus>
<GatePBSId>1</GatePBSId>
<GatePassId>1</GatePassId>
<GrossTotal>8</GrossTotal>
<IDCommodity>72</IDCommodity>
<IDSBU>69</IDSBU>
<IDSBUContract>70</IDSBUContract>
<InvoiceType>sample string 6</InvoiceType>
<IsAdvanceSale>true</IsAdvanceSale>
<IsPer100Kgs>true</IsPer100Kgs>
<IsPerBag>true</IsPerBag>
<IsPerGross>true</IsPerGross>
<IsPosted>true</IsPosted>
<IsSMS>true</IsSMS>
<ListBody>
<SalesBody>
<BagRate>11</BagRate>
<BagWeight>8</BagWeight>
<BagsClass>sample string 31</BagsClass>
<BagsClassId>5</BagsClassId>
<BagsCost>14</BagsCost>
<BagsType>sample string 30</BagsType>
<BagsTypeId>4</BagsTypeId>
<BrokerageAmt>17</BrokerageAmt>
<BrokerageRate>16</BrokerageRate>
<ComDiscRatio>25</ComDiscRatio>
<ComDiscValue>26</ComDiscValue>
<CommodityId>3</CommodityId>
<CommodityName>sample string 29</CommodityName>
<Condition>sample string 19</Condition>
<ContractMode>sample string 33</ContractMode>
<ContractedQty>27</ContractedQty>
<Cost>13</Cost>
<Cut>22</Cut>
<CutBaseKg>23</CutBaseKg>
<Deduction>20</Deduction>
<DepartureID>15</DepartureID>
<FinalRate>24</FinalRate>
<GrossWeight>21</GrossWeight>
<LotNo>sample string 34</LotNo>
<NoOfBags>7</NoOfBags>
<Qty>18</Qty>
<Rate>10</Rate>
<SalesId>2</SalesId>
<SerialNo>1</SerialNo>
<TotalValue>12</TotalValue>
<TotalWeight>9</TotalWeight>
<TotalWeightBeforDed>28</TotalWeightBeforDed>
<UnitID>6</UnitID>
<UnitName>sample string 32</UnitName>
</SalesBody>
<SalesBody>
<BagRate>11</BagRate>
<BagWeight>8</BagWeight>
<BagsClass>sample string 31</BagsClass>
<BagsClassId>5</BagsClassId>
<BagsCost>14</BagsCost>
<BagsType>sample string 30</BagsType>
<BagsTypeId>4</BagsTypeId>
<BrokerageAmt>17</BrokerageAmt>
<BrokerageRate>16</BrokerageRate>
<ComDiscRatio>25</ComDiscRatio>
<ComDiscValue>26</ComDiscValue>
<CommodityId>3</CommodityId>
<CommodityName>sample string 29</CommodityName>
<Condition>sample string 19</Condition>
<ContractMode>sample string 33</ContractMode>
<ContractedQty>27</ContractedQty>
<Cost>13</Cost>
<Cut>22</Cut>
<CutBaseKg>23</CutBaseKg>
<Deduction>20</Deduction>
<DepartureID>15</DepartureID>
<FinalRate>24</FinalRate>
<GrossWeight>21</GrossWeight>
<LotNo>sample string 34</LotNo>
<NoOfBags>7</NoOfBags>
<Qty>18</Qty>
<Rate>10</Rate>
<SalesId>2</SalesId>
<SerialNo>1</SerialNo>
<TotalValue>12</TotalValue>
<TotalWeight>9</TotalWeight>
<TotalWeightBeforDed>28</TotalWeightBeforDed>
<UnitID>6</UnitID>
<UnitName>sample string 32</UnitName>
</SalesBody>
</ListBody>
<ListStock>
<CStockList>
<BagsType>sample string 3</BagsType>
<BagsTypeID>2</BagsTypeID>
<CommodityID>1</CommodityID>
<LotNo>sample string 6</LotNo>
<NoOfBags>4</NoOfBags>
<TotalWeight>5</TotalWeight>
</CStockList>
<CStockList>
<BagsType>sample string 3</BagsType>
<BagsTypeID>2</BagsTypeID>
<CommodityID>1</CommodityID>
<LotNo>sample string 6</LotNo>
<NoOfBags>4</NoOfBags>
<TotalWeight>5</TotalWeight>
</CStockList>
</ListStock>
<LoadingExpMinus>true</LoadingExpMinus>
<MannualGatePassNo>39</MannualGatePassNo>
<MarkeetFeeType>sample string 52</MarkeetFeeType>
<MarketExpMinus>true</MarketExpMinus>
<MarketFee>30</MarketFee>
<MarketFeeVal>36</MarketFeeVal>
<Narration>sample string 18</Narration>
<NetValue>14</NetValue>
<NetValueTaxes>45</NetValueTaxes>
<PartyId>4</PartyId>
<PartyMobileNo>sample string 53</PartyMobileNo>
<PreviousDebit>15</PreviousDebit>
<PriceType>sample string 50</PriceType>
<ProvisonalTexPer>27</ProvisonalTexPer>
<ProvisonalTexVal>28</ProvisonalTexVal>
<Quantity>sample string 55</Quantity>
<ReceivedAmount>12</ReceivedAmount>
<SBUID>41</SBUID>
<SalesDate>2026-06-24T03:07:55.4847322-07:00</SalesDate>
<SalesId>1</SalesId>
<SootliPer>46</SootliPer>
<SootliPlusMinus>sample string 49</SootliPlusMinus>
<SootliTotal>47</SootliTotal>
<SootliType>sample string 48</SootliType>
<SpecialDiscount>13</SpecialDiscount>
<TTLComDiscValue>44</TTLComDiscValue>
<TotalReceivable>62</TotalReceivable>
<Unloading>9</Unloading>
<VehicleFrieght>26</VehicleFrieght>
<VehicleID>25</VehicleID>
<VehicleName>sample string 64</VehicleName>
<VehicleNo>sample string 38</VehicleNo>
<VehicleWeight>20</VehicleWeight>
<WHTRatio>42</WHTRatio>
<WHTValue>43</WHTValue>
<WeighmentID>68</WeighmentID>
</Sales>
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. |