Request Information

Method returns empty sales receipt with default values. Returned resource is suitable for creation of a new sales receipt.

Example URL:
v2.0/SalesReceipts/Default

None.

None.

Response Information

SalesReceiptApiModelPost
NameDescriptionTypeAdditional information
DateOfIssue

Date of issue

date

Data type: DateTime

DocumentSerialNumber

Document Serial Number

integer

None.

EKasa

Electronic records of sales information.

EKasaApiModel

Required For Sk Legislation.

Used in Sk legislation.

ElectronicRecordsOfSales

Electronic records of sales information.

ElectronicRecordsOfSalesApiModel

Used in Cz legislation.

Exported

Export to another accounting software indication. (It is recommended to use only one external accounting software beside iDoklad.)

ExportedState

None.

ExternalDocumentNumber

Number assigned by external application.

string

Required

Length: between 0 and 20 inclusive

IsCumulative

Cummulative sales receipt

boolean

None.

IsIncomeTax

Include subject to income tax

boolean

Used in Cz legislation.

Name

Sales receipt name. If not set, it will be set to the first item's name.

string

None.

PartnerId

Supplier contact id

integer

None.

SalesPosEquipmentId

POS equipment id.

integer

None.

SalesReceiptItems

List of items. Must be non-empty.

Collection of SalesReceiptItemApiModelPost

None.

SalesReceiptPayments

List of payments.

Collection of SalesReceiptPaymentApiModelPost

Collection with length within range 1 and 2.

