yagna icon indicating copy to clipboard operation
yagna copied to clipboard

Support status query param for invoices API

Open grisha87 opened this issue 1 year ago • 0 comments

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)

grisha87 avatar Jan 18 '24 12:01 grisha87