Integračná dokumentácia Help

Subtotal discount

Type of operation: 0=value discount, 1=value surcharge

It applies to the turnover at the tax level - if no sale was made at that tax level, the command will declare an error and will not be processed.

If a percentage discount is to be used, it needs to be calculated in the sales application and the value needs to be sent to eKasa.

In the case of a return, the opposite type of operation must be used (discount used in sale is returned as a surcharge parameter-wise).

Script example - sale with discount

paragonBegin:0;0;0;0;0;0 itemSale:1;Item 1;1.23;A;1.00;1.23;ks subTotalDiscount:2;Subtotal discount 10%;0;0.12;A payment:3;16;0;0;0;Cash paragonEnd:4;0

Script example - return with discount

paragonBegin:0;0;0;0;0;0 itemReturn:1;Item 1;1.23;A;1.00;1.23;ks;O-09DAD1028F2D40BE9AD1028F2D2-TEST subTotalDiscount:2;Subtotal discount 10%;1;0.12;A payment:3;16;0;0;0;Cash paragonEnd:4;0

Successful response

00/paragonBegin:0;0;0;0;0;0 00/itemSale:1;Item 1;1.23;A;1.00;1.23;ks 00/subTotalDiscount:2;Subtotal discount 10%;0;0.12;A 00/payment:3;16;0;0;0;Cash 00/paragonEnd:4;0 00/

Error response

00/paragonBegin:0;0;0;0;0;0 00/itemSale:1;Item 1;1.23;A;1.00;1.23;ks 00/subTotalDiscount:2;Subtotal discount 10%;0;0.12;A 00/payment:3;16;0;0;0;Cash -3/paragonEnd:4;0 99/
Last modified: 23 februára 2026