invoice: add API to add a lineitem to an invoice.