Invoicing with Xero

Last updated: November 20, 2026

Flexnet creates each invoice and sends it to Xero shortly afterward. Invoice sync is always on while Xero is connected. The Invoicing & Payment Options section of the integration's Configuration tab controls when invoices are created and what Flexnet sends with them, and Invoice Rules can change both for some customers and orders.

For the day-to-day Orders > To Be Invoiced workflow, printing invoices, and invoices that fail to sync, see Managing Orders from Acceptance Through Invoicing.

Before You Start

When Flexnet Creates Invoices

With Enable Early Invoicing off, you create invoices from Orders > To Be Invoiced after the order is dispatched. Nothing is created automatically.

Flexnet sends the invoice to the company's Xero contact, or to the parent company's contact when Bill To Parent is on.

Turn On Early Invoicing

Early invoicing lets your team create an invoice before dispatch, either from the order or automatically at the steps you select. Use it when your team needs the Xero invoice earlier.

  1. Open Admin > Integrations and select Settings on the Xero card.

  2. Select the Configuration tab and find Invoicing & Payment Options.

  3. Turn on Enable Early Invoicing. Create Invoice Automatically When Any Of appears.

  4. Select each step at which Flexnet should create the invoice: the order is created, the order is paid, accepted, labelled, or dispatched. To create invoices only from the order, leave every step cleared.

  5. Select Save Invoicing Settings.

With Enable Early Invoicing on:

  • Create Invoice appears under Document Links on any open order that has no invoice yet. Select it and confirm the prompt. The order stays at its current stage, and Flexnet marks it as invoiced when it is dispatched.

  • Flexnet creates the invoice automatically at the first selected step the order reaches. Later steps do not create a second invoice.

  • If anything under What Stops an Invoice Being Created applies when a step is reached, Flexnet does not create the invoice.

  • If the invoice date comes from Dispatch Date, Flexnet changes an early invoice's date to the dispatch date when the order is dispatched, unless the date was set with Change Invoice Date or the invoice can no longer be edited in Xero.

  • An early invoice exists while the order is still being labeled and packed, so Flexnet updates it, and overwrites changes made to it directly in Xero, for longer. See What Flexnet Updates After the Invoice Is Created.

Turning off Enable Early Invoicing clears the selected steps. Invoices are then created from Orders > To Be Invoiced after dispatch.

An invoice rule can set different steps for some customers and orders. See Set Up Invoice Rules.

An invoice prints with the acceptance documents only when the order is created is selected, and with the packing documents only when the order is created or accepted is selected. When an invoice rule with its own steps matches the order, Flexnet checks that rule's steps instead. Xero needs time to return the invoice PDF, so an invoice created at the same stage you print is not ready for that print run. Flexnet gets the PDF from Xero only once the invoice is SUBMITTED, AUTHORISED, or paid, so a draft invoice has no PDF to print. See Managing Orders from Acceptance Through Invoicing.

Set Up Invoice Rules

Invoice Rules, below Default Invoice Status in Invoicing & Payment Options, change invoicing for the orders they match. Each rule is saved as soon as you save it, separately from Save Invoicing Settings.

  1. Under Invoice Rules, select Add Rule.

  2. Enter a Rule Name.

  3. In Apply To, choose:

    • All Customers (Default Rule): every company.

    • Specific Customer Type: every company of the Company Type you choose in Customer Type.

    • Specific Customer: the company you search for and choose in Customer.

  4. To limit the rule to some orders, choose them in Order Types and Order Sources, such as Storefront, Imported, Standing Order, or one of your eCommerce integrations. Leave either empty to match any.

  5. Set the options this rule should change, described below.

  6. Select Save Rule. Flexnet adds the rule to the bottom of the list, above the rule that matches every order if there is one, and shows "Invoice rules saved".

A rule can change:

  • Invoice Date Source: the date Flexnet sends as the invoice date. The first option, marked (Global), keeps your Invoicing & Payment Options setting. A date source chosen in a rule applies even when Send Invoice Date is off, and Change Invoice Date then appears on those orders.

  • Invoice Trigger: with Use Global on, the rule keeps your account's steps. Turn off Use Global to choose different steps under Create Invoice Automatically When Any Of for the orders the rule matches. With no step selected, their invoices are only created manually.

  • Invoice Status: DRAFT, SUBMITTED, or AUTHORISED for the orders the rule matches. The first option, marked (Global), keeps Default Invoice Status. See Set the Invoice Status.

A rule's automatic steps only apply while Enable Early Invoicing is on. You can select steps in a rule only while the switch is on. If you turn it off, Flexnet ignores every rule's steps and invoices are created from Orders > To Be Invoiced after dispatch.

