POST api/Accounts/InsertCPV?userId={userId}&isOpen={isOpen}&isManual={isManual}&officeId={officeId}&totalAmount={totalAmount}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId | integer |
Required |
|
| isOpen | boolean |
Required |
|
| isManual | boolean |
Default value is False |
|
| officeId | integer |
Default value is 0 |
|
| totalAmount | decimal number |
Default value is 0 |
Body Parameters
CreditVouchersModel| Name | Description | Type | Additional information |
|---|---|---|---|
| VoucherNo | integer |
None. |
|
| VoucherDate | date |
None. |
|
| LastUpdateDate | string |
None. |
|
| UserNo | integer |
None. |
|
| OfficeID | integer |
None. |
|
| IsUploaded | boolean |
None. |
|
| IsPosted | boolean |
None. |
|
| NewVoucherNo | integer |
None. |
|
| IsFinalize | boolean |
None. |
|
| CashAccount | string |
None. |
|
| VoucherNoNew | integer |
None. |
|
| IsPosted2 | boolean |
None. |
|
| IsPosted3 | boolean |
None. |
|
| IsPosted4 | boolean |
None. |
|
| DocFile | Collection of byte |
None. |
|
| IDOffice | integer |
None. |
|
| ListBody | Collection of CreditVouchersBody |
None. |
Request Formats
application/json, text/json
Sample:
{
"VoucherNo": 1,
"VoucherDate": "2025-12-16T08:21:16.4335196+05:00",
"LastUpdateDate": "sample string 3",
"UserNo": 4,
"OfficeID": 5,
"IsUploaded": true,
"IsPosted": true,
"NewVoucherNo": 1,
"IsFinalize": true,
"CashAccount": "sample string 8",
"VoucherNoNew": 9,
"IsPosted2": true,
"IsPosted3": true,
"IsPosted4": true,
"DocFile": "QEA=",
"IDOffice": 13,
"ListBody": [
{
"_TokenCr": 1.0,
"VoucherNo": 1,
"AccountNo": "sample string 2",
"Narration": "sample string 3",
"Amount": 4.0,
"PrevBal": 5.0,
"VoucherDate": "2025-12-16T08:21:16.4335196+05:00",
"IsFinalize": true,
"Token": 7.0,
"TokenDr": 8.0,
"Difference": 9.0,
"FBalance": 10.0,
"TokenCr": 1.0,
"AccountTitle": "sample string 12",
"Credit": 13.0,
"Debit": 14.0
},
{
"_TokenCr": 1.0,
"VoucherNo": 1,
"AccountNo": "sample string 2",
"Narration": "sample string 3",
"Amount": 4.0,
"PrevBal": 5.0,
"VoucherDate": "2025-12-16T08:21:16.4335196+05:00",
"IsFinalize": true,
"Token": 7.0,
"TokenDr": 8.0,
"Difference": 9.0,
"FBalance": 10.0,
"TokenCr": 1.0,
"AccountTitle": "sample string 12",
"Credit": 13.0,
"Debit": 14.0
}
]
}
application/xml, text/xml
Sample:
<CreditVouchersModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models">
<CashAccount>sample string 8</CashAccount>
<DocFile>QEA=</DocFile>
<IDOffice>13</IDOffice>
<IsFinalize>true</IsFinalize>
<IsPosted>true</IsPosted>
<IsPosted2>true</IsPosted2>
<IsPosted3>true</IsPosted3>
<IsPosted4>true</IsPosted4>
<IsUploaded>true</IsUploaded>
<LastUpdateDate>sample string 3</LastUpdateDate>
<ListBody>
<CreditVouchersBody>
<AccountNo>sample string 2</AccountNo>
<AccountTitle>sample string 12</AccountTitle>
<Amount>4</Amount>
<Credit>13</Credit>
<Debit>14</Debit>
<Difference>9</Difference>
<FBalance>10</FBalance>
<IsFinalize>true</IsFinalize>
<Narration>sample string 3</Narration>
<PrevBal>5</PrevBal>
<Token>7</Token>
<TokenCr>1</TokenCr>
<TokenDr>8</TokenDr>
<VoucherDate>2025-12-16T08:21:16.4335196+05:00</VoucherDate>
<VoucherNo>1</VoucherNo>
<_TokenCr>1</_TokenCr>
</CreditVouchersBody>
<CreditVouchersBody>
<AccountNo>sample string 2</AccountNo>
<AccountTitle>sample string 12</AccountTitle>
<Amount>4</Amount>
<Credit>13</Credit>
<Debit>14</Debit>
<Difference>9</Difference>
<FBalance>10</FBalance>
<IsFinalize>true</IsFinalize>
<Narration>sample string 3</Narration>
<PrevBal>5</PrevBal>
<Token>7</Token>
<TokenCr>1</TokenCr>
<TokenDr>8</TokenDr>
<VoucherDate>2025-12-16T08:21:16.4335196+05:00</VoucherDate>
<VoucherNo>1</VoucherNo>
<_TokenCr>1</_TokenCr>
</CreditVouchersBody>
</ListBody>
<NewVoucherNo>1</NewVoucherNo>
<OfficeID>5</OfficeID>
<UserNo>4</UserNo>
<VoucherDate>2025-12-16T08:21:16.4335196+05:00</VoucherDate>
<VoucherNo>1</VoucherNo>
<VoucherNoNew>9</VoucherNoNew>
</CreditVouchersModel>
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. |