Skip to main content

Bonds/Links of ZDD --- **Note:** "ZDD" likely refers to a specific system or document type. Here is the clean translation: Tax Document Relationships

How to Link a Tax Document for Domestic Transactions with a Bank Document in the REST API

Written by Lenka Haringerová

Via the REST API, it is possible to link a advance tax document (ZDD) to a payment from a bank or cash document that settles the advance.

However, it is not possible to create a ZDD directly from a received payment as in the desktop application. The ZDD must first be created, and then the link to the relevant payment must be established.

<?xml version="1.0"?>
<!-- vytvoření vazby zdd mezi zdd a bankou -->
<winstrom version="1.0">
<faktura-vydana>
<!-- zálohový daňový doklad -->
<id>code:VF1-0001/2017</id>
<!-- lze normálně uvést další vlastnosti dokladu jako při běžném importu -->
<vytvor-vazbu-zdd>
<uhrada type="banka">code:B+0001/2017</uhrada>
</vytvor-vazbu-zdd>
</faktura-vydana>
</winstrom>
<?xml version="1.0"?>
<!-- vytvoření vazby zdd mezi zdd a pokladnou -->
<winstrom version="1.0">
<faktura-vydana>
<!-- zálohový daňový doklad -->
<id>code:VF1-0001/2017</id>
<!-- lze normálně uvést další vlastnosti dokladu jako při běžném importu -->
<vytvor-vazbu-zdd>
<uhrada type="pokladni-pohyb">code:P+0001/2017</uhrada>
</vytvor-vazbu-zdd>
</faktura-vydana>
</winstrom>

The payment document identifier (tag <uhrada> ) can be specified according to the standard rules. If the payment document is not found, the import will end with an error.

If the payment type (attribute type) is not specified, it is assumed that the payment type is a bank document.

<?xml version="1.0"?>
<!-- vytvoření vazby zdd mezi zdd a úhradou bez uvedením typu platby -->
<winstrom version="1.0">
<faktura-vydana>
<!-- zálohový daňový doklad -->
<id>code:VF1-0001/2017</id>
<!-- lze normálně uvést další vlastnosti dokladu jako při běžném importu -->
<vytvor-vazbu-zdd>
<uhrada>code:B+0001/2017</uhrada>
</vytvor-vazbu-zdd>
</faktura-vydana>
</winstrom>

A single ZDD can only be linked to one payment, and only one ZDD can be linked to a single payment.

If a ZDD is already linked to a payment and an attempt is made to link it to a different one, the import will end with an error. Similarly, if a payment is already linked to a ZDD and an attempt is made to link the same payment to a different ZDD, the import will also end with an error.

It is also possible to remove a ZDD link via the REST API.

<?xml version="1.0"?>
<!-- zrušení vazby zdd -->
<winstrom version="1.0">
<faktura-vydana>
<!-- zálohový daňový doklad -->
<id>code:VF1-0001/2017</id>
<!-- lze normálně uvést další vlastnosti dokladu jako při běžném importu -->
<zrus-vazbu-zdd/>
</faktura-vydana>
</winstrom>
Did this answer your question?