POST api/BagPurchaseInv/InsertOrUpdate?isOpen={isOpen}&vUserID={vUserID}&totalQty={totalQty}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Required |
|
| vUserID | integer |
Required |
|
| totalQty | string |
Default value is |
Body Parameters
BagsPurchases| Name | Description | Type | Additional information |
|---|---|---|---|
| BagsPurchaseID | integer |
None. |
|
| PurchaseDate | date |
None. |
|
| PartyID | integer |
None. |
|
| GrossValue | decimal number |
None. |
|
| Expenses | decimal number |
None. |
|
| PreviousCredit | decimal number |
None. |
|
| PaidAmount | decimal number |
None. |
|
| NetPayable | decimal number |
None. |
|
| IsPosted | boolean |
None. |
|
| Narration | string |
None. |
|
| SBUID | integer |
None. |
|
| IDSBU | integer |
None. |
|
| CurrencyId | integer |
None. |
|
| CropSeasonID | integer |
None. |
|
| ListBody | Collection of BagsPurchasesBody |
None. |
Request Formats
application/json, text/json
Sample:
{
"BagsPurchaseID": 1,
"PurchaseDate": "2026-06-24T03:06:57.8768049-07:00",
"PartyID": 3,
"GrossValue": 4.0,
"Expenses": 5.0,
"PreviousCredit": 6.0,
"PaidAmount": 7.0,
"NetPayable": 8.0,
"IsPosted": true,
"Narration": "sample string 10",
"SBUID": 11,
"IDSBU": 12,
"CurrencyId": 13,
"CropSeasonID": 14,
"ListBody": [
{
"SerialNo": 1,
"BagsPurchaseID": 2,
"BagsTypeID": 3,
"ClassID": 4,
"Quantity": 5,
"PricePerBag": 6.0,
"PerNoOfBags": 7,
"Cost": 8.0
},
{
"SerialNo": 1,
"BagsPurchaseID": 2,
"BagsTypeID": 3,
"ClassID": 4,
"Quantity": 5,
"PricePerBag": 6.0,
"PerNoOfBags": 7,
"Cost": 8.0
}
]
}
application/xml, text/xml
Sample:
<BagsPurchases xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Objects">
<BagsPurchaseID>1</BagsPurchaseID>
<CropSeasonID>14</CropSeasonID>
<CurrencyId>13</CurrencyId>
<Expenses>5</Expenses>
<GrossValue>4</GrossValue>
<IDSBU>12</IDSBU>
<IsPosted>true</IsPosted>
<ListBody>
<BagsPurchasesBody>
<BagsPurchaseID>2</BagsPurchaseID>
<BagsTypeID>3</BagsTypeID>
<ClassID>4</ClassID>
<Cost>8</Cost>
<PerNoOfBags>7</PerNoOfBags>
<PricePerBag>6</PricePerBag>
<Quantity>5</Quantity>
<SerialNo>1</SerialNo>
</BagsPurchasesBody>
<BagsPurchasesBody>
<BagsPurchaseID>2</BagsPurchaseID>
<BagsTypeID>3</BagsTypeID>
<ClassID>4</ClassID>
<Cost>8</Cost>
<PerNoOfBags>7</PerNoOfBags>
<PricePerBag>6</PricePerBag>
<Quantity>5</Quantity>
<SerialNo>1</SerialNo>
</BagsPurchasesBody>
</ListBody>
<Narration>sample string 10</Narration>
<NetPayable>8</NetPayable>
<PaidAmount>7</PaidAmount>
<PartyID>3</PartyID>
<PreviousCredit>6</PreviousCredit>
<PurchaseDate>2026-06-24T03:06:57.8768049-07:00</PurchaseDate>
<SBUID>11</SBUID>
</BagsPurchases>
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. |