Skip to main content

Payment Status by Date REST API

How to Generate a Payment Balance as of a Specific Date via API

Written by Petr Pech

Using the REST API, you can check the payment status as of a given date with a GET request to the URL /c/{firma}/saldo-k-datu, where {firma} is the company's database identifier. Data is available in both XML and JSON.

When generating the report, you can apply filtering on the record's fields. The record also supports summation.


Parameters

All parameters are optional.

Parameter

Meaning

Default value

datum

The date as of which the payment status is checked.

current day

modul

A list of modules to include. Allowed values are FAV, PHL, FAP, and ZAV; the parameter can be specified multiple times in the URL.

all four

dleUcto

A flag indicating whether the listing relates to the accounting date or the issue date.

true — i.e., by accounting date

⚠️ For this service, the modul parameter uses a different set of allowed values than for saldo: here, FAV is used, whereas for saldo, modulUcetni.FAV is used instead. Mixing them up will result in a 400 error, in which the server will list the allowed values.


Call examples

Saldo as of a date, restricted by a filter on the issue date:

GET https://demo.flexibee.eu/c/demo/saldo-k-datu/(datVyst > '2019-12-31').xml

Saldo as of 12/12/2021, for the FAV module only, relative to the issue date:

GET /c/demo/saldo-k-datu.xml?datum=2021-12-12&modul=FAV&dleUcto=false


Related

Did this answer your question?