Deal Invoicing

Deal Invoicing

Create Xero invoices from deals and track their status

Overview

Deal Invoicing lets revenue and operations teams create sales invoices in Xero directly from deal and company records in Attio and check invoice payment status on the record without switching tabs.

When a deal closes or a customer needs an invoice, anyone on the team can open the Create Xero invoice action on a deal or company record. The form prefills the contact name, line description, unit amount, currency, invoice date, and due date from the record and the workspace defaults. Submitting the form finds the matching Xero contact by name (or creates a new contact with that name) and creates a single-line sales invoice in Xero as a draft, or as submitted for approval when a workspace admin allows it.

On deal and company records, the Xero invoices widget displays the latest linked invoice number, status badge (Draft, Submitted, Awaiting payment, Paid, Voided, or Deleted), amount due, and how recently the status was checked. Clicking the widget opens a table of all linked invoices for that record (up to 20 per record) with amount due, total, due date, a manual Refresh button, and an Open in Xero deep link that opens the invoice directly in the connected Xero organisation.

Scope and boundaries

Deal Invoicing is hosted entirely on the Attio App SDK with no external servers or background jobs. It reads status from Xero on demand when a user views a record widget or opens the invoices dialog (cached for 5 minutes, with manual refresh available once every 30 seconds per record). It does not run automatic background sync, does not sync payments or write attributes back to Attio records, and never approves or emails invoices in Xero. No Attio data is sent to Xero until a workspace admin explicitly grants in-app consent on the app settings page.

Trademark and non-affiliation notice

Deal Invoicing is an independent app built by Orestis Zambounis, sole proprietor, doing business as Zambounis Technology (OZET), and is not affiliated with, endorsed by, or sponsored by Attio Ltd. Xero is a trademark of Xero Limited. Deal Invoicing is not affiliated with, endorsed by, or certified by Xero Limited.

How it works

1. Create an invoice from a deal or company record

Open any deal or company record in Attio and trigger Create Xero invoice from the quick-action bar below the record title or via the command menu (CMD+K).

  • Automatic prefill from the record: On a deal record, the form prefills Contact name from the associated company, Description from the deal name, Quantity as 1, Unit amount and Currency from the deal value (falling back to the Xero organisation base currency when the deal has no value), Invoice date as today, and Due date from the workspace default due days. On a company record, Contact name prefills from the company name and Currency prefills from the Xero organisation base currency.
  • Contact matching and ambiguity choice: When you submit, Deal Invoicing searches Xero contacts by name. If one active contact matches, the invoice is linked to that contact. If no contact matches, the app creates a new Xero contact using the name only (no email addresses or street addresses are sent). If several Xero contacts share the same name, the dialog presents a dropdown with each matching contact name and contact number so you can pick the right one.
  • Draft by default, optional submit for approval: Every invoice is created as Draft by default. When a workspace admin enables Allow submitting invoices for approval and selects a default Revenue account in the app settings, the dialog also offers Submitted for approval.
  • Duplicate protection: Repeating an unchanged submission after a network timeout replays the same request key within Xero's 6-minute window so a retry cannot create a duplicate invoice. If an invoice was created for the same record within the last 10 minutes, the dialog displays a reminder banner before you create another.

2. Track invoice status on the record

Once an invoice is created, Deal Invoicing links the invoice ID to the deal or company record in workspace storage.

  • Record widget summary: The Xero invoices widget on the record shows the latest invoice number, current status badge, amount due with currency, and a count of any additional linked invoices (+N more).
  • All linked invoices dialog: Clicking the widget opens the Xero invoices dialog listing up to 20 linked invoices newest first, showing Invoice, Status, Amount due, Total, Due date, and an Open in Xero link for each row.
  • On-demand refresh: Status snapshots are cached for 5 minutes so opening a record is fast and stays well within Xero API rate limits. Clicking Refresh in the dialog fetches live status from Xero immediately (allowed once every 30 seconds per record). If Xero is temporarily unavailable, the widget and dialog display the last cached snapshot with a clear timestamp notice.

Configure

Step 1. Connect Xero on the Connections tab

Setup starts on the app's built-in Connections tab (Settings > Apps & integrations > Deal Invoicing > Connections). Click Connect under Workspace connection to sign in to Xero and authorise one organisation. Connecting sends no Attio data.

Step 2. Allow data sharing and choose defaults on the Settings tab

Switch to the Settings tab next to Connections:

  1. Data sharing with Xero: The section lists what is sent to Xero (contact name, line description, quantity, unit amount, currency, invoice and due dates, the status, and the revenue account code if one is set; the contact name is used to find or create the Xero contact) and what is read back (invoice number, status, total, amount due and paid, currency, due date, matching contact names and numbers, the organisation name, short code and base currency, and revenue account names). Click Allow sending to Xero: by allowing, the admin agrees to the terms and privacy policy, and the app records which admin agreed, the date and the version. Only admins can allow or withdraw; the first consent starts the 14-day Pro trial without a card.
  2. Xero connection: A single authorised organisation is selected automatically (Connected to <organisation name>.); when several are authorised, pick one under Xero organisation.
  3. Invoice defaults: Choose an optional default Revenue account, set Due in (days) (0 to 120, default 14), and optionally enable Allow submitting invoices for approval (requires a selected revenue account).
  4. Plan: Shows Trial, 14 days left, Free, x of 3 invoices used this month, or Pro. Upgrade to Pro (USD 29 per month) opens Stripe checkout; afterwards return to Settings or click Check subscription. Manage subscription opens the Stripe customer portal.

Step 3. Add the Xero invoices widget to record layouts

Add the widget by hand: on a deal or company record, click Record actions (...) > Configure page > Add widget under Highlights > Xero invoices > Save changes.

Withdrawing, disconnecting and deleting data

Withdraw consent stops all calls to Xero; existing invoice links stay hidden until sending is allowed again. Removing the Xero connection on the Connections tab deletes the invoice links, cached summaries, consent, organisation choice, invoice defaults, trial state and usage counts the app stored in Attio. Your invoices stay in Xero.

Uninstalling the app runs the same deletion and also removes the Xero invoices widget from record layouts.

Attio cannot run this deletion when Xero access has ended or the admin who connected has left. Then, or at any time, an admin can click Delete all app data at the bottom of the Settings tab: after a confirmation it deletes everything the app stored in Attio, with or without a Xero connection.