Invoice type: ACCREC (accounts receivable/sales) or ACCPAY (accounts payable/bills).
Statusstring
Invoice status.
DueDatestring
Due date in YYYY-MM-DD format.
ContactIDstring
Xero Contact ID (UUID). At least one of contact_id or contact_name must be provided.
LineItemsarray
Required
List of line items for the invoice.
Referencestring
Reference or purchase order number.
tenant_idstring
Xero tenant/organization ID. If not provided, uses the first connected tenant. In multi-org setups, pass the same tenant_id consistently across all Xero tool calls.
ContactNamestring
Contact name. At least one of contact_id or contact_name must be provided.
CurrencyCodestring
Currency code (e.g., USD, EUR).
InvoiceNumberstring
Invoice number (auto-generated if not provided). WARNING: If this matches an existing invoice number, Xero will attempt to UPDATE that invoice instead of creating a new one. Omit this field to ensure a new invoice is created, or ensure the number is unique.
Observable output
data
Required
Data from the action execution
errorstring
Error if any occurred during the execution of the action
successfulboolean
Required
Whether or not the action execution was successful or not