Adding additional parameters to get_invoices() to allow for sorting
Making call_api() method public