Sample:
{
  "DateOfIssue": "2021-05-09T23:24:29.6837765+00:00",
  "DocumentSerialNumber": 2,
  "ExternalDocumentNumber": "sample string 3",
  "IsCumulative": true,
  "Name": "sample string 5",
  "ElectronicRecordsOfSales": {
    "EetStatus": 1,
    "IsEet": true,
    "RegisteredSale": {
      "BaseTaxBasicRateHc": 1.0,
      "BaseTaxReducedRate1Hc": 2.0,
      "BaseTaxReducedRate2Hc": 3.0,
      "BaseTaxZeroRateHc": 4.0,
      "Bkp": "sample string 5",
      "DateOfAnswer": "2021-05-09T23:24:29.6837765+00:00",
      "DateOfSale": "2021-05-09T23:24:29.6837765+00:00",
      "DateOfSend": "2021-05-09T23:24:29.6837765+00:00",
      "Fik": "sample string 9",
      "Pkp": "sample string 10",
      "ReceiptNumber": "sample string 11",
      "SalesOfficeDesignation": 12,
      "SalesPosEquipmentId": 1,
      "TaxBasicRateHc": 13.0,
      "TaxReducedRate1Hc": 14.0,
      "TaxReducedRate2Hc": 15.0,
      "TotalAdvancePayment": 16.0,
      "TotalFromAdvancePayment": 17.0,
      "TotalTravelServiceHc": 18.0,
      "TotalUsedGoodsBasicRateHc": 19.0,
      "TotalUsedGoodsReducedRate1Hc": 20.0,
      "TotalUsedGoodsReducedRate2Hc": 21.0,
      "TotalWithVatHc": 22.0,
      "Uuid": "5298a8cc-5f71-4b55-a3f4-a31b0ade31f0",
      "VatIdentificationNumber": "sample string 24"
    },
    "EetResponsibility": 0
  },
  "EKasa": {
    "IsRegistered": true
  },
  "SalesReceiptItems": [
    {
      "Amount": 1.0,
      "Name": "sample string 2",
      "Price": 3.0,
      "PriceListItemId": 1,
      "PriceType": 0,
      "Unit": "sample string 4",
      "VatRateType": 0
    }
  ],
  "SalesReceiptPayments": [
    {
      "PaymentAmount": 1.0,
      "PaymentOptionId": 2,
      "PaymentTransactionCode": "sample string 3"
    }
  ],
  "SalesPosEquipmentId": 1,
  "Exported": 0,
  "PartnerId": 1,
  "IsIncomeTax": true
}
Sample:
<SalesReceiptApiModelPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.SalesReceipt">
  <DateOfIssue>2021-05-09T23:24:29.6837765+00:00</DateOfIssue>
  <DocumentSerialNumber>2</DocumentSerialNumber>
  <EKasa xmlns:d2p1="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">
    <d2p1:IsRegistered>true</d2p1:IsRegistered>
  </EKasa>
  <ElectronicRecordsOfSales xmlns:d2p1="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">
    <d2p1:EetResponsibility>Idoklad</d2p1:EetResponsibility>
    <d2p1:EetStatus>NotRegistered</d2p1:EetStatus>
    <d2p1:IsEet>true</d2p1:IsEet>
    <d2p1:RegisteredSale>
      <d2p1:BaseTaxBasicRateHc>1</d2p1:BaseTaxBasicRateHc>
      <d2p1:BaseTaxReducedRate1Hc>2</d2p1:BaseTaxReducedRate1Hc>
      <d2p1:BaseTaxReducedRate2Hc>3</d2p1:BaseTaxReducedRate2Hc>
      <d2p1:BaseTaxZeroRateHc>4</d2p1:BaseTaxZeroRateHc>
      <d2p1:Bkp>sample string 5</d2p1:Bkp>
      <d2p1:DateOfAnswer>2021-05-09T23:24:29.6837765+00:00</d2p1:DateOfAnswer>
      <d2p1:DateOfSale>2021-05-09T23:24:29.6837765+00:00</d2p1:DateOfSale>
      <d2p1:DateOfSend>2021-05-09T23:24:29.6837765+00:00</d2p1:DateOfSend>
      <d2p1:Fik>sample string 9</d2p1:Fik>
      <d2p1:Pkp>sample string 10</d2p1:Pkp>
      <d2p1:ReceiptNumber>sample string 11</d2p1:ReceiptNumber>
      <d2p1:SalesOfficeDesignation>12</d2p1:SalesOfficeDesignation>
      <d2p1:SalesPosEquipmentId>1</d2p1:SalesPosEquipmentId>
      <d2p1:TaxBasicRateHc>13</d2p1:TaxBasicRateHc>
      <d2p1:TaxReducedRate1Hc>14</d2p1:TaxReducedRate1Hc>
      <d2p1:TaxReducedRate2Hc>15</d2p1:TaxReducedRate2Hc>
      <d2p1:TotalAdvancePayment>16</d2p1:TotalAdvancePayment>
      <d2p1:TotalFromAdvancePayment>17</d2p1:TotalFromAdvancePayment>
      <d2p1:TotalTravelServiceHc>18</d2p1:TotalTravelServiceHc>
      <d2p1:TotalUsedGoodsBasicRateHc>19</d2p1:TotalUsedGoodsBasicRateHc>
      <d2p1:TotalUsedGoodsReducedRate1Hc>20</d2p1:TotalUsedGoodsReducedRate1Hc>
      <d2p1:TotalUsedGoodsReducedRate2Hc>21</d2p1:TotalUsedGoodsReducedRate2Hc>
      <d2p1:TotalWithVatHc>22</d2p1:TotalWithVatHc>
      <d2p1:Uuid>5298a8cc-5f71-4b55-a3f4-a31b0ade31f0</d2p1:Uuid>
      <d2p1:VatIdentificationNumber>sample string 24</d2p1:VatIdentificationNumber>
    </d2p1:RegisteredSale>
  </ElectronicRecordsOfSales>
  <Exported>0</Exported>
  <ExternalDocumentNumber>sample string 3</ExternalDocumentNumber>
  <IsCumulative>true</IsCumulative>
  <IsIncomeTax>true</IsIncomeTax>
  <Name>sample string 5</Name>
  <PartnerId>1</PartnerId>
  <SalesPosEquipmentId>1</SalesPosEquipmentId>
  <SalesReceiptItems>
    <SalesReceiptItemApiModelPost>
      <Amount>1</Amount>
      <Name>sample string 2</Name>
      <Price>3</Price>
      <PriceListItemId>1</PriceListItemId>
      <PriceType>0</PriceType>
      <Unit>sample string 4</Unit>
      <VatRateType>0</VatRateType>
    </SalesReceiptItemApiModelPost>
  </SalesReceiptItems>
  <SalesReceiptPayments>
    <SalesReceiptPaymentApiModelPost>
      <PaymentAmount>1</PaymentAmount>
      <PaymentOptionId>2</PaymentOptionId>
      <PaymentTransactionCode>sample string 3</PaymentTransactionCode>
    </SalesReceiptPaymentApiModelPost>
  </SalesReceiptPayments>
</SalesReceiptApiModelPost>