How Flexnet chooses a rule for an order:

  • Flexnet checks the rules from the top of the list down and uses the first active rule that matches the order. Only that rule applies, so options it leaves at (Global) or Use Global come from Invoicing & Payment Options, not from a rule further down.

  • A rule matches when the order's company is the one chosen in Customer, or is of the Company Type chosen in Customer Type, and the order's Order Type and source are among those chosen. Flexnet matches the order's company, not its billing parent.

  • An order with no source does not match a rule that has Order Sources chosen.

  • To change the order of the rules, use Move Up and Move Down in the rule's Actions. A rule for All Customers (Default Rule) with no Order Types or Order Sources matches every order, so it stays below the rules that have criteria.

  • Turn off the rule's switch in the Active column to stop using it without deleting it. Edit Rule and Delete Rule are in Actions. Each change is saved straight away.

  • Anything a rule does not change, such as shipping, surcharge lines, and payments, comes from Invoicing & Payment Options. With no rules, Invoicing & Payment Options applies to every company.

What Stops an Invoice Being Created

While Xero is connected, Flexnet does not create an invoice when:

  • the order's Order Type does not have Enable Invoicing turned on;

  • the order has no lines to invoice;

  • the order's company is not linked to a Xero contact;

  • the company is on hold;

  • the company has Do Not Invoice turned on;

  • a SKU on the order is not linked to a Xero item, or has Exclude from Xero Sync turned on;

  • the order has a payment surcharge and no Payment Surcharge SKU is set;

  • the order has an urgent order surcharge and no Urgent Order Surcharge SKU is set;

  • the order has a Bundle that was not packed in full and nobody has entered how many were delivered.

Flexnet also cannot create invoices while the integration is paused, because no accounting integration is active.

Do Not Invoice stops invoice creation in Flexnet. Flexnet does not send it to Xero, and the company's orders still appear on the invoicing list.

Flexnet never sends a company's invoices to Xero while Exclude from Xero Sync is on for the company, or Exclude from Accounting Sync is on for its Company Type. For holds, see Managing Company Billing, Order Notes, Announcements, and Holds.

Choose the Invoice Fields

Under Invoice Fields, choose how Flexnet dates each Xero invoice:

  • Send Invoice Date: sets the invoice date. When it is off, the invoice is dated the day Flexnet sends it to Xero. Choose the date in Invoice Date Source:

    • Invoice Date: the date the invoice was created in Flexnet.

    • Dispatch Date: the date the order was dispatched.

    • Scheduled Dispatch Date: the order's scheduled dispatch date.

    • Order Created Date: the date the order was created, or placed on the eCommerce integration it came from.

With Send Invoice Date on, Change Invoice Date appears in the menu next to the order's Invoice link under Document Links. The date you set there overrides Invoice Date Source for that invoice.

Flexnet sends the invoice's due date when the Flexnet invoice has one. Otherwise Xero sets the due date from the contact's or organization's payment terms. If neither has payment terms, Flexnet uses the date it sends the invoice.

Set the Invoice Status

Choose the status Flexnet gives invoices in Xero in Default Invoice Status:

  • DRAFT: invoices need approval in Xero before you can send them. They stay editable and do not affect your Xero reports until approved. This is the default.

  • AUTHORISED: invoices are ready to send and affect your Xero reports.

Flexnet always creates the invoice in Xero as a draft. With AUTHORISED selected, Flexnet changes it to AUTHORISED after the order is labeled and Flexnet has checked that the Xero invoice totals match the Flexnet invoice. If they do not match, the invoice stays a draft.

An invoice rule can set a different status for the orders it matches, including SUBMITTED, which leaves the invoice awaiting approval in Xero. Flexnet changes the invoice to SUBMITTED at the same point as AUTHORISED. Flexnet can still update a SUBMITTED invoice, and does not send payments to it. See Set Up Invoice Rules.

Invoice Number and Reference

Xero numbers the invoice. Flexnet sets the Xero reference to the order's PO number, or, if there is none, the Flexnet invoice number or the order number.

Set Invoice Line Descriptions

With no fields set, each invoice line's description is the product name and SKU name. To build your own descriptions, use Invoice line descriptions:

  1. Under Default (global), select Add Field and choose a field: SKU Description, Grind Profile (Coffee Only), Roast Profile (Coffee Only), SKU Name, Product Name, Custom Text, GTIN, or UPC. For Custom Text, enter the text to show.

  2. Add more fields as needed. Flexnet joins them top to bottom, in the order listed.

  3. Choose a Field Separator: Pipe ( | ), Dash ( - ), or Comma ( , ). The Preview shows the result.

  4. To use different fields for a Product Category, expand Category-Specific Settings, expand the category, and add its fields. A category with no fields uses Default (global).

  5. Select Save Invoicing Settings.

Removing every field turns custom descriptions off. Grind Profiles and Roast Profiles only appear when the order line has one and the product offers it. GTIN and UPC values show with a GTIN: or UPC: prefix.

Add Shipping Charges

When an order has a shipping charge, Flexnet adds a shipping line to the Xero invoice. Set it up under Shipping Lines:

  • Shipping SKU: the SKU used for the shipping line. Only SKUs linked to Xero are listed. Select the refresh button next to it after linking a new one.

  • Shipping Line Description: the description on the shipping line. If you leave it blank, the line shows Shipping.

The shipping line uses Taxable Tax Type when the order's shipping is taxed, and Non-Taxable Tax Type otherwise.

If no Shipping SKU is set, Flexnet leaves the shipping charge off the Xero invoice. Flexnet still creates the invoice, so check this setting before you invoice orders with shipping.

Add Payment Surcharge Lines

When an order has a payment surcharge, Flexnet adds it to the invoice as a line. Set it up under Payment Surcharge Lines:

  • Payment Surcharge SKU: the SKU used for the line. An order with a payment surcharge cannot be invoiced until this is set.

  • Payment Surcharge Line Description: the description on the line. If you leave it blank, the line shows Payment surcharge.

The line uses Non-Taxable Tax Type.

Add Urgent Order Surcharge Lines

When a Storefront order includes an urgent order surcharge, Flexnet adds it to the invoice as a line. Set it up under Urgent Order Surcharge:

  • Urgent Order Surcharge SKU: the SKU used for the line. An order with an urgent order surcharge cannot be invoiced until this is set.

  • Urgent Order Surcharge Line Description: the description on the line. If you leave it blank, the line shows As soon as possible.

The line uses Non-Taxable Tax Type.

Send Payments to Xero

Flexnet can record the payments taken on Flexnet orders against their Xero invoices.

  1. In Invoicing & Payment Options, find Send Payments.

  2. Turn on Automatically Send Payments.

  3. Choose the Payment Bank Account that receives the payments. If the list is empty, select Refresh Data.

  4. Select Save Invoicing Settings.

  • Flexnet sends no payments until a Payment Bank Account is chosen.

  • Flexnet sends each completed payment once, after the invoice is in Xero and only while the Xero invoice is AUTHORISED. Payments are not applied to draft invoices.

  • Payments Flexnet recorded because the invoice was paid in Xero are not sent back.

What Flexnet Updates After the Invoice Is Created

Flexnet overwrites changes made directly in Xero to an invoice it created. When an order's lines or invoicing details change, Flexnet updates the Xero invoice while it can still be edited there.

Flexnet rebuilds the invoice from the order and updates Xero when:

  • you edit the order's lines, PO number, or shipping charge;

  • you change the order's PO number, shipping charge, or urgent order surcharge on the invoicing list;

  • the order is labeled or packed;

  • you select Reprocess Bundles on the order and a Bundle changes;

  • the order's lines change in the eCommerce integration it came from.

Once the invoice is AUTHORISED, paid, voided, or deleted in Xero, Flexnet no longer changes it there.

Flexnet also:

  • copies the tax, totals, and due date Xero calculates back to the Flexnet invoice;

  • keeps the invoice's Xero status up to date, such as draft, authorized, or paid;

  • records the payment method and reference on the order when the invoice is paid in Xero, and updates the company's Balance and Balance Due;

  • gets the Xero invoice PDF once the invoice is SUBMITTED, AUTHORISED, or paid. Select Invoice under the order's Document Links to open it.

Rebuild Invoice, in the menu next to the Invoice link, rebuilds the invoice from the order and sends it to Xero again. It replaces the lines in Xero with the order's current lines. Once the invoice can no longer be edited in Xero, Rebuild Invoice is unavailable.

Troubleshooting

An Order Cannot Be Invoiced

Check the order against the list under What Stops an Invoice Being Created. The most common causes are an unlinked company or SKU. Link them on the Contacts or Items tab, then invoice again.

An Invoice Rule Is Not Used

Check that the rule's switch in the Active column is on and that no rule above it matches the order first. Use Move Up to move it above that rule. A rule's automatic steps also need Enable Early Invoicing turned on.

Shipping Is Missing from the Xero Invoice

Shipping SKU is not set. Set it under Shipping Lines and save.

Payments Do Not Reach Xero

Check that Automatically Send Payments is on, Payment Bank Account is set, and the Xero invoice is AUTHORISED.

An Invoice Failed to Sync

Open the Sync History tab, fix the error shown under Failed Syncs, and select Retry. See Syncing Customers and Items with Xero.

Related Articles