If you ask the invoice API for invoices, it can return invoices; it does not need access to everything else in the accounting ...