Skip to main content

Payment of an Invoice Using Overpayments in Cash Register and Bank

How to Pay Invoices from a Bank or Cash Register Overpayment via REST API?

Written by Lenka Haringerová

One of the features of ABRA Flexi is the ability to pay an invoice from overpayments in a bank account or cash register.

When matching a payment to an invoice, the company is filled in, and if the payment is greater than the invoice amount, an overpayment remains. This overpayment can then be automatically matched to an invoice using this feature.

This is done using the uhrad-preplatky action as follows:

<?xml version="1.0"?>
<winstrom version="1.0">
<faktura-vydana action="uhrad-preplatky">
<id>17</id>
</faktura-vydana>
</winstrom>

The action can also be triggered in bulk for a group of documents using a filter:

<?xml version="1.0"?>
<winstrom version="1.0">
<faktura-vydana action="uhrad-preplatky" filter="not stavUhrK begins 'stavUhr.uhrazeno' and typDokl = 'code:INTERNET'"></faktura-vydana>
</winstrom>
Did this answer your question?