POST api/InvDispatchSale/InsertUpdateRecord?vUserID={vUserID}&IsOpen={IsOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vUserID | integer |
Required |
|
| IsOpen | boolean |
Required |
Body Parameters
InvDispatchSale| Name | Description | Type | Additional information |
|---|---|---|---|
| DispatchID | integer |
None. |
|
| DispatchDate | date |
None. |
|
| CustomerID | string |
None. |
|
| BillNo | string |
None. |
|
| Narration | string |
None. |
|
| TotalGross | decimal number |
None. |
|
| PartyName | string |
None. |
|
| ListBody | Collection of InvDispatchSaleBody |
None. |
|
| ListBatch | Collection of InvDispatchSaleBatch |
None. |
Request Formats
application/json, text/json
Sample:
{
"DispatchID": 1,
"DispatchDate": "2025-12-11T01:02:58.2346283-08:00",
"CustomerID": "sample string 3",
"BillNo": "sample string 4",
"Narration": "sample string 5",
"TotalGross": 6.0,
"PartyName": "sample string 7",
"ListBody": [
{
"DispatchID": 1,
"ProductID": 2,
"Qty": 3.0,
"Bonus": 4.0,
"Price": 5.0,
"Description": "sample string 6",
"Gross": 7.0,
"ProductName": "sample string 8",
"CurrentStock": 9.0,
"IsBatchProduct": true
},
{
"DispatchID": 1,
"ProductID": 2,
"Qty": 3.0,
"Bonus": 4.0,
"Price": 5.0,
"Description": "sample string 6",
"Gross": 7.0,
"ProductName": "sample string 8",
"CurrentStock": 9.0,
"IsBatchProduct": true
}
],
"ListBatch": [
{
"DispatchID": 1,
"ProductID": 2,
"BatchNo": "sample string 3",
"ExpiryDate": "2025-12-11T01:02:58.2346283-08:00",
"Qty": 5,
"Cost": 6.0
},
{
"DispatchID": 1,
"ProductID": 2,
"BatchNo": "sample string 3",
"ExpiryDate": "2025-12-11T01:02:58.2346283-08:00",
"Qty": 5,
"Cost": 6.0
}
]
}
application/xml, text/xml
Sample:
<InvDispatchSale xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
<BillNo>sample string 4</BillNo>
<CustomerID>sample string 3</CustomerID>
<DispatchDate>2025-12-11T01:02:58.2346283-08:00</DispatchDate>
<DispatchID>1</DispatchID>
<ListBatch>
<InvDispatchSaleBatch>
<BatchNo>sample string 3</BatchNo>
<Cost>6</Cost>
<DispatchID>1</DispatchID>
<ExpiryDate>2025-12-11T01:02:58.2346283-08:00</ExpiryDate>
<ProductID>2</ProductID>
<Qty>5</Qty>
</InvDispatchSaleBatch>
<InvDispatchSaleBatch>
<BatchNo>sample string 3</BatchNo>
<Cost>6</Cost>
<DispatchID>1</DispatchID>
<ExpiryDate>2025-12-11T01:02:58.2346283-08:00</ExpiryDate>
<ProductID>2</ProductID>
<Qty>5</Qty>
</InvDispatchSaleBatch>
</ListBatch>
<ListBody>
<InvDispatchSaleBody>
<Bonus>4</Bonus>
<CurrentStock>9</CurrentStock>
<Description>sample string 6</Description>
<DispatchID>1</DispatchID>
<Gross>7</Gross>
<IsBatchProduct>true</IsBatchProduct>
<Price>5</Price>
<ProductID>2</ProductID>
<ProductName>sample string 8</ProductName>
<Qty>3</Qty>
</InvDispatchSaleBody>
<InvDispatchSaleBody>
<Bonus>4</Bonus>
<CurrentStock>9</CurrentStock>
<Description>sample string 6</Description>
<DispatchID>1</DispatchID>
<Gross>7</Gross>
<IsBatchProduct>true</IsBatchProduct>
<Price>5</Price>
<ProductID>2</ProductID>
<ProductName>sample string 8</ProductName>
<Qty>3</Qty>
</InvDispatchSaleBody>
</ListBody>
<Narration>sample string 5</Narration>
<PartyName>sample string 7</PartyName>
<TotalGross>6</TotalGross>
</InvDispatchSale>
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. |