Skip to main content

Creating a Backup from an Order While Preserving Items Using the REST API

How to use the API to create a deposit from a received order so that the order line items remain itemized in the deposit?

Written by Petr Pech

In this case, the procedure mentioned in the documentation using the "Create issued deposit invoice" service does not apply.

It is necessary to fulfill the order using the first procedure mentioned in the documentation, i.e., to create an issued invoice from it with the document type set to deposit invoice.

Example:

<winstrom version="1.0">
<objednavka-prijata>
<id>218</id>
<realizaceObj type="faktura-vydana">
<typDokl>code:ZÁLOHA</typDokl>
<polozkyObchDokladu>
<polozka>
<cisRad>1</cisRad>
<mj>1</mj>
</polozka>
</polozkyObchDokladu>
</realizaceObj>
</objednavka-prijata>
</winstrom>>
Did this answer your question?