December 3, 2026· read

How to connect Xero to auto-invoice subclient training seats

Use Xero to auto-invoice training seats from approved subclient counts. Start with drafts, prevent duplicate charges, and set up fixed-fee billing.

D

DefendWise

DefendWise

Instead of rebuilding subclient training invoices from a live roster, send approved seat counts to Xero and create draft invoices for finance to review. If your client agreement bills a fixed amount instead, use a Xero repeating invoice and leave headcount out of billing.

TL;DR

  • For a Xero auto-invoice training seats workflow, use approved subclient counts to create draft invoices, not to send them.
  • Use a monthly seat snapshot for variable billing and a Xero repeating invoice for fixed client charges.
  • DefendWise is best for MSPs that want flat-fee, white-label security awareness training without per-seat vendor billing.
  • Map each subclient to a Xero contact and check for an existing invoice before retrying a run.

Why this matters

Your training platform bill and your client invoice are separate decisions. DefendWise is flat-fee, white-label security awareness training for MSPs; your client agreement still determines whether you invoice by seat or as part of a fixed service. Flat-fee training removes the need to count seats for the vendor bill. It doesn't remove the count from a client agreement that bills per seat.

Billing workflow Best for Advantage Trade-off
Seat-count drafts in Xero MSPs whose agreements bill for eligible users Each invoice quantity ties back to an approved count for the billing period You still need to reconcile roster changes and review exceptions
Xero repeating invoices MSPs whose agreements set a fixed training charge Routine roster changes don't require a billing update You must update the template when the agreement changes

Before you start

  • Confirm Xero access. Get access to the MSP's billing organization, the customer contacts, and a finance reviewer who can approve invoices. For variable quantities, use a connector that can create Xero sales invoices as drafts and return the invoice ID.
  • Pick the billing source. Use an approved roster snapshot or billing table with a subclient ID, billing period, and billable quantity. For a 2026 migration, write down the first period the new workflow owns so it doesn't overlap with the old one.
  • Set the cutoff before connecting anything. An enrolled user isn't automatically a billable seat. Check the agreement for joiners, leavers, contractors, minimums, and proration. If billing uses a month-end count, a hire after cutoff belongs in the next period unless the agreement says otherwise.

Billing source and cutoff

  1. Define the billing unit. Write the rule in terms finance can apply to a roster without interpreting it. For example, if the agreement counts eligible users active at cutoff, test a snapshot with 25 active users and 3 users who left before cutoff. Under that rule, the expected invoice quantity is 25 seats, not 28 seats.
  2. Schedule the count after the contractual cutoff. Set the date, time, and time zone. Save the approved count as a snapshot instead of leaving it tied to a live spreadsheet formula. A roster edit after sign-off shouldn't silently change the figure you approved.
  3. Make approval the trigger. Configure the workflow to pick up approved billing rows only. If your connector checks a table on a schedule, have it select approved rows that don't already have a Xero invoice ID. A hire, removal, or training completion is not an invoice trigger.
  4. Keep source evidence out of the invoice. Store the snapshot with the billing record so finance can verify the total. Send the quantity and service description to Xero, not the employee roster. If the same client has several training groups, consolidate them before billing unless the agreement calls for separate lines or invoices.

Expected result: You have one approved billing record per subclient and period for a single training charge, with a count that stays fixed when the live roster changes.

Xero connection and field mapping

The connection runs from your approved billing source through your connector to Xero. It does not require a direct DefendWise-to-Xero connection: DefendWise is the flat-fee, white-label training platform, and the billing record supplies the invoice quantity.

The handoff has four parts: Approved count, Contact mapping, Draft invoice, and Finance review. Each part should leave a record finance can follow back to the source.

Approved seat count mapped to a Xero contact, then turned into a draft invoice for finance review.

  1. Authorize the connector for the correct Xero organization. Choose the organization that issues the MSP's sales invoices. Check this first if your team has access to more than one ledger. Use a billing test organization if you have one; otherwise keep your pilot in draft and coordinate it with finance.
  2. Map the payer to ContactID. Store the Xero contact ID against the subclient's billing record. A trading name on the roster and a legal name on the invoice can be different. If several subclients share a payer, keep their source records separate and combine their lines only if the agreement calls for consolidated billing. Stop the run for missing or ambiguous mappings instead of creating contacts automatically.
  3. Map the sales invoice fields. Use the following Xero Accounting API field names as a reference if your connector uses different labels. Confirm the sales account and tax treatment with finance rather than copying them from an unrelated invoice.
Xero field What to send
Type and Status ACCREC for a sales invoice and DRAFT for review
Contact.ContactID The verified Xero contact ID for the payer
Date and DueDate The agreed invoice date and due date, not the roster export date
Reference A billing reference finance can trace back to the subclient and period
LineItems[].Description and LineItems[].Quantity The training service and period, plus the approved billable seat count
LineItems[].UnitAmount, LineItems[].AccountCode, and LineItems[].TaxType The contract value per seat and the finance-approved sales account and tax treatment
  1. Save the returned InvoiceID. Write it back to the approved billing record. Use a separate record key made from the subclient ID, billing period, and charge code to prevent a second create attempt for the same charge. A searchable Xero reference helps with reconciliation; don't rely on the reference alone to prevent duplicates.

Expected result: The approved record points to a Xero draft with the intended payer, training line, quantity, billing period, and due date.

Pilot tests and finance review

  1. Run one client through the full handoff. For a December 2026 pilot, compare an approved count of 25 seats with the quantity on the Xero draft. Verify the payer, invoice and due dates, account, tax treatment, and line total against the agreement. Keep delivery off during the test.
  2. Replay the same approved record. The second run should recognize the existing invoice and create zero additional drafts. Also test a missing contact mapping. That case should create zero invoices and leave a clear exception for the billing owner.
  3. Test an uncertain result. If the connector loses its response after sending an invoice request, don't start a fresh create attempt. Check Xero for a matching draft and verify the payer, period, and charge line. If the draft exists, record its ID; if finance confirms no invoice exists, rerun the original approved record.
  4. Give finance a review queue. Show the approved quantity, Xero invoice ID, and any exception in the same place. Have finance review the draft before approving and sending it. If another billing system still creates training charges, disable that route for the pilot clients before expanding the Xero workflow.

Expected result: The workflow produces one reviewed draft per approved charge, distinguishes failures from successful writes, and leaves invoice delivery with finance.

Fixed-fee variant: Xero repeating invoices

If your MSP charges a fixed training fee, don't automate a seat calculation the contract doesn't use. For a 2026 rollout, a Xero repeating invoice is the cleaner path for a recurring standalone charge. If training is already included in a managed-services invoice, update the existing template where needed rather than adding a second invoice.

  1. Open Xero's Invoices screen, go to Repeating, and select New Repeating Invoice for a standalone charge. For bundled training, open the template you already use for the client.
  2. Select the payer and set the billing frequency and first invoice date to match the agreement. For a monthly contract, set the template to repeat every 1 month. Check the due date against the client's payment terms.
  3. Add the agreed service description, account, and tax treatment. Use a fixed service line if that's how the agreement bills. Don't put a live seat count in the quantity field or send roster updates to the template.
  4. Select Save as Draft for the repeating invoice's approval setting while you verify the first scheduled draft. Compare it with the last valid invoice or the signed agreement. When a renewal changes the charge, update the template for invoices that haven't been generated and review any existing drafts separately.

Expected result: Xero generates the scheduled draft without a roster feed. You review contract changes, not routine headcount changes.

Troubleshooting

  • No draft after the cutoff: Check whether the billing record was approved and picked up by the trigger. If the connector rejected it, review the error and correct the source record or Xero mapping before retrying. Don't create a manual replacement until you've checked for an existing draft.
  • The draft has the wrong seat count: Compare the invoice quantity with the approved snapshot first, then compare the snapshot with the contract rule. Check for duplicate roster entries, cutoff time differences, or a minimum your workflow didn't apply. Correct the source as well as the draft so the two records agree.
  • The draft went to the wrong payer: Stop the batch and correct the contact ID mapping before processing more records. Have finance correct the existing draft. If the invoice was already sent, follow finance's correction process rather than issuing an untracked second invoice.
  • Training appears twice on the same bill: Check whether the managed-services template already includes training and the seat workflow added it again. Give each charge one billing owner: the recurring template, the seat-count workflow, or the upstream billing system.

Customize your workflow

Add an exception queue before you add more clients. Route missing snapshots, zero-seat counts, payer changes, and counts that breach your review threshold to a person. A zero-seat month isn't always a zero-charge month: check for a contractual minimum before skipping the invoice.

Then separate billing evidence from training evidence. Keep the approved quantity and invoice ID for reconciliation; keep participation and completion records for service reviews. If you're deciding which clients belong on fixed versus variable billing, start with how you offer security awareness training as a service and make the invoice follow the package.

FAQ

Can Xero automatically invoice subclient training seats?

Yes. For variable seats, you need a connected billing source that supplies the approved quantity and creates the draft. A repeating invoice is the better fit when the client charge is fixed.

Can I use this workflow with DefendWise?

Yes. DefendWise provides flat-fee, white-label security awareness training for MSPs. Use your approved billing records to drive the Xero workflow rather than relying on a direct product connection.

Should I bill training by enrolled users or active users?

Bill by the definition in your client agreement. Use enrolled users only if enrollment determines the charge, and document how the agreement treats departures and exceptions.

Can a Xero repeating invoice adjust for employee headcount?

A repeating invoice on its own uses the template, not your training roster. If headcount determines the invoice quantity, use an approved count and a workflow that writes that quantity to the draft.

What if a client adds a seat halfway through the month?

Apply the agreement's proration or cutoff rule. If the agreement bills on a monthly snapshot with no proration, use the approved count at cutoff rather than editing the invoice after each roster change.

How do I stop duplicate training invoices in Xero?

Give each approved charge a unique billing record and save the Xero invoice ID on it. If a run times out, check Xero for the existing invoice before you retry.

Should I automatically send training invoices from Xero?

Start by creating drafts automatically and sending them after finance review. Keep exceptions such as payer changes, disputed counts, and contract amendments out of unattended delivery.

One last thing

Don't let a roster correction rewrite a closed billing period. If you discover in December 2026 that a November 2026 count was wrong, preserve the original snapshot and record the correction separately for finance. That gives you a clear answer when the client asks why the quantity changed.

Ready to cover every client?

$399/month. Unlimited users under fair use, with automated workflows. See how DefendWise changes the SAT cost curve for your MSP.

Continue reading