It would be beneficial and reduce load on servers if more status fields were available in API calls.
E.g. Pass status='unpaid' into GetInvoices and only Unpaid are returned so that the front-end isn't responsible for removing the unnecessary extra data, reducing irrelevant data.
It's been implemented with GetTickets, but nowhere else.??https://developers.whmcs.com/api-reference/gettickets/