GET /clients API doest not includes invoices

Hi everyone, immigrating from v4 to v5, and loading invoices not really working for me, I want to find all clients for some email and attach invoices. But in API docs it says i can use include=invoices.

So, is it possible somehow to load them?

Hi,

I don’t believe invoices are available as an include for clients

You can instead load the invoices directly using /api/v1/invoices

It’s fine, but is it possible to filter invoices by user_id or client_id ?

In UI invoicing.co it loads all available invoices, even if i want to check invoices of specific client.

You can add ?client_id=<value> to the URL to filter the results