tripletex-api2
tripletex-api2 copied to clipboard
Fetching all invoices by order id
Is there any way of fetching all invoices (Faktura and kreditnota) by an order id without doing the following steps?
- Fetch all invoices by a date range (extend search if the credit note is in a different month)
- Filter invoices by looking at the order id
Questions:
- Is it possible to extend OrderDto with a list of references to invoices?
- Is it possible to enable invoice filtering by order ids?
Regarding webhooks
In test env there are only one event of event type invoice.charged. Will this event type emit on credit notes?
Does not look like there is a better way. This is some good input, and I will create a task on it, but can't promise anything about when it will be prioritized. invoice.charged will be triggered on credit notes