POST api/Bags/InsertBagSales?vUserID={vUserID}&IsOpen={IsOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vUserID | integer |
Required |
|
| IsOpen | boolean |
Required |
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. |
|
| PartyName | string |
None. |
|
| TotalQuantity | integer |
None. |
|
| ListBody | Collection of BagsSalesBody |
None. |
Request Formats
application/json, text/json
Sample:
{
"BagsSaleID": 1,
"SaleDate": "2025-12-11T01:02:44.7134545-08:00",
"PartyID": 3,
"GrossAmount": 4.0,
"PreviousCredit": 5.0,
"RecevideAmount": 6.0,
"NetAmount": 7.0,
"IsPosted": true,
"Narration": "sample string 9",
"PartyName": "sample string 10",
"TotalQuantity": 11,
"ListBody": [
{
"SerialNo": 1,
"BagsSaleId": 2,
"BagsTypeId": 3,
"ClassId": 4,
"Quantity": 5,
"PricePerBag": 6.0,
"PriceBase": 7,
"Cost": 8.0,
"GPID": 9,
"BagsType": "sample string 10",
"BagsClass": "sample string 11",
"GPDate": "sample string 12"
},
{
"SerialNo": 1,
"BagsSaleId": 2,
"BagsTypeId": 3,
"ClassId": 4,
"Quantity": 5,
"PricePerBag": 6.0,
"PriceBase": 7,
"Cost": 8.0,
"GPID": 9,
"BagsType": "sample string 10",
"BagsClass": "sample string 11",
"GPDate": "sample string 12"
}
]
}
application/xml, text/xml
Sample:
<BagsSales xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
<BagsSaleID>1</BagsSaleID>
<GrossAmount>4</GrossAmount>
<IsPosted>true</IsPosted>
<ListBody>
<BagsSalesBody>
<BagsClass>sample string 11</BagsClass>
<BagsSaleId>2</BagsSaleId>
<BagsType>sample string 10</BagsType>
<BagsTypeId>3</BagsTypeId>
<ClassId>4</ClassId>
<Cost>8</Cost>
<GPDate>sample string 12</GPDate>
<GPID>9</GPID>
<PriceBase>7</PriceBase>
<PricePerBag>6</PricePerBag>
<Quantity>5</Quantity>
<SerialNo>1</SerialNo>
</BagsSalesBody>
<BagsSalesBody>
<BagsClass>sample string 11</BagsClass>
<BagsSaleId>2</BagsSaleId>
<BagsType>sample string 10</BagsType>
<BagsTypeId>3</BagsTypeId>
<ClassId>4</ClassId>
<Cost>8</Cost>
<GPDate>sample string 12</GPDate>
<GPID>9</GPID>
<PriceBase>7</PriceBase>
<PricePerBag>6</PricePerBag>
<Quantity>5</Quantity>
<SerialNo>1</SerialNo>
</BagsSalesBody>
</ListBody>
<Narration>sample string 9</Narration>
<NetAmount>7</NetAmount>
<PartyID>3</PartyID>
<PartyName>sample string 10</PartyName>
<PreviousCredit>5</PreviousCredit>
<RecevideAmount>6</RecevideAmount>
<SaleDate>2025-12-11T01:02:44.7134545-08:00</SaleDate>
<TotalQuantity>11</TotalQuantity>
</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. |