Xero + icon

Xero +

Consume Xero API

Invoice → Create

AI-generated

Summary

Create a new invoice in a specified Xero organization by providing required details such as invoice type, contact, and detailed line items, with optional parameters for branding, currency, dates, status, and other invoice metadata.

Inputs

  • Organization Name or ID (required) — Select the Xero organization or provide its ID where the invoice will be created.
  • Type (required) — Specify the invoice type as either 'Bill' (Accounts Payable) or 'Sales Invoice' (Accounts Receivable).
  • Contact Name or ID (required) — Select or specify the contact associated with the invoice.
  • Line Items (required) — Add one or more line items with details including account code, description, discount rate (for sales invoices), item code, line amount, quantity, tax amounts and type, unit amount, and optional tracking categories.
  • Additional Fields — Provide optional invoice metadata like branding theme, currency and rate, invoice and due dates, invoice number, line amount tax type, payment dates, references, status (draft, submitted, authorised), URL to source document, and whether to mark the invoice as sent.

Output shape

a single record representing the created invoice

The output includes the details of the invoice as returned by Xero, reflecting all provided and computed fields after creation.

Links

Discussion