api/invoice_api library