A payment order can be created via the REST API using the standard HTTP operations PUT or POST on the /c/{firma}/prikaz-k-uhrade record.
Example of creating a payment order in XML format:
<?xml version="1.0"?>
<winstrom version="1.0">
<!-- Příkazy k úhradě -->
<prikaz-k-uhrade>
<banka>code:BANKOVNÍ ÚČET</banka>
<polozky>
<!-- Položky -->
<prikaz-k-uhrade-polozka>
<buc>123456</buc>
<castka>1200.0</castka>
<smerKod>code:0100</smerKod>
</prikaz-k-uhrade-polozka>
<!-- Položka uhrazující zadaný doklad -->
<prikaz-k-uhrade-polozka>
<doklFak>code:PF1478/2020</doklFak>
</prikaz-k-uhrade-polozka>
</polozky>
</prikaz-k-uhrade>
</winstrom>
Advanced operations:
GET |
| Retrieves a file with the electronic description of the payment order, suitable for submission to the bank. |
GET |
| Performs an online submission of the payment order (Fio Bank with online integration only). |
PUT/POST |
| Cancels the submission status of the payment order. |
