POST api/BagSaleInv/InsertOrUpdate?isOpen={isOpen}&vUserID={vUserID}&qtyT={qtyT}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Required |
|
| vUserID | integer |
Required |
|
| qtyT | string |
Default value is |
Body Parameters
BagsSales| Name | Description | Type | Additional information |
|---|---|---|---|
| BagsSaleID | integer |
None. |
|
| SaleDate | date |
None. |
|
| PartyID | integer |
None. |
|
| GrossAmount | decimal number |
None. |
|
| PreviousCredit | decimal number |
None. |
|
| RecevideAmount | decimal number |
None. |
|
| NetAmount | decimal number |
None. |
|
| IsPosted | boolean |
None. |
|
| Narration | string |
None. |
|
| SBUID | integer |
None. |
|
| IDSBU | integer |
None. |
|
| CurrencyId | integer |
None. |
|
| CropSeasonID | integer |
None. |
|
| IsFingerPrint | boolean |
None. |
|
| IsBrowseFile | boolean |
None. |
|
| IsSign | boolean |
None. |
|
| BytesFinger | Collection of byte |
None. |
|
| BytesDoc | Collection of byte |
None. |
|
| BytesSign | Collection of byte |
None. |
|
| ListBody | Collection of BagsSalesBody |
None. |
Request Formats
application/json, text/json
Sample:
{
"BagsSaleID": 1,
"SaleDate": "2026-06-24T04:23:56.0565764-07:00",
"PartyID": 3,
"GrossAmount": 4.0,
"PreviousCredit": 5.0,
"RecevideAmount": 6.0,
"NetAmount": 7.0,
"IsPosted": true,
"Narration": "sample string 9",
"SBUID": 10,
"IDSBU": 11,
"CurrencyId": 12,
"CropSeasonID": 13,
"IsFingerPrint": true,
"IsBrowseFile": true,
"IsSign": true,
"BytesFinger": "QEA=",
"BytesDoc": "QEA=",
"BytesSign": "QEA=",
"ListBody": [
{
"SerialNo": 1,
"BagsSaleId": 2,
"BagsTypeId": 3,
"ClassId": 4,
"Quantity": 5,
"PricePerBag": 6.0,
"PriceBase": 7,
"Value": 8.0,
"Cost": 9.0
},
{
"SerialNo": 1,
"BagsSaleId": 2,
"BagsTypeId": 3,
"ClassId": 4,
"Quantity": 5,
"PricePerBag": 6.0,
"PriceBase": 7,
"Value": 8.0,
"Cost": 9.0
}
]
}
application/xml, text/xml
Sample:
<BagsSales xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Objects">
<BagsSaleID>1</BagsSaleID>
<BytesDoc>QEA=</BytesDoc>
<BytesFinger>QEA=</BytesFinger>
<BytesSign>QEA=</BytesSign>
<CropSeasonID>13</CropSeasonID>
<CurrencyId>12</CurrencyId>
<GrossAmount>4</GrossAmount>
<IDSBU>11</IDSBU>
<IsBrowseFile>true</IsBrowseFile>
<IsFingerPrint>true</IsFingerPrint>
<IsPosted>true</IsPosted>
<IsSign>true</IsSign>
<ListBody>
<BagsSalesBody>
<BagsSaleId>2</BagsSaleId>
<BagsTypeId>3</BagsTypeId>
<ClassId>4</ClassId>
<Cost>9</Cost>
<PriceBase>7</PriceBase>
<PricePerBag>6</PricePerBag>
<Quantity>5</Quantity>
<SerialNo>1</SerialNo>
<Value>8</Value>
</BagsSalesBody>
<BagsSalesBody>
<BagsSaleId>2</BagsSaleId>
<BagsTypeId>3</BagsTypeId>
<ClassId>4</ClassId>
<Cost>9</Cost>
<PriceBase>7</PriceBase>
<PricePerBag>6</PricePerBag>
<Quantity>5</Quantity>
<SerialNo>1</SerialNo>
<Value>8</Value>
</BagsSalesBody>
</ListBody>
<Narration>sample string 9</Narration>
<NetAmount>7</NetAmount>
<PartyID>3</PartyID>
<PreviousCredit>5</PreviousCredit>
<RecevideAmount>6</RecevideAmount>
<SBUID>10</SBUID>
<SaleDate>2026-06-24T04:23:56.0565764-07:00</SaleDate>
</BagsSales>
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. |