xero_invoices_create
Create sales invoices or bills in Xero by specifying invoice type, contact, and at least one line item.
Instructions
Create a new invoice in Xero. Requires type, contact, and at least one line item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Type | Yes | Invoice type: ACCREC (sales invoice) or ACCPAY (bill) (required) | |
| ContactID | Yes | The contact ID to create the invoice for (required) | |
| LineItems | Yes | Array of line items (required). Each item needs Description, Quantity, UnitAmount, and AccountCode. | |
| Date | No | Invoice date in YYYY-MM-DD format | |
| DueDate | No | Due date in YYYY-MM-DD format | |
| Reference | No | Invoice reference/PO number | |
| Status | No | Initial invoice status (default: DRAFT) |