All appsAccounting & Finance

Xero integration

Manage a Xero organization's contacts, invoices, bills, payments, quotes, credit notes and items, email and approve invoices, and read its chart of accounts and tax rates.

Lodol's Xero connector gives your workflows 32 actions and 8 triggers, and links Xero with Gmail, Slack, Pipedrive and 3,350+ other apps.

actions
32
triggers
8

Triggers

Start a workflow when something happens in Xero.

  • New invoiceBeta. Runs for each new invoice in Xero, drafts included, with its number, total and due date, and the customer's name and email address. Watches sales invoices, or bills or both if you choose. Invoices already there when the workflow is turned on don't start it, and neither does one dated more than a week before it was entered.
  • Invoice paidBeta. Runs when an invoice in Xero is paid in full, with its number, total and the day it was paid, and the customer's name and email address, so you can thank them without looking them up. Watches sales invoices, or bills or both if you choose. Invoices paid before the workflow is turned on don't start it.
  • New quoteRuns for each new quote in Xero, drafts included, with its number, customer and total. Quotes already there when the workflow is turned on don't start it.
  • Quote added or updatedRuns each time a quote in Xero is added or changes, such as when a customer accepts or declines it, with its status, number and total.
  • New credit noteRuns for each new credit note in Xero, for customers or suppliers, with its number, contact and total.
  • New purchase orderRuns for each new purchase order in Xero, drafts included, with its number, supplier and total.
  • Contact added or updatedRuns each time a contact in Xero is added or changes, with their name, email and whether they are a customer or supplier.
  • Invoice added or updatedRuns each time an invoice in Xero is added or changes (approved, edited, paid in part or in full), with its number, status and what is owed, and the customer's name and email address. Watches sales invoices, or bills or both if you choose.

Actions

Steps a workflow can run in Xero.

  • Get the organizationRead the connected Xero organization: its name, country, base currency, financial year end and lock dates.
  • List accountsList the organization's chart of accounts. Use it to find the account code a line item should post to.
  • List tax ratesList the organization's tax rates and the tax type codes line items use to override the default rate.
  • Create a contactCreate a customer or supplier contact. Xero refuses a name another contact already holds, archived ones included.
  • Update a contactChange a contact's details. Anything left blank keeps the value Xero already holds.
  • Get a contactRead one contact in full: their name, email address, the person to address, phone numbers, addresses and what they owe. The email address is empty if Xero has none.
  • List contactsFind contacts by name, email, contact code or company number, or page through all of them.
  • Archive or restore a contactArchive a contact so it can no longer be used on new transactions, or set it back to active. An archived contact keeps its name, so the name stays taken.
  • Create an itemCreate an untracked item: a saved product or service whose code fills in a line's description, price and account. Tracked inventory items are not created here.
  • List itemsList the organization's saved products and services.
  • Delete an itemDelete an item. Xero cannot restore one afterwards; documents that already used it keep their lines.
  • Create an invoiceRaise a sales invoice or a bill against a contact. Created as a draft unless a different status is chosen; approving it posts journals and needs an account on every line. It can add the contact if they aren't in Xero yet and set the due date a number of days after the invoice date, and it gives back the invoice number, the total and due date ready to put in a message, and a link to the invoice.
  • Update an invoiceChange an invoice or move it between draft, awaiting approval and approved. Supplying line items replaces every line on the invoice.
  • Get an invoiceRead one invoice in full, with its line items, payments and credit notes applied.
  • List invoicesFind invoices and bills by status, contact, invoice number or reference. Every result carries its line items.
  • List customers with unpaid invoicesEvery customer who still owes you money on sales invoices, with their email address, each unpaid invoice (number, dates, amount, how late it is and a link) and their total due, ready for a statement or reminder email. A customer billed in two currencies appears once for each.
  • Delete or void an invoiceTake an invoice out of use. A draft or awaiting-approval invoice is deleted; an approved one with no payments against it is voided. Xero refuses the other way round.
  • Create a quoteRaise a quote for a contact. Created as a draft unless it is sent straight away.
  • List quotesFind quotes by status, contact, number or quote date.
  • Create a credit noteRaise a credit note against a customer or a supplier. Xero does not allow discounts on credit note lines.
  • List credit notesPage through the organization's credit notes, newest change first. Every result carries its line items and allocations.
  • Update a quoteChange a quote, or mark it sent, accepted, declined or invoiced. Only the fields you fill in change.
  • Add a note to an invoiceAdd a note to an invoice's history and notes in Xero, such as a reminder sent or a promise to pay, for your team to see.
  • Create a purchase orderRaise a purchase order to a supplier. Created as a draft unless you choose otherwise.
  • Update a purchase orderChange a purchase order, approve it, mark it billed, or delete it. Only the fields you fill in change.
  • List purchase ordersFind purchase orders by status or order date.
  • Approve an invoiceApprove a draft or awaiting-approval invoice or bill, so it is posted to the accounts and can be paid or emailed. Every line needs an account.
  • Email an invoiceHave Xero email a sales invoice to the customer's email address, with a link to view and pay it. The invoice must be approved or awaiting approval. Xero allows a limited number of invoice emails a day, and none from its demo company.
  • Record a paymentRecord money received against an approved invoice, or paid on an approved bill, into one of your bank accounts. It records the payment in your books; it doesn't move any money.
  • Get a paymentRead one payment: its amount, date, invoice and bank account.
  • List paymentsList payments on invoices, bills and credit notes, newest first.
  • Delete a paymentTake a payment off an invoice or bill, such as one recorded by mistake, so it is owed again. Xero keeps it, marked deleted.

Send Xero data to PostgreSQL, Amazon Redshift and other databases

Keep a copy of your Xero data where you query and report on it. When something happens in Xero, its trigger starts the workflow and the next step writes the record to your database, warehouse or Power BI, every time, with no export to run.

  • Xero to PostgreSQL

    WhenNew invoiceThenInsert rows or Upsert row

    Works with Amazon RDS, Cloud SQL, Supabase and Neon too.

  • Xero to Amazon Redshift

    WhenNew invoiceThenExecute statement

    Runs your INSERT through the Redshift Data API.

  • Xero to Google BigQuery

    WhenNew invoiceThenAdd rows

    One row at a time or by the thousand.

  • Xero to MySQL

    WhenNew invoiceThenInsert rows or Upsert row

    Works with MariaDB, Amazon RDS, Cloud SQL and PlanetScale too.

  • Xero to Snowflake

    WhenNew invoiceThenInsert row

    Values go in as bound parameters, never pasted into the SQL.

  • Xero to Microsoft Power BI

    WhenNew invoiceThenAdd rows

    Adds rows to a push dataset's table, ready for your reports.

Connect Xero with

Ideas, templates and steps for Xero with each of these apps.

Automate Xero with Lodol.

Connect Xero, then hand Lodol the job in Slack, Claude or ChatGPT.

Free plan, no credit card