Skip to main content

REST API second reduced VAT rate type

How do I record the 2nd reduced VAT rate via the REST API?

Written by Petr Pech

The second reduced VAT rate can be entered via the REST API just like the other rates — on the line item using the rate type, or in the header of a document without line items using dedicated summary fields.


On the document line item

Just specify the rate type — Flexi will look up the percentage as of the document date:

<typSzbDphK>typSzbDph.dphSniz2</typSzbDphK>


In the document header

Totals for the second reduced rate have their own dedicated fields:

Field

Meaning

sumZklSniz2

VAT base — 2nd reduced

sumDphSniz2

VAT — 2nd reduced

sumCelkSniz2

Total including VAT — 2nd reduced

If the document has line items, do not send these fields — they will be populated from the line items. They are only used for documents without line items, together with <bezPolozek>true</bezPolozek>:

<winstrom version="1.0">
<faktura-vydana>
<typDokl>code:FAKTURA</typDokl>
<bezPolozek>true</bezPolozek>
<sumZklSniz2>100.0</sumZklSniz2>
<sumDphSniz2>10.0</sumDphSniz2>
</faktura-vydana>
</winstrom>

ℹ️ The full list of summary fields along with their descriptions is available at /c/{firma}/faktura-vydana/properties.xml. Similar fields also exist for the base and reduced rates (sumZklZakl, sumZklSniz) and for exempt supplies (sumOsv).


Related

Did this answer your question?