POST api/InvPurchase/InsertUpdateRecord?vUserID={vUserID}&IsOpen={IsOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vUserID | integer |
Required |
|
| IsOpen | boolean |
Required |
Body Parameters
InventoryPurchase| Name | Description | Type | Additional information |
|---|---|---|---|
| PurchaseID | integer |
None. |
|
| PurchaseDate | date |
None. |
|
| VendorID | string |
None. |
|
| BillNo | string |
None. |
|
| BillDate | date |
None. |
|
| PaidAmount | decimal number |
None. |
|
| Narration | string |
None. |
|
| InvDiscRatio | decimal number |
None. |
|
| InvDiscVal | decimal number |
None. |
|
| InvSTaxRatio | decimal number |
None. |
|
| InvSTaxVal | decimal number |
None. |
|
| TotalGross | decimal number |
None. |
|
| TotalDisc | decimal number |
None. |
|
| TotalValue | decimal number |
None. |
|
| NetValue | 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. |
|
| SpecialDiscount | decimal number |
None. |
|
| CommissionRatio | decimal number |
None. |
|
| CommissionAmount | decimal number |
None. |
|
| ExpensePlus | decimal number |
None. |
|
| ExpenseMinus | decimal number |
None. |
|
| RefSaleId | integer |
None. |
|
| ListBody | Collection of InventoryPurchaseBody |
None. |
|
| ListBatch | Collection of InventoryPurchaseBatch |
None. |
Request Formats
application/json, text/json
Sample:
{
"PurchaseID": 1,
"PurchaseDate": "2025-12-11T01:02:05.7494202-08:00",
"VendorID": "sample string 3",
"BillNo": "sample string 4",
"BillDate": "2025-12-11T01:02:05.7494202-08:00",
"PaidAmount": 6.0,
"Narration": "sample string 7",
"InvDiscRatio": 8.0,
"InvDiscVal": 9.0,
"InvSTaxRatio": 10.0,
"InvSTaxVal": 11.0,
"TotalGross": 12.0,
"TotalDisc": 13.0,
"TotalValue": 14.0,
"NetValue": 15.0,
"TotalSaleTax": 16.0,
"SootaliPer": 17.0,
"DamiPer": 18.0,
"MarketeFeePer": 19.0,
"MazdoriPer": 20.0,
"BankTaxPer": 21.0,
"BardanaPer": 22.0,
"CarraigePer": 23.0,
"BrokagePer": 24.0,
"SootaliAmount": 25.0,
"DamiAmount": 26.0,
"MarketeFeeAmount": 27.0,
"MazdoriAmount": 28.0,
"BankTaxAmount": 29.0,
"BardanaAmount": 30.0,
"CarraigeAmount": 31.0,
"BrokageAmount": 32.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 49",
"SpecialDiscount": 50.0,
"CommissionRatio": 51.0,
"CommissionAmount": 52.0,
"ExpensePlus": 53.0,
"ExpenseMinus": 54.0,
"RefSaleId": 55,
"ListBody": [
{
"SerialNo": 1,
"PurchaseID": 2,
"ProductID": 3,
"Qty": 4.0,
"Bonus": 5.0,
"Price": 6.0,
"DiscRatio": 7.0,
"DiscRatio2": 8.0,
"DiscValue": 9.0,
"DiscValue2": 10.0,
"STRatio": 11.0,
"STValue": 12.0,
"TTLValue": 13.0,
"TTLSalesTax": 14.0,
"Description": "sample string 15",
"UnitQty": 16.0,
"ProductName": "sample string 17",
"CurrentStock": 18.0,
"Gross": 19.0,
"IsBatchProduct": true
},
{
"SerialNo": 1,
"PurchaseID": 2,
"ProductID": 3,
"Qty": 4.0,
"Bonus": 5.0,
"Price": 6.0,
"DiscRatio": 7.0,
"DiscRatio2": 8.0,
"DiscValue": 9.0,
"DiscValue2": 10.0,
"STRatio": 11.0,
"STValue": 12.0,
"TTLValue": 13.0,
"TTLSalesTax": 14.0,
"Description": "sample string 15",
"UnitQty": 16.0,
"ProductName": "sample string 17",
"CurrentStock": 18.0,
"Gross": 19.0,
"IsBatchProduct": true
}
],
"ListBatch": [
{
"PurchaseID": 1,
"ProductID": 2,
"BatchNo": "sample string 3",
"ExpiryDate": "2025-12-11T01:02:05.7494202-08:00",
"Qty": 5,
"Cost": 6.0
},
{
"PurchaseID": 1,
"ProductID": 2,
"BatchNo": "sample string 3",
"ExpiryDate": "2025-12-11T01:02:05.7494202-08:00",
"Qty": 5,
"Cost": 6.0
}
]
}
application/xml, text/xml
Sample:
<InventoryPurchase 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>29</BankTaxAmount>
<BankTaxPer>21</BankTaxPer>
<BardanaAmount>30</BardanaAmount>
<BardanaPer>22</BardanaPer>
<BillDate>2025-12-11T01:02:05.7494202-08:00</BillDate>
<BillNo>sample string 4</BillNo>
<BrokageAmount>32</BrokageAmount>
<BrokagePer>24</BrokagePer>
<CarraigeAmount>31</CarraigeAmount>
<CarraigePer>23</CarraigePer>
<CommissionAmount>52</CommissionAmount>
<CommissionRatio>51</CommissionRatio>
<DamiAmount>26</DamiAmount>
<DamiPer>18</DamiPer>
<DispatchID>1</DispatchID>
<ExpenseMinus>54</ExpenseMinus>
<ExpensePlus>53</ExpensePlus>
<InvDiscRatio>8</InvDiscRatio>
<InvDiscVal>9</InvDiscVal>
<InvSTaxRatio>10</InvSTaxRatio>
<InvSTaxVal>11</InvSTaxVal>
<ListBatch>
<InventoryPurchaseBatch>
<BatchNo>sample string 3</BatchNo>
<Cost>6</Cost>
<ExpiryDate>2025-12-11T01:02:05.7494202-08:00</ExpiryDate>
<ProductID>2</ProductID>
<PurchaseID>1</PurchaseID>
<Qty>5</Qty>
</InventoryPurchaseBatch>
<InventoryPurchaseBatch>
<BatchNo>sample string 3</BatchNo>
<Cost>6</Cost>
<ExpiryDate>2025-12-11T01:02:05.7494202-08:00</ExpiryDate>
<ProductID>2</ProductID>
<PurchaseID>1</PurchaseID>
<Qty>5</Qty>
</InventoryPurchaseBatch>
</ListBatch>
<ListBody>
<InventoryPurchaseBody>
<Bonus>5</Bonus>
<CurrentStock>18</CurrentStock>
<Description>sample string 15</Description>
<DiscRatio>7</DiscRatio>
<DiscRatio2>8</DiscRatio2>
<DiscValue>9</DiscValue>
<DiscValue2>10</DiscValue2>
<Gross>19</Gross>
<IsBatchProduct>true</IsBatchProduct>
<Price>6</Price>
<ProductID>3</ProductID>
<ProductName>sample string 17</ProductName>
<PurchaseID>2</PurchaseID>
<Qty>4</Qty>
<STRatio>11</STRatio>
<STValue>12</STValue>
<SerialNo>1</SerialNo>
<TTLSalesTax>14</TTLSalesTax>
<TTLValue>13</TTLValue>
<UnitQty>16</UnitQty>
</InventoryPurchaseBody>
<InventoryPurchaseBody>
<Bonus>5</Bonus>
<CurrentStock>18</CurrentStock>
<Description>sample string 15</Description>
<DiscRatio>7</DiscRatio>
<DiscRatio2>8</DiscRatio2>
<DiscValue>9</DiscValue>
<DiscValue2>10</DiscValue2>
<Gross>19</Gross>
<IsBatchProduct>true</IsBatchProduct>
<Price>6</Price>
<ProductID>3</ProductID>
<ProductName>sample string 17</ProductName>
<PurchaseID>2</PurchaseID>
<Qty>4</Qty>
<STRatio>11</STRatio>
<STValue>12</STValue>
<SerialNo>1</SerialNo>
<TTLSalesTax>14</TTLSalesTax>
<TTLValue>13</TTLValue>
<UnitQty>16</UnitQty>
</InventoryPurchaseBody>
</ListBody>
<MarketeFeeAmount>27</MarketeFeeAmount>
<MarketeFeePer>19</MarketeFeePer>
<MazdoriAmount>28</MazdoriAmount>
<MazdoriPer>20</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>
<NetValue>15</NetValue>
<PaidAmount>6</PaidAmount>
<PartyName>sample string 49</PartyName>
<PurchaseDate>2025-12-11T01:02:05.7494202-08:00</PurchaseDate>
<PurchaseID>1</PurchaseID>
<RefSaleId>55</RefSaleId>
<SootaliAmount>25</SootaliAmount>
<SootaliPer>17</SootaliPer>
<SpecialDiscount>50</SpecialDiscount>
<TotalDisc>13</TotalDisc>
<TotalGross>12</TotalGross>
<TotalSaleTax>16</TotalSaleTax>
<TotalValue>14</TotalValue>
<VendorID>sample string 3</VendorID>
</InventoryPurchase>
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. |