tripletex-api2 icon indicating copy to clipboard operation
tripletex-api2 copied to clipboard

Fetching all invoices by order id

Open vegahar opened this issue 3 years ago • 1 comments

Is there any way of fetching all invoices (Faktura and kreditnota) by an order id without doing the following steps?

  1. Fetch all invoices by a date range (extend search if the credit note is in a different month)
  2. 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?

vegahar avatar Aug 24 '22 10:08 vegahar

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

supertosse avatar Aug 25 '22 11:08 supertosse