Order automation that ends in a correct Xero invoice
Most invoice queries begin with an order that went in wrong. We check every order on the way in, so what reaches Xero has the right customer, prices, PO number and delivery charge.
- Xero
- Unleashed
- Microsoft 365
Order automation for Xero users is mostly about one outcome: invoices that go out right first time. Zestcode Automation builds platforms that read and check each order before it reaches your ERP, so when the invoice lands in Xero it already carries the correct customer, your prices, the customer’s PO reference and a delivery charge that reflects what the delivery really cost.
In most of the wholesale businesses we speak to, Xero isn’t where orders are entered. Orders go into an inventory or ERP system such as Unleashed, and that system sends the invoice to Xero. The mistakes that finance chases (a missing PO number, a wrong price, carriage left off) almost always started at order entry, several steps upstream.
Why most Xero invoice queries begin at order entry
Picture a hypothetical week: three invoices bounced back by customers’ accounts payable teams because the PO reference was missing, one with a price taken from an old PO rather than the current price list, and one where carriage was charged at the quoted rate when the pallet cost twice that. Every one of those errors was made when the order was keyed, and Xero simply recorded it. Each takes a few minutes to correct, but also means a credit note or a reissued invoice, a delayed payment and an awkward email to the customer.
Order, ERP, then Xero: where the platform sits
The platform works ahead of your ERP, not inside your accounts. Orders arrive by email, from a web shop or by phone; they’re read, checked against your ERP data and approved by a person; and approval creates the sales order in the ERP with everything in the right field. Where Unleashed is connected to Xero, a common setup, invoicing then follows its usual path and your accountant sees nothing unusual. The ERP integration page covers the mapping in more detail.
A checklist for an invoice nobody queries
These are the things an invoice needs to get right, and how each is covered before the order is created:
- The right customer. The sender or company name is matched to an existing account, so the invoice goes to the correct contact with the correct terms.
- The PO reference. The customer’s PO number is captured from the order and stored in the ERP’s customer reference field, which is what usually carries through to the invoice.
- Your prices, not theirs. Each line is priced from the ERP. If the PO shows a different figure, the line is flagged with both prices so someone decides.
- Quantities that match stock. Stock is checked at review, and the warehouse refreshes the order from the ERP when picking starts, so late edits aren’t missed.
- A delivery charge that holds up. With the shipping stage in place, the real cost is priced from the carrier after packing and compared with the PO.
- No second invoice. A PO number the customer has already used is caught, so a reply on an old email thread doesn’t become a duplicate order.
How do I get the customer’s PO number onto Xero invoices?
Get it into the order at the start and keep it in the field your ERP passes to Xero. When AI reads an emailed order, the PO number is one of the fields scored for confidence; under 7 out of 10, it’s highlighted for the reviewer. Orders without a PO number can be flagged too, if some of your customers refuse to pay invoices without one.
Delivery charges: the line most often wrong
Customers often state a carriage charge on their PO, or expect one from a quote. When packing records the true weight and dimensions, the platform prices the consignment live and updates the delivery charge. A difference from the PO holds the order for the office, so it can be amended before it is completed and invoiced.
What it costs and what you keep
Capture, review and ERP sync usually costs £8k–£12k plus VAT and takes about six weeks; the delivery price check comes with the shipping phase, part of a £20k–£30k order-to-dispatch project. A free written specification comes first, then a fixed quote valid for 90 days.
Ownership is straightforward. The finished system is handed over in hosting accounts in your business’s name, without per-user fees, and you can maintain it with us, someone else or no one. Running costs are typically under £50 a month for a few hundred orders.
Common questions
Straight answers to what people ask us about this before a call.
Does the platform post invoices into Xero itself?
Usually not. Where you run an ERP such as Unleashed that already sends invoices to Xero, we create the sales order in the ERP and leave that sync alone, so Xero keeps receiving invoices the way it does today. Posting directly to Xero is an option for businesses without an ERP, and the route is agreed during specification.
Will the PO number appear on the invoice our customer receives?
We make sure the PO number reaches the field that feeds the invoice reference, whether that’s the customer reference in your ERP or the reference on a Xero invoice. Whether it prints on the PDF your customer sees depends on the invoice template you use in Xero, which is worth checking once. We look at a sample invoice with you during specification.
We don’t have an ERP, only Xero. Is that workable?
It can be, for businesses whose products, prices and customers are kept in Xero. Orders would be checked against those records and created as invoices, or drafts for someone to finish, through Xero’s API. If you need stock allocation and picking, an inventory system in front of Xero usually serves you better, and we’ll tell you honestly which suits you.
Can we hold invoicing until the real delivery cost is known?
Yes, with the shipping stage in place. Once a parcel or pallet is packed, the platform prices it with the carrier or your rate card. If that differs from the delivery charge on the PO, the order is held for the office to confirm or amend before it is completed in the ERP, which is the step that leads to invoicing.
Does our Xero data go to the AI?
The AI reads incoming order emails and attachments, through OpenAI’s business API, where data sent through the API isn’t used to train OpenAI’s models by default. Your accounts data isn’t sent to it. Matching against products, prices and customers is done by the platform using your ERP records, on UK hosting in a London data centre.