Global API
...
Request
Invoice
Create
2min
In Xero, the "Invoice" object includes Invoices, Bills, and Credit Notes. So, when creating the Invoice, set the field "Type" with the value "ACCREC".
In order to send a Xero Invoice via email after successful creation, use the 'emailInvoice' parameter in the 'requestJSON' section of the code provided for creating an Invoice. Simply pass it as shown in the create request example above.