Test and go live
Lesson 11 of 12 8 min read
Prove each posting with your finance team using drafts and manual runs, then switch on the schedule and approved statuses with confidence.
Testing an accounting integration isn't just "did it arrive?". It's "did it post to the right accounts, with the right tax, for the right amount?". Only your finance team can answer that, so the test plan is something you run together. By the end of this lesson you'll have a test routine and a go-live checklist.
Set up for safe testing
- Connect a Xero test or demo organisation if you have one.
- Set every status setting to its most cautious value:
statusUnpaidandstatusPaidtoDRAFT, credit notestatustoDRAFT, purchase order and billcreateInStatustoDRAFT, and journalcreateAsDrafton. - Set Activation to enabled (a disabled Integration sends and receives nothing, even by hand), but leave the schedule off and run it from Manual Operation.
- Optionally turn Automatic off on your Mappings to Xero, so each Document waits in
Readyuntil you process it.
Build a test set
Pick real examples that cover each path your settings create. For invoices, that might be:
| Test case | What it proves |
|---|---|
| A standard order | Default account codes, tax and reference |
| An order with shipping | shippingLineAccountCode |
| An order with a discount and a surcharge | The two adjustment account codes |
| An order for each tag in your tag maps | lineAccountCodeMap, bankAccountTagMap, generatePaymentForInvoiceMap |
| A prepaid order | The payment, its amount and its bank account |
| A zero-rated or exempt order | Tax types on the lines |
| A return | The credit note and any refund |
Add purchase orders, bills (including a foreign-currency one if you buy abroad) and journals if you use them.
Check each test end to end
For each one, check three places:
- The Document in Supply Lens. Open it with the magnifying glass. Its status should be
Complete. - The Target Data. This is what was sent to Xero. Its communication status should be
Sent. - The record in Xero. Ask finance to check the contact, number, reference, dates, accounts, tax, tracking and totals.
Reprocessing is safe
If you reprocess a Document that already has Target Data with the same reference, Supply Lens
creates the new Target Data as Cancelled instead of sending it again. That protects you from
duplicate invoices while you test. To deliberately resend after fixing a setting, set the
existing Target Data to Cancelled first.
Go live
- Get written sign-off from finance on every test case.
- If you tested against a demo organisation, connect the live Xero organisation and set up the same configurations and Mappings against it.
- Agree a cut-over: which orders or dates the integration owns, and stop keying those by hand. If another connection posts to Xero, confirm it isn't posting the same records.
- Change statuses to the agreed live values, for example
AUTHORISED, and turn onmarkAsSentif wanted. - Turn your Mappings to Automatic if you'd turned them off.
- Check Activation is enabled and choose a Schedule.
- Check the first live day's Documents and Xero records with finance.
Hilltop Coffee's go-live
Hilltop tests 15 orders against Xero's demo company over two days. The bookkeeper spots that
surcharges are posting to the discount account, a swapped code that's fixed in five minutes.
They agree that all EDI orders shipped from 1 November belong to the integration. On go-live
morning the implementer connects the live organisation, keeps statuses at DRAFT for the first
month as agreed, sets an hourly schedule, and reviews the first day's
invoices with finance at 4pm.
Recap
- Test with drafts, manual runs and, ideally, a demo Xero organisation.
- Build test cases for every account code, tag route, payment and tax path you configured.
- Check the Document, the Target Data and the Xero record for each one, with finance.
- Reprocessing won't create duplicates; cancel existing Target Data to resend deliberately.
- Go live with an agreed cut-over, then switch on the Schedule.
Quick guides for this topic
Your progress is saved in this browser. Create a free account to keep it everywhere, take quizzes and earn certificates.