Skip to main content

Creating a Quote/Order from an Inquiry/Offer - REST API

REST API - creating a quote from an inquiry / creating an order from a quote

Written by Lenka Haringerová

Via the REST API, a quote can be created from an inquiry as follows:

<?xml version="1.0"?>
<poptavka-prijata>
<id>code:POP0001/2013</id>
<nabidni>
<id>ext:NABIDKA</id>
<!-- nepovinný externí identifikátor vytvořené nabídky -->
<typDokl>code:NAV</typDokl>
<!-- typ dokladu vytvořené nabídky, pokud není zadaný bere se z nastavení -->
</nabidni>
</poptavka-prijata>

Similarly, an order can be created from either an inquiry or a quote:

<?xml version="1.0"?>
<poptavka-prijata>
<id>code:POP0001/2013</id>
<objednej>
<id>ext:OBJEDNAVKA</id>
<!-- nepovinný externí identifikátor vytvořené objednávky -->
<typDokl>code:OBP</typDokl>
<!-- typ dokladu vytvořené objednávky, pokud není zadaný bere se z nastavení -->
</objednej>
</poptavka-prijata>

If the received order type is predefined on the issued quote type (or on the quote itself), it is not necessary to send the </typDokl> attribute.

The request may then look like this, for example:

<?xml version="1.0" encoding="utf-8"?>
<winstrom version="1.0">
<nabidka-vydana>
<id>code:NAV-0001/2023</id>
<objednej></objednej>
</nabidka-vydana>
</winstrom>
Did this answer your question?