Gets an existing invoice by ID.
The getInvoice() function returns a Promise that resolves to the invoice with the specified ID.
getInvoice()
ID of the invoice to get.