Skip to main content

Getting Document Line Items

How do I retrieve line items from issued invoices via API?

Written by Lenka Haringerová

If you want to include line items in the document listing, you need to add the parameter relations=polozkyDokladu.

When listing data from a single register, ABRA Flexi allows you to include sub-registers in the output as well (1:N or M:N relationships). A typical example is an invoice and its line items. To embed a sub-register, use the relations parameter and specify which sub-register you want to include in the output.

To get a list of all available sub-registers that can be included, append /relations to the register name (e.g. https://demo.flexibee.eu/c/demo/faktura-vydana/relations).

In the relations parameter, use the value listed as the identifier (e.g. polozkyDokladu).

Example:

https://demo.flexibee.eu/c/demo/faktura-vydana.xml – výpis faktur bez položek https://demo.flexibee.eu/c/demo/faktura-vydana.xml?relations=polozkyDokladu – výpis faktur s položkami https://demo.flexibee.eu/c/demo/faktura-vydana.xml?relations=p
Did this answer your question?