POST api/CreateVoucher
Request Information
URI Parameters
None.
Body Parameters
VoucherSaveVm| Name | Description | Type | Additional information |
|---|---|---|---|
| Type | string |
None. |
|
| VoucherNumber | integer |
None. |
|
| ReceiptNumber | string |
None. |
|
| Date | string |
None. |
|
| Narration | string |
None. |
|
| NetAmount | decimal number |
None. |
|
| TotalAmount | decimal number |
None. |
|
| Cgst | decimal number |
None. |
|
| CgstInPercentage | decimal number |
None. |
|
| Sgst | decimal number |
None. |
|
| SgstInPercentage | decimal number |
None. |
|
| Igst | decimal number |
None. |
|
| IgstInPercentage | decimal number |
None. |
|
| Tds | decimal number |
None. |
|
| TdsInPercentage | decimal number |
None. |
|
| TaxAmount | decimal number |
None. |
|
| ServiceTax | decimal number |
None. |
|
| ServiceTaxInPercentage | decimal number |
None. |
|
| PaymentType | string |
None. |
|
| ChequeNumber | string |
None. |
|
| ChequeDate | string |
None. |
|
| TaxType | string |
None. |
|
| LedgerFromId | integer |
None. |
|
| LedgerToId | integer |
None. |
|
| JournalVoucherId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Type": "sample string 1",
"VoucherNumber": 1,
"ReceiptNumber": "sample string 2",
"Date": "sample string 3",
"Narration": "sample string 4",
"NetAmount": 1.1,
"TotalAmount": 1.1,
"Cgst": 1.1,
"CgstInPercentage": 1.1,
"Sgst": 1.1,
"SgstInPercentage": 1.1,
"Igst": 1.1,
"IgstInPercentage": 1.1,
"Tds": 1.1,
"TdsInPercentage": 1.1,
"TaxAmount": 1.1,
"ServiceTax": 1.1,
"ServiceTaxInPercentage": 1.1,
"PaymentType": "sample string 5",
"ChequeNumber": "sample string 6",
"ChequeDate": "sample string 7",
"TaxType": "sample string 8",
"LedgerFromId": 1,
"LedgerToId": 1,
"JournalVoucherId": 1
}
application/xml, text/xml
Sample:
<VoucherSaveVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Models.AccountModels"> <Cgst>1.1</Cgst> <CgstInPercentage>1.1</CgstInPercentage> <ChequeDate>sample string 7</ChequeDate> <ChequeNumber>sample string 6</ChequeNumber> <Date>sample string 3</Date> <Igst>1.1</Igst> <IgstInPercentage>1.1</IgstInPercentage> <JournalVoucherId>1</JournalVoucherId> <LedgerFromId>1</LedgerFromId> <LedgerToId>1</LedgerToId> <Narration>sample string 4</Narration> <NetAmount>1.1</NetAmount> <PaymentType>sample string 5</PaymentType> <ReceiptNumber>sample string 2</ReceiptNumber> <ServiceTax>1.1</ServiceTax> <ServiceTaxInPercentage>1.1</ServiceTaxInPercentage> <Sgst>1.1</Sgst> <SgstInPercentage>1.1</SgstInPercentage> <TaxAmount>1.1</TaxAmount> <TaxType>sample string 8</TaxType> <Tds>1.1</Tds> <TdsInPercentage>1.1</TdsInPercentage> <TotalAmount>1.1</TotalAmount> <Type>sample string 1</Type> <VoucherNumber>1</VoucherNumber> </VoucherSaveVm>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.