Summary
The invoice list endpoint accepts an optional ?status query param. An integration test should seed invoices across all statuses and confirm the filter returns only invoices in the requested state without leaking invoices in other states.
Scope
- Seed one invoice each in:
draft, published, funded, settled
- Request
?status=published and assert only the published invoice is returned
- Request
?status=funded and assert only the funded invoice is returned
- Request with no status param and assert all four are returned
- Request
?status=invalid and assert 422 with a validation error
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The invoice list endpoint accepts an optional
?statusquery param. An integration test should seed invoices across all statuses and confirm the filter returns only invoices in the requested state without leaking invoices in other states.Scope
draft,published,funded,settled?status=publishedand assert only the published invoice is returned?status=fundedand assert only the funded invoice is returned?status=invalidand assert 422 with a validation errorAcceptance Criteria
?status=publishedreturns only published invoices?status=fundedreturns only funded invoicesETA: 12 hours
Coordinate on Telegram