Request Information
Method returns empty cash voucher with default values. Returned resource is suitable for creation of a new cash voucher.
Example URL:
v2.0/CashVouchers/Default/{movementType}
Name | Description | Type | Additional information |
---|---|---|---|
movementType | MovementType |
Required |
|
movementType | MovementType |
Required |
None.
Response Information
CashVoucherPostModel
Name | Description | Type | Additional information |
---|---|---|---|
CashRegisterId |
Cash register id |
integer |
Required |
DateOfTransaction |
The date of transaction |
date |
Required |
DocumentSerialNumber |
Document Serial Number |
integer |
Required |
ElectronicRecordsOfSales |
[Deprecated] Electronic records of sales information. |
ElectronicRecordsOfSalesPostModel |
Deprecated. |
ExchangeRate |
Exchange rate |
decimal number |
None. |
ExchangeRateAmount |
Exchange rate amount |
decimal number |
None. |
IsIncomeTax |
Include subject to income tax |
boolean |
Required |
Items |
Model of entity for inserting a new item. |
Collection of CashVoucherItemPostModel |
Required |
MovementType |
The movement type (issue/entry) |
MovementType |
Required |
Name |
Document name or description |
string |
Required Length: between 0 and 200 inclusive |
PairedDocument |
Paired document |
PairedDocumentPostModel |
None. |
PartnerId |
Id of the partner's contact. |
integer |
None. |
Person |
Name of the supplier/customer. Can also be used as a note. |
string |
Length: between 0 and 100 inclusive |
Tags |
Tags |
Collection of integer |
None. |
VariableSymbol |
Variable symbol |
string |
Length: between 0 and 10 inclusive |
Sample:
{ "CashRegisterId": 1, "DateOfTransaction": "2025-01-25T18:04:33.4805944+00:00", "DocumentSerialNumber": 3, "ElectronicRecordsOfSales": { "EetStatus": null, "IsEet": false, "RegisteredSale": null, "EetResponsibility": 0 }, "ExchangeRate": 1.0, "ExchangeRateAmount": 1.0, "IsIncomeTax": true, "Items": [ { "CustomVat": 1.0, "Name": "sample string 1", "Price": 2.0, "PriceType": 0, "VatCodeId": 1, "VatRateType": 0 } ], "MovementType": 1, "Name": "sample string 5", "PairedDocument": { "DocumentId": 1, "DocumentType": 0 }, "PartnerId": 1, "Person": "sample string 6", "Tags": [ 1 ], "VariableSymbol": "sample string 7" }
Sample:
<CashVoucherPostModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.Version3.CashVoucher"> <CashRegisterId>1</CashRegisterId> <DateOfTransaction>2025-01-25T18:04:33.4805944+00:00</DateOfTransaction> <DocumentSerialNumber>3</DocumentSerialNumber> <ElectronicRecordsOfSales xmlns:d2p1="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.Version3.RegisteredSale"> <d2p1:EetResponsibility>Idoklad</d2p1:EetResponsibility> <d2p1:EetStatus i:nil="true" /> <d2p1:IsEet>false</d2p1:IsEet> <d2p1:RegisteredSale i:nil="true" /> </ElectronicRecordsOfSales> <ExchangeRate>1</ExchangeRate> <ExchangeRateAmount>1</ExchangeRateAmount> <IsIncomeTax>true</IsIncomeTax> <Items> <CashVoucherItemPostModel> <CustomVat>1</CustomVat> <Name>sample string 1</Name> <Price>2</Price> <PriceType>WithVat</PriceType> <VatCodeId>1</VatCodeId> <VatRateType>0</VatRateType> </CashVoucherItemPostModel> </Items> <MovementType>Entry</MovementType> <Name>sample string 5</Name> <PairedDocument xmlns:d2p1="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.Version3.Base"> <d2p1:DocumentId>1</d2p1:DocumentId> <d2p1:DocumentType>IssuedInvoice</d2p1:DocumentType> </PairedDocument> <PartnerId>1</PartnerId> <Person>sample string 6</Person> <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> </Tags> <VariableSymbol>sample string 7</VariableSymbol> </CashVoucherPostModel>