POST api/Accounts/InsertOrUpdateVoucherCash?userId={userId}&isOpen={isOpen}&vFormName={vFormName}&vTotalDr={vTotalDr}&vTotalCr={vTotalCr}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId | integer |
Required |
|
| isOpen | boolean |
Required |
|
| vFormName | string |
Default value is |
|
| vTotalDr | decimal number |
Default value is 0 |
|
| vTotalCr | decimal number |
Default value is 0 |
Body Parameters
VoucherHeaderModel| Name | Description | Type | Additional information |
|---|---|---|---|
| VoucherID | integer |
None. |
|
| VoucherType | string |
None. |
|
| VoucherDate | date |
None. |
|
| Narration | string |
None. |
|
| IsPosted | boolean |
None. |
|
| ManualNo | string |
None. |
|
| SBUID | integer |
None. |
|
| UserID | integer |
None. |
|
| ListBody | Collection of VoucherBodyModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"VoucherID": 1,
"VoucherType": "sample string 2",
"VoucherDate": "2025-12-11T01:02:39.1646137-08:00",
"Narration": "sample string 4",
"IsPosted": true,
"ManualNo": "sample string 6",
"SBUID": 7,
"UserID": 8,
"ListBody": [
{
"SerialNo": 1,
"VoucherID": 2,
"VoucherType": "sample string 3",
"AccountNo": "sample string 4",
"Remarks": "sample string 5",
"Debit": 6.0,
"Credit": 7.0,
"AccountTitle": "sample string 8"
},
{
"SerialNo": 1,
"VoucherID": 2,
"VoucherType": "sample string 3",
"AccountNo": "sample string 4",
"Remarks": "sample string 5",
"Debit": 6.0,
"Credit": 7.0,
"AccountTitle": "sample string 8"
}
]
}
application/xml, text/xml
Sample:
<VoucherHeaderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
<IsPosted>true</IsPosted>
<ListBody>
<VoucherBodyModel>
<AccountNo>sample string 4</AccountNo>
<AccountTitle>sample string 8</AccountTitle>
<Credit>7</Credit>
<Debit>6</Debit>
<Remarks>sample string 5</Remarks>
<SerialNo>1</SerialNo>
<VoucherID>2</VoucherID>
<VoucherType>sample string 3</VoucherType>
</VoucherBodyModel>
<VoucherBodyModel>
<AccountNo>sample string 4</AccountNo>
<AccountTitle>sample string 8</AccountTitle>
<Credit>7</Credit>
<Debit>6</Debit>
<Remarks>sample string 5</Remarks>
<SerialNo>1</SerialNo>
<VoucherID>2</VoucherID>
<VoucherType>sample string 3</VoucherType>
</VoucherBodyModel>
</ListBody>
<ManualNo>sample string 6</ManualNo>
<Narration>sample string 4</Narration>
<SBUID>7</SBUID>
<UserID>8</UserID>
<VoucherDate>2025-12-11T01:02:39.1646137-08:00</VoucherDate>
<VoucherID>1</VoucherID>
<VoucherType>sample string 2</VoucherType>
</VoucherHeaderModel>
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. |