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.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.