Skip to main content

Payment Order

How to Create a Payment Order in the REST API?

Written by Lenka Haringerová

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&#xCD; &#xDA;&#x10C;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

/c/{firma}/prikaz-k-uhrade/{id}/stazeni
?dat-splat-z-hlavicky= options: true, false

Retrieves a file with the electronic description of the payment order, suitable for submission to the bank.
The optional parameter dat-splat-z-hlavicky can be used to control the due date setting in the payment order header.

GET

/c/{firma}/prikaz-k-uhrade/{id}/odeslani-fio
?dat-splat-z-hlavicky= options: true, false

Performs an online submission of the payment order (Fio Bank with online integration only).
The optional parameter dat-splat-z-hlavicky can be used to control the due date setting in the payment order header.

PUT/POST

/c/{firma}/prikaz-k-uhrade/{id}/zrusit-odeslani

Cancels the submission status of the payment order.

Did this answer your question?