Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetching all invoices by order id #64

Open
vegahar opened this issue Aug 24, 2022 · 1 comment
Open

Fetching all invoices by order id #64

vegahar opened this issue Aug 24, 2022 · 1 comment

Comments

@vegahar
Copy link

vegahar commented Aug 24, 2022

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?

@supertosse
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants