← All integrations
GoCardless → Xero

GoCardless Xero integration

Last updated:

In short

A GoCardless to Xero integration applies each confirmed Direct Debit to the right Xero sales invoice through a GoCardless clearing account, reconciles net payouts against the bank feed with fees booked as expense, reverses failed and charged-back collections, turns refunds into credit notes, and sends each currency's payout to the right Xero organisation.

Native connector first

GoCardless in Xero already covers the standard sync. If it handles your objects, volumes and edge cases, use it. This page is about what changes when it does not: custom objects and fields, duplicate handling, conditional logic, and someone owning the failures.

Why a GoCardless payout is never one Xero payment

GoCardless knows everything about a collection - the mandate it was taken under, the payment that cleared on Thursday, the per-transaction fee, the payout that lands net in your bank account next week, the Direct Debit that fails and is clawed back four days later. Xero, and whoever closes your books inside it, needs all of that as accounting: the invoice marked paid, the payment sitting in the right account, the payout reconciled against the real bank line, the fees booked as expense.

The gap between those two systems is where the manual work lives. The integration reads each relevant event from GoCardless, applies your matching and posting rules, and keeps Xero in step so nobody has to reconcile a batched payout against a spreadsheet of individual payments at the end of the month.

Mandates, payments, fees, and failures as Xero entries

GoCardless object / eventBecomes in XeroNotes
Confirmed paymentPayment applied to the matching sales invoicePosted into a GoCardless clearing account, matched by reference, amount, and mandate
Customer / mandateContactMapped once, so every future payment ties to the same debtor
PayoutBank transaction reconciled against the bank feedNets many payments minus fees, refunds, and failures in that batch
Provider feesExpense booking on the payoutPer-transaction plus percentage, deducted before the money arrives
Failed / charged-back paymentReversing payment, invoice reopenedDirect Debit can fail days after it was reported paid
RefundCredit note against the contactReverses the original payment on the refund date
Subscription billed in GoCardlessSales invoice raised in XeroOnly when the recurring billing lives in GoCardless, not Xero

You choose the clearing account, the fee account, and the matching rules with us once, usually together with your accountant. Every payment after that follows them, so the clearing account balance becomes a check that something is wrong rather than a monthly puzzle.

Late SEPA failures, net payouts, and Xero’s rate limits

A CSV import or a generic connector books the clean collections and leaves the awkward ones for month-end:

Event-driven posting into Xero, operated for you

GoCardless payment, payout, fee, refund, and failure events are consumed by webhook or on a schedule, validated, matched to the right Xero contact and invoice, and posted through your agreed clearing and fee accounts. Payouts are reconciled against the bank feed so the numbers close themselves.

Each GoCardless event ID and payment ID is stored alongside the Xero payment or credit note it produced. A redelivered webhook therefore finds its Xero record and stops, and because events are applied in sequence, a failed event arriving after paid_out reverses the payment that was already applied rather than racing it. Mandate, payment, and customer data runs through AWS infrastructure hosted in the EU.

Running it is part of the deal: we monitor every payout, respond to alerts, and keep up with GoCardless and Xero API changes, token rotation, and rate-limit shifts under an SLA. The close no longer depends on someone remembering to run a sync.

When GoCardless in Xero covers it on its own

If you collect a handful of Direct Debits a month against invoices you already raise in Xero, GoCardless in Xero does the job, and that is what we will recommend. A managed pipeline pays off when volume climbs, when subscriptions are billed in GoCardless rather than Xero, when payouts span currencies, or when fees, refunds, and late failures turn every payout into a manual reconciliation your finance team should not have to do by hand.

Frequently asked questions

Doesn't Xero already have a built-in GoCardless connection?
Yes - GoCardless in Xero lets you collect payment on a Xero-issued invoice by Direct Debit, and for simple cases that is enough. It struggles once invoicing lives outside Xero, once you run subscriptions in GoCardless, once payouts span many payments in more than one currency, or once you need fees, chargebacks, and refunds booked correctly rather than just marked paid. The native link marks invoices paid; it does not give you clean payout reconciliation and fee accounting across those cases. That gap is what a managed pipeline covers.
How do payouts reconcile if GoCardless deducts fees before paying out?
The collection and the payout are two different events. We apply each confirmed payment against its invoice into a GoCardless clearing account, then treat the payout as a single bank line that nets many payments minus fees, minus any refunds or failed collections in that batch. The clearing account should return to zero after each payout, and the fee total posts to an expense account, so your bank feed reconciles to the cent.
What happens when a Direct Debit fails or is charged back days later?
That is the case exports get wrong. A SEPA or Bacs Direct Debit can be reported paid and then fail or be indemnity-claimed days afterwards. When GoCardless emits the failure or chargeback event, the pipeline reverses the Xero payment, reopens the invoice, and adjusts the affected payout so reconciliation still balances. Because we process GoCardless events in order and only once, a late failure never leaves a phantom paid invoice behind.
Can it match GoCardless payments to the right invoice and customer?
Yes. We map each GoCardless mandate and customer to a Xero contact once, then match payments to invoices by reference, amount, and mandate rather than by guesswork. Where you bill recurring plans inside GoCardless instead of Xero, we can raise the sales invoice in Xero first so there is always a document to apply the payment to. The matching rules are agreed with you up front and encoded in the pipeline.
What happens when Xero changes its API limits or OAuth tokens expire?
Nothing your finance team has to deal with. We run the pipeline after go-live on EU-hosted infrastructure under our monitoring, and token refresh, Xero rate-limit changes, and GoCardless API updates are handled on our side under the SLA. If a payout fails to post, we get the alert and fix it, so month-end does not start with a gap in the bank reconciliation.
// scoping request

Need this integration built and permanently operated? Tell us which systems connect and what data has to move. Fixed-price scoping quote within 48 hours.

We reply within one working day. No newsletter, no sales sequence.