What this integration does
The Xero connector in VeloCMS listens for afterOrderCreate events. For each paid order, it first looks for an existing Xero Contact by customer email and creates one if none exists. Then it creates an ACCREC invoice in Xero using the customer's email, the order total, and the account code you configure in the plugin settings. If the contact lookup or creation fails, the invoice is still attempted using the customer email directly. The connector is fail-soft: any Xero API error is logged but never blocks the order webhook. This is a one-way push from VeloCMS to Xero for bookkeeping.