POST api/InventorySaleInvoice/InsertOrUpdate?isOpen={isOpen}&vUserID={vUserID}&isSms={isSms}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Required |
|
| vUserID | integer |
Required |
|
| isSms | boolean |
Default value is False |
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. |
|
| SBUID | integer |
None. |
|
| CropSeasonID | integer |
None. |
|
| IDSBU | integer |
None. |
|
| BytesDoc | Collection of byte |
None. |
|
| BytesFinger | Collection of byte |
None. |
|
| BytesSign | Collection of byte |
None. |
|
| ListBody | Collection of InventorySalesBody |
None. |
Request Formats
application/json, text/json
Sample:
{
"SaleID": 1,
"SaleDate": "2026-06-24T03:05:52.8744122-07: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,
"SBUID": 47,
"CropSeasonID": 48,
"IDSBU": 49,
"BytesDoc": "QEA=",
"BytesFinger": "QEA=",
"BytesSign": "QEA=",
"ListBody": [
{
"SaleID": 1,
"ProductID": 2,
"Qty": 3.0,
"Bonus": 4.0,
"Price": 5.0,
"DiscRatio": 6.0,
"DiscValue": 7.0,
"STRatio": 8.0,
"STValue": 9.0,
"TTLValue": 10.0,
"TTLSalesTax": 11.0,
"Cost": 12.0,
"IsDeleted": true,
"GrossRate": 14.0,
"TDiscount": 15.0,
"ProductName": "sample string 16"
},
{
"SaleID": 1,
"ProductID": 2,
"Qty": 3.0,
"Bonus": 4.0,
"Price": 5.0,
"DiscRatio": 6.0,
"DiscValue": 7.0,
"STRatio": 8.0,
"STValue": 9.0,
"TTLValue": 10.0,
"TTLSalesTax": 11.0,
"Cost": 12.0,
"IsDeleted": true,
"GrossRate": 14.0,
"TDiscount": 15.0,
"ProductName": "sample string 16"
}
]
}
application/xml, text/xml
Sample:
<InventorySales xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Objects">
<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>
<BytesDoc>QEA=</BytesDoc>
<BytesFinger>QEA=</BytesFinger>
<BytesSign>QEA=</BytesSign>
<CarraigeAmount>29</CarraigeAmount>
<CarraigePer>21</CarraigePer>
<CropSeasonID>48</CropSeasonID>
<CustomerID>sample string 3</CustomerID>
<DamiAmount>24</DamiAmount>
<DamiPer>16</DamiPer>
<IDSBU>49</IDSBU>
<InvDiscRatio>8</InvDiscRatio>
<InvSTaxRatio>9</InvSTaxRatio>
<InvSTaxVal>10</InvSTaxVal>
<ListBody>
<InventorySalesBody>
<Bonus>4</Bonus>
<Cost>12</Cost>
<DiscRatio>6</DiscRatio>
<DiscValue>7</DiscValue>
<GrossRate>14</GrossRate>
<IsDeleted>true</IsDeleted>
<Price>5</Price>
<ProductID>2</ProductID>
<ProductName>sample string 16</ProductName>
<Qty>3</Qty>
<STRatio>8</STRatio>
<STValue>9</STValue>
<SaleID>1</SaleID>
<TDiscount>15</TDiscount>
<TTLSalesTax>11</TTLSalesTax>
<TTLValue>10</TTLValue>
</InventorySalesBody>
<InventorySalesBody>
<Bonus>4</Bonus>
<Cost>12</Cost>
<DiscRatio>6</DiscRatio>
<DiscValue>7</DiscValue>
<GrossRate>14</GrossRate>
<IsDeleted>true</IsDeleted>
<Price>5</Price>
<ProductID>2</ProductID>
<ProductName>sample string 16</ProductName>
<Qty>3</Qty>
<STRatio>8</STRatio>
<STValue>9</STValue>
<SaleID>1</SaleID>
<TDiscount>15</TDiscount>
<TTLSalesTax>11</TTLSalesTax>
<TTLValue>10</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>
<ReceivedAmount>4</ReceivedAmount>
<SBUID>47</SBUID>
<SaleDate>2026-06-24T03:05:52.8744122-07:00</SaleDate>
<SaleID>1</SaleID>
<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. |