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
Name | Description | Type | Additional 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. |
{ "DateOfIssue": "2024-11-13T21:06:00.9939143+00:00", "DocumentSerialNumber": 2, "ExternalDocumentNumber": "sample string 3", "IsCumulative": true, "Name": "sample string 5", "ElectronicRecordsOfSales": { "EetStatus": null, "IsEet": false, "RegisteredSale": null, "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 }
<SalesReceiptApiModelPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.SalesReceipt"> <DateOfIssue>2024-11-13T21:06:00.9939143+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 i:nil="true" /> <d2p1:IsEet>false</d2p1:IsEet> <d2p1:RegisteredSale i:nil="true" /> </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>