Item discount
Type of operation: 0=value discount, 1=value surcharge, 2=% discount, 3=% surcharge
It applies to the previous item, and the VAT rate must be the same as on the previous item.
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
itemDiscount:2;Discount 10%;2;10.00;A
payment:3;16;0;0;0;Return
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
itemDiscount:2;Discount 10%;3;10.00;A
payment:3;16;0;0;0;Return
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/itemDiscount:2;Discount 10%;2;10.00;A
00/payment:3;16;0;0;0;Return
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/itemDiscount:2;Discount 10%;2;10.00;A
00/payment:3;16;0;0;0;Return
-3/paragonEnd:4;0
99/
Last modified: 23 februára 2026