create-invoice
Generate invoices in Xero accounting software by specifying contact details, line items, and invoice type. Returns a direct link to view the created invoice.
Instructions
Create an invoice in Xero. When an invoice is created, a deep link to the invoice in Xero is returned. This deep link can be used to view the invoice in Xero directly. This link should be displayed to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contactId | Yes | The ID of the contact to create the invoice for. Can be obtained from the list-contacts tool. | |
| lineItems | Yes | ||
| type | Yes | The type of invoice to create. ACCREC is for sales invoices, Accounts Receivable, or customer invoices. ACCPAY is for purchase invoices, Accounts Payable invoices, supplier invoices, or bills. If the type is not specified, the default is ACCREC. | |
| reference | No | A reference number for the invoice. | |
| date | No | The date the invoice was created (YYYY-MM-DD format). |