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": 2,
"ReceiptNumber": "sample string 3",
"Date": "sample string 4",
"Narration": "sample string 5",
"NetAmount": 6.1,
"TotalAmount": 7.1,
"Cgst": 8.1,
"CgstInPercentage": 9.1,
"Sgst": 10.1,
"SgstInPercentage": 11.1,
"Igst": 12.1,
"IgstInPercentage": 13.1,
"Tds": 14.1,
"TdsInPercentage": 15.1,
"TaxAmount": 16.1,
"ServiceTax": 17.1,
"ServiceTaxInPercentage": 18.1,
"PaymentType": "sample string 19",
"ChequeNumber": "sample string 20",
"ChequeDate": "sample string 21",
"TaxType": "sample string 22",
"LedgerFromId": 23,
"LedgerToId": 24,
"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>8.1</Cgst> <CgstInPercentage>9.1</CgstInPercentage> <ChequeDate>sample string 21</ChequeDate> <ChequeNumber>sample string 20</ChequeNumber> <Date>sample string 4</Date> <Igst>12.1</Igst> <IgstInPercentage>13.1</IgstInPercentage> <JournalVoucherId>1</JournalVoucherId> <LedgerFromId>23</LedgerFromId> <LedgerToId>24</LedgerToId> <Narration>sample string 5</Narration> <NetAmount>6.1</NetAmount> <PaymentType>sample string 19</PaymentType> <ReceiptNumber>sample string 3</ReceiptNumber> <ServiceTax>17.1</ServiceTax> <ServiceTaxInPercentage>18.1</ServiceTaxInPercentage> <Sgst>10.1</Sgst> <SgstInPercentage>11.1</SgstInPercentage> <TaxAmount>16.1</TaxAmount> <TaxType>sample string 22</TaxType> <Tds>14.1</Tds> <TdsInPercentage>15.1</TdsInPercentage> <TotalAmount>7.1</TotalAmount> <Type>sample string 1</Type> <VoucherNumber>2</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.