Creates a new invoice.
The createInvoice()
function returns a Promise that resolves to the created invoice's
ID when the invoice is created.
Note: The customer ID and email address listed on the invoice must match an existing contact in the site's contact list.
The data used to create an invoice.