Tripletex / tripletex-api2

Tripletex API 2 resources and examples
MIT License
38 stars 43 forks source link

Fetching all invoices by order id #64

Open vegahar opened 2 years ago

vegahar commented 2 years ago

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:

Regarding webhooks In test env there are only one event of event type invoice.charged. Will this event type emit on credit notes?

supertosse commented 2 years ago

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