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}
NameDescriptionTypeAdditional information
movementType

MovementType

Required

movementType

MovementType

Required

None.

Response Information

CashVoucherPostModel
NameDescriptionTypeAdditional information
CashRegisterId

Cash register id

integer

Required

DateOfTransaction

The date of transaction

date

Required

DocumentSerialNumber

Document Serial Number

integer

Required

ElectronicRecordsOfSales

Electronic records of sales information.

ElectronicRecordsOfSalesPostModel

None.

ExchangeRate

Exchange rate

decimal number

None.

ExchangeRateAmount

Exchange rate amount

decimal number

None.

InvoiceId

Id of paired invoice

integer

None.

InvoiceType

Type of paired invoice

InvoiceType

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

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": "2021-05-06T20:35:50.7324573+00:00",
  "DocumentSerialNumber": 3,
  "ElectronicRecordsOfSales": {
    "EetStatus": 1,
    "IsEet": true,
    "RegisteredSale": {
      "Bkp": "sample string 1",
      "DateOfAnswer": "2021-05-06T20:35:50.732",
      "DateOfSale": "2021-05-06T20:35:50.732",
      "DateOfSend": "2021-05-06T20:35:50.732",
      "Fik": "sample string 5",
      "Pkp": "sample string 6",
      "Prices": {
        "BaseTaxBasicRateHc": 1.0,
        "BaseTaxReducedRate1Hc": 2.0,
        "BaseTaxReducedRate2Hc": 3.0,
        "BaseTaxZeroRateHc": 4.0,
        "TaxBasicRateHc": 5.0,
        "TaxReducedRate1Hc": 6.0,
        "TaxReducedRate2Hc": 7.0,
        "TotalAdvancePayment": 8.0,
        "TotalFromAdvancePayment": 9.0,
        "TotalTravelServiceHc": 10.0,
        "TotalUsedGoodsBasicRateHc": 11.0,
        "TotalUsedGoodsReducedRate1Hc": 12.0,
        "TotalUsedGoodsReducedRate2Hc": 13.0,
        "TotalWithVatHc": 14.0
      },
      "ReceiptNumber": "sample string 7",
      "SalesOfficeDesignation": 8,
      "SalesPosEquipmentId": 1,
      "Uuid": "9e94a31c-8c69-4599-be00-f78f98e35872",
      "VatIdentificationNumber": "sample string 10"
    },
    "EetResponsibility": 0
  },
  "ExchangeRate": 1.0,
  "ExchangeRateAmount": 1.0,
  "InvoiceId": 1,
  "InvoiceType": 0,
  "IsIncomeTax": true,
  "Items": [
    {
      "CustomVatRate": 1.0,
      "Name": "sample string 1",
      "Price": 2.0,
      "PriceType": 0,
      "VatRateType": 0
    }
  ],
  "MovementType": 1,
  "Name": "sample string 5",
  "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>2021-05-06T20:35:50.7324573+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>NotRegistered</d2p1:EetStatus>
    <d2p1:IsEet>true</d2p1:IsEet>
    <d2p1:RegisteredSale>
      <d2p1:Bkp>sample string 1</d2p1:Bkp>
      <d2p1:DateOfAnswer>2021-05-06T20:35:50.7324573+00:00</d2p1:DateOfAnswer>
      <d2p1:DateOfSale>2021-05-06T20:35:50.7324573+00:00</d2p1:DateOfSale>
      <d2p1:DateOfSend>2021-05-06T20:35:50.7324573+00:00</d2p1:DateOfSend>
      <d2p1:Fik>sample string 5</d2p1:Fik>
      <d2p1:Pkp>sample string 6</d2p1:Pkp>
      <d2p1:Prices>
        <d2p1:BaseTaxBasicRateHc>1</d2p1:BaseTaxBasicRateHc>
        <d2p1:BaseTaxReducedRate1Hc>2</d2p1:BaseTaxReducedRate1Hc>
        <d2p1:BaseTaxReducedRate2Hc>3</d2p1:BaseTaxReducedRate2Hc>
        <d2p1:BaseTaxZeroRateHc>4</d2p1:BaseTaxZeroRateHc>
        <d2p1:TaxBasicRateHc>5</d2p1:TaxBasicRateHc>
        <d2p1:TaxReducedRate1Hc>6</d2p1:TaxReducedRate1Hc>
        <d2p1:TaxReducedRate2Hc>7</d2p1:TaxReducedRate2Hc>
        <d2p1:TotalAdvancePayment>8</d2p1:TotalAdvancePayment>
        <d2p1:TotalFromAdvancePayment>9</d2p1:TotalFromAdvancePayment>
        <d2p1:TotalTravelServiceHc>10</d2p1:TotalTravelServiceHc>
        <d2p1:TotalUsedGoodsBasicRateHc>11</d2p1:TotalUsedGoodsBasicRateHc>
        <d2p1:TotalUsedGoodsReducedRate1Hc>12</d2p1:TotalUsedGoodsReducedRate1Hc>
        <d2p1:TotalUsedGoodsReducedRate2Hc>13</d2p1:TotalUsedGoodsReducedRate2Hc>
        <d2p1:TotalWithVatHc>14</d2p1:TotalWithVatHc>
      </d2p1:Prices>
      <d2p1:ReceiptNumber>sample string 7</d2p1:ReceiptNumber>
      <d2p1:SalesOfficeDesignation>8</d2p1:SalesOfficeDesignation>
      <d2p1:SalesPosEquipmentId>1</d2p1:SalesPosEquipmentId>
      <d2p1:Uuid>9e94a31c-8c69-4599-be00-f78f98e35872</d2p1:Uuid>
      <d2p1:VatIdentificationNumber>sample string 10</d2p1:VatIdentificationNumber>
    </d2p1:RegisteredSale>
  </ElectronicRecordsOfSales>
  <ExchangeRate>1</ExchangeRate>
  <ExchangeRateAmount>1</ExchangeRateAmount>
  <InvoiceId>1</InvoiceId>
  <InvoiceType>Issued</InvoiceType>
  <IsIncomeTax>true</IsIncomeTax>
  <Items>
    <CashVoucherItemPostModel>
      <CustomVatRate>1</CustomVatRate>
      <Name>sample string 1</Name>
      <Price>2</Price>
      <PriceType>WithVat</PriceType>
      <VatRateType>0</VatRateType>
    </CashVoucherItemPostModel>
  </Items>
  <MovementType>Entry</MovementType>
  <Name>sample string 5</Name>
  <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>