yagna
yagna copied to clipboard
Support status query param for invoices API
Why?
We are implementing a CLI and UI tooling to manage invoices. To be specific: list and pay invoices which were received, but not dealt with yet.
What do we neeed?
It would be awesome if /payment-api/v1/invoices
would support a status
parameter which could accept a string like received
, settled
, accepted
so that we can optimize our requests towards yagna.
Acceptance Criteria
- [ ] When I specify the status of the invoies when calling for the list and then I receive a list of invoices only in that status
- [ ] The new paramter can be combined with other exising ones (afterTimestamp, maxItems)