Tripletex / Tripletex/tripletex-api2

Fetching all invoices by order id

Open
#64 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
49
Forks
47
Avg merge
1h 1m
Merged PRs (30d)
1

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the API definitions for OrderDto, invoice search, and the invoice.charged webhook mentioned in the issue. Clarify whether the desired outcome is invoice references on orders, order-id filtering, webhook behavior for credit notes, or all three before defining completion.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.