POST api/InvSales/InsertUpdateRecord?vUserID={vUserID}&IsOpen={IsOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vUserID | integer |
Required |
|
| IsOpen | boolean |
Required |
Body Parameters
InventorySales| Name | Description | Type | Additional information |
|---|---|---|---|
| SaleID | integer |
None. |
|
| SaleDate | date |
None. |
|
| CustomerID | string |
None. |
|
| ReceivedAmount | decimal number |
None. |
|
| SpecialDiscount | decimal number |
None. |
|
| BillNo | string |
None. |
|
| Narration | string |
None. |
|
| InvDiscRatio | decimal number |
None. |
|
| InvSTaxRatio | decimal number |
None. |
|
| InvSTaxVal | decimal number |
None. |
|
| TotalGross | decimal number |
None. |
|
| TotalDisc | decimal number |
None. |
|
| TotalValue | decimal number |
None. |
|
| TotalSaleTax | decimal number |
None. |
|
| SootaliPer | decimal number |
None. |
|
| DamiPer | decimal number |
None. |
|
| MarketeFeePer | decimal number |
None. |
|
| MazdoriPer | decimal number |
None. |
|
| BankTaxPer | decimal number |
None. |
|
| BardanaPer | decimal number |
None. |
|
| CarraigePer | decimal number |
None. |
|
| BrokagePer | decimal number |
None. |
|
| SootaliAmount | decimal number |
None. |
|
| DamiAmount | decimal number |
None. |
|
| MarketeFeeAmount | decimal number |
None. |
|
| MazdoriAmount | decimal number |
None. |
|
| BankTaxAmount | decimal number |
None. |
|
| BardanaAmount | decimal number |
None. |
|
| CarraigeAmount | decimal number |
None. |
|
| BrokageAmount | decimal number |
None. |
|
| AddSootali | boolean |
None. |
|
| AddDami | boolean |
None. |
|
| AddMarketeFee | boolean |
None. |
|
| AddMazdori | boolean |
None. |
|
| AddBankTax | boolean |
None. |
|
| AddBardana | boolean |
None. |
|
| AddCarraige | boolean |
None. |
|
| AddBrokage | boolean |
None. |
|
| MinusSootali | boolean |
None. |
|
| MinusDami | boolean |
None. |
|
| MinusMarketeFee | boolean |
None. |
|
| MinusMazdori | boolean |
None. |
|
| MinusBankTax | boolean |
None. |
|
| MinusBardana | boolean |
None. |
|
| MinusCarraige | boolean |
None. |
|
| MinusBrokage | boolean |
None. |
|
| DispatchID | integer |
None. |
|
| PartyName | string |
None. |
|
| PaidAmount | decimal number |
None. |
|
| CustomerId2 | string |
None. |
|
| CustomerName2 | string |
None. |
|
| ShareRatio | decimal number |
None. |
|
| ShareTotalValue | decimal number |
None. |
|
| CommissionRatio | decimal number |
None. |
|
| CommissionAmount | decimal number |
None. |
|
| ExpensePlus | decimal number |
None. |
|
| ExpenseMinus | decimal number |
None. |
|
| RefPurId | integer |
None. |
|
| ListBody | Collection of InventorySalesBody |
None. |
|
| ListBatch | Collection of InventorySalesBatch |
None. |
Request Formats
application/json, text/json
Sample:
{
"SaleID": 1,
"SaleDate": "2025-12-11T01:02:01.4692692-08:00",
"CustomerID": "sample string 3",
"ReceivedAmount": 4.0,
"SpecialDiscount": 5.0,
"BillNo": "sample string 6",
"Narration": "sample string 7",
"InvDiscRatio": 8.0,
"InvSTaxRatio": 9.0,
"InvSTaxVal": 10.0,
"TotalGross": 11.0,
"TotalDisc": 12.0,
"TotalValue": 13.0,
"TotalSaleTax": 14.0,
"SootaliPer": 15.0,
"DamiPer": 16.0,
"MarketeFeePer": 17.0,
"MazdoriPer": 18.0,
"BankTaxPer": 19.0,
"BardanaPer": 20.0,
"CarraigePer": 21.0,
"BrokagePer": 22.0,
"SootaliAmount": 23.0,
"DamiAmount": 24.0,
"MarketeFeeAmount": 25.0,
"MazdoriAmount": 26.0,
"BankTaxAmount": 27.0,
"BardanaAmount": 28.0,
"CarraigeAmount": 29.0,
"BrokageAmount": 30.0,
"AddSootali": true,
"AddDami": true,
"AddMarketeFee": true,
"AddMazdori": true,
"AddBankTax": true,
"AddBardana": true,
"AddCarraige": true,
"AddBrokage": true,
"MinusSootali": true,
"MinusDami": true,
"MinusMarketeFee": true,
"MinusMazdori": true,
"MinusBankTax": true,
"MinusBardana": true,
"MinusCarraige": true,
"MinusBrokage": true,
"DispatchID": 1,
"PartyName": "sample string 47",
"PaidAmount": 48.0,
"CustomerId2": "sample string 49",
"CustomerName2": "sample string 50",
"ShareRatio": 51.0,
"ShareTotalValue": 52.0,
"CommissionRatio": 53.0,
"CommissionAmount": 54.0,
"ExpensePlus": 55.0,
"ExpenseMinus": 56.0,
"RefPurId": 57,
"ListBody": [
{
"SaleID": 1,
"ProductID": 2,
"Qty": 3.0,
"Bonus": 4.0,
"Price": 5.0,
"DiscRatio": 6.0,
"DiscRatio2": 7.0,
"DiscValue": 8.0,
"DiscValue2": 9.0,
"STRatio": 10.0,
"STValue": 11.0,
"TTLValue": 12.0,
"TTLSalesTax": 13.0,
"Cost": 14.0,
"IsDeleted": true,
"Description": "sample string 16",
"ProductName": "sample string 17",
"CurrentStock": 18.0,
"Gross": 19.0,
"TDiscount": 20.0,
"IsBatchProduct": true
},
{
"SaleID": 1,
"ProductID": 2,
"Qty": 3.0,
"Bonus": 4.0,
"Price": 5.0,
"DiscRatio": 6.0,
"DiscRatio2": 7.0,
"DiscValue": 8.0,
"DiscValue2": 9.0,
"STRatio": 10.0,
"STValue": 11.0,
"TTLValue": 12.0,
"TTLSalesTax": 13.0,
"Cost": 14.0,
"IsDeleted": true,
"Description": "sample string 16",
"ProductName": "sample string 17",
"CurrentStock": 18.0,
"Gross": 19.0,
"TDiscount": 20.0,
"IsBatchProduct": true
}
],
"ListBatch": [
{
"SaleID": 1,
"ProductID": 2,
"BatchNo": "sample string 3",
"ExpiryDate": "2025-12-11T01:02:01.4692692-08:00",
"Qty": 5,
"Cost": 6.0
},
{
"SaleID": 1,
"ProductID": 2,
"BatchNo": "sample string 3",
"ExpiryDate": "2025-12-11T01:02:01.4692692-08:00",
"Qty": 5,
"Cost": 6.0
}
]
}
application/xml, text/xml
Sample:
<InventorySales xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
<AddBankTax>true</AddBankTax>
<AddBardana>true</AddBardana>
<AddBrokage>true</AddBrokage>
<AddCarraige>true</AddCarraige>
<AddDami>true</AddDami>
<AddMarketeFee>true</AddMarketeFee>
<AddMazdori>true</AddMazdori>
<AddSootali>true</AddSootali>
<BankTaxAmount>27</BankTaxAmount>
<BankTaxPer>19</BankTaxPer>
<BardanaAmount>28</BardanaAmount>
<BardanaPer>20</BardanaPer>
<BillNo>sample string 6</BillNo>
<BrokageAmount>30</BrokageAmount>
<BrokagePer>22</BrokagePer>
<CarraigeAmount>29</CarraigeAmount>
<CarraigePer>21</CarraigePer>
<CommissionAmount>54</CommissionAmount>
<CommissionRatio>53</CommissionRatio>
<CustomerID>sample string 3</CustomerID>
<CustomerId2>sample string 49</CustomerId2>
<CustomerName2>sample string 50</CustomerName2>
<DamiAmount>24</DamiAmount>
<DamiPer>16</DamiPer>
<DispatchID>1</DispatchID>
<ExpenseMinus>56</ExpenseMinus>
<ExpensePlus>55</ExpensePlus>
<InvDiscRatio>8</InvDiscRatio>
<InvSTaxRatio>9</InvSTaxRatio>
<InvSTaxVal>10</InvSTaxVal>
<ListBatch>
<InventorySalesBatch>
<BatchNo>sample string 3</BatchNo>
<Cost>6</Cost>
<ExpiryDate>2025-12-11T01:02:01.4692692-08:00</ExpiryDate>
<ProductID>2</ProductID>
<Qty>5</Qty>
<SaleID>1</SaleID>
</InventorySalesBatch>
<InventorySalesBatch>
<BatchNo>sample string 3</BatchNo>
<Cost>6</Cost>
<ExpiryDate>2025-12-11T01:02:01.4692692-08:00</ExpiryDate>
<ProductID>2</ProductID>
<Qty>5</Qty>
<SaleID>1</SaleID>
</InventorySalesBatch>
</ListBatch>
<ListBody>
<InventorySalesBody>
<Bonus>4</Bonus>
<Cost>14</Cost>
<CurrentStock>18</CurrentStock>
<Description>sample string 16</Description>
<DiscRatio>6</DiscRatio>
<DiscRatio2>7</DiscRatio2>
<DiscValue>8</DiscValue>
<DiscValue2>9</DiscValue2>
<Gross>19</Gross>
<IsBatchProduct>true</IsBatchProduct>
<IsDeleted>true</IsDeleted>
<Price>5</Price>
<ProductID>2</ProductID>
<ProductName>sample string 17</ProductName>
<Qty>3</Qty>
<STRatio>10</STRatio>
<STValue>11</STValue>
<SaleID>1</SaleID>
<TDiscount>20</TDiscount>
<TTLSalesTax>13</TTLSalesTax>
<TTLValue>12</TTLValue>
</InventorySalesBody>
<InventorySalesBody>
<Bonus>4</Bonus>
<Cost>14</Cost>
<CurrentStock>18</CurrentStock>
<Description>sample string 16</Description>
<DiscRatio>6</DiscRatio>
<DiscRatio2>7</DiscRatio2>
<DiscValue>8</DiscValue>
<DiscValue2>9</DiscValue2>
<Gross>19</Gross>
<IsBatchProduct>true</IsBatchProduct>
<IsDeleted>true</IsDeleted>
<Price>5</Price>
<ProductID>2</ProductID>
<ProductName>sample string 17</ProductName>
<Qty>3</Qty>
<STRatio>10</STRatio>
<STValue>11</STValue>
<SaleID>1</SaleID>
<TDiscount>20</TDiscount>
<TTLSalesTax>13</TTLSalesTax>
<TTLValue>12</TTLValue>
</InventorySalesBody>
</ListBody>
<MarketeFeeAmount>25</MarketeFeeAmount>
<MarketeFeePer>17</MarketeFeePer>
<MazdoriAmount>26</MazdoriAmount>
<MazdoriPer>18</MazdoriPer>
<MinusBankTax>true</MinusBankTax>
<MinusBardana>true</MinusBardana>
<MinusBrokage>true</MinusBrokage>
<MinusCarraige>true</MinusCarraige>
<MinusDami>true</MinusDami>
<MinusMarketeFee>true</MinusMarketeFee>
<MinusMazdori>true</MinusMazdori>
<MinusSootali>true</MinusSootali>
<Narration>sample string 7</Narration>
<PaidAmount>48</PaidAmount>
<PartyName>sample string 47</PartyName>
<ReceivedAmount>4</ReceivedAmount>
<RefPurId>57</RefPurId>
<SaleDate>2025-12-11T01:02:01.4692692-08:00</SaleDate>
<SaleID>1</SaleID>
<ShareRatio>51</ShareRatio>
<ShareTotalValue>52</ShareTotalValue>
<SootaliAmount>23</SootaliAmount>
<SootaliPer>15</SootaliPer>
<SpecialDiscount>5</SpecialDiscount>
<TotalDisc>12</TotalDisc>
<TotalGross>11</TotalGross>
<TotalSaleTax>14</TotalSaleTax>
<TotalValue>13</TotalValue>
</InventorySales>
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. |