Skip to main content
If you would like access to Xero, contact your account manager. Until it is enabled for your organisation, the Xero card stays unavailable.
Xero has three sync modes. In every mode, an open Xero sales invoice becomes a BoomFi paylink, and paying it marks the Xero invoice paid. The mode chooses which paylinks you create in BoomFi are sent to Xero. Add Pay now, below, is for invoices you create in Xero. An invoice BoomFi creates already has the paylink URL on it. Xero is connected with a sign-in, not an API key.

Choose how Xero syncs

In BoomFi, open Settings → Integration. On the Xero card, choose Sync settings. The same window, How should Xero sync?, opens just after you connect. Pick one option and Save. New paylinks follow that choice. Paylinks that already exist stay as they are. Recurring paylinks are never sent. How should Xero sync, with the three modes

Xero invoices to BoomFi

Open sales invoices in Xero become BoomFi paylinks. A collected payment marks the Xero invoice paid. A paylink you create in BoomFi is not sent unless you tick Sync this paylink to Xero. Every new one-time paylink creates a Xero invoice. Untick Sync this paylink to Xero on a paylink to leave that one out. Xero invoices still become BoomFi paylinks. A new paylink stays in BoomFi unless you tick Sync this paylink to Xero. Xero invoices still become BoomFi paylinks. On Create a payment link, a one-time paylink shows Sync this paylink to Xero when Xero is connected. It starts ticked only when the mode is All new paylinks to Xero. Recurring paylinks do not show it. The tick decides for that paylink, whichever mode is saved. If you create the paylink with the API, set external_sync.xero on that request. true sends it to Xero. false leaves it out.
POST /paylinks, with the rest of the paylink body.
  • true creates a Xero invoice when Xero is connected, whichever mode is saved.
  • false does not create one, including when the mode is All new paylinks to Xero.
  • Omit external_sync and only All new paylinks to Xero creates an invoice.
Set it when you create the paylink. Updating the paylink does not change it. Recurring paylinks are not sent. BoomFi creates one authorised sales invoice (ACCREC, awaiting payment) when the paylink is created. Each later sale, once that invoice is paid, gets its own invoice:
  • Contact name is the paylink name.
  • One line, quantity 1, at the paylink price and currency. A payment quoted at another amount in that currency, including a signed variant, is invoiced at the quoted amount.
  • Line description is the paylink description, or the paylink name when that is empty.
  • Due date is the paylink expiry on or after the invoice date. An earlier expiry, or no expiry, uses 30 days from the invoice date.
  • Reference is boomfi: plus the paylink id. A later sale uses boomfi: plus the paylink id, a colon, and the payment id. The inbound sync sees either reference and does not create a second paylink.
  • Invoice URL is the paylink checkout.
Xero needs an active revenue account, otherwise a sales account. With neither, the invoice is not created and the Xero card shows the error. When the paylink is paid, BoomFi sets the Xero contact to the payer’s name and email, then records the payment. The contact is updated first: Xero rejects a contact change on an invoice that is already paid. The payment reference is BoomFi plus the payment id. A short payment in the invoice currency is recorded as that amount. The invoice and the paylink stay open. A payment in another currency, including crypto, is recorded as the amount still due, and the invoice is marked paid. An unlimited one-time paylink turns off when its invoice is paid. A paylink with quantity still remaining stays on. The first collected payment uses the invoice created with the paylink. Each other sale, including a second sale that arrives while that invoice is still open, raises its own invoice at the quoted amount when that currency matches, otherwise at the paylink price. A missing payment account does not undo the invoice. The payment is recorded on a later sync. A connection approved before contact access was requested can still import Xero invoices. Disconnect and connect again, then approve contacts, before BoomFi can create invoices or update the payer.

Connect Xero

  1. In BoomFi, open Settings → Integration.
  2. Find Xero and choose Connect.
  3. Sign in to Xero and approve access to invoices, contacts, and payments. Approve that screen in the same browser that started Connect.
  4. If the Xero user belongs to more than one organisation, choose the one to connect. One Xero organisation connects to one BoomFi organisation. Connecting again stops the previous sync.
The card shows Disconnect when that organisation is connected. A warning on the card means the last sync could not finish, or an invoice was skipped. BoomFi integrations with Xero connected

Add Pay now

The button is a custom payment URL on the invoice branding theme. Add it in Xero before you send invoices. Open Sales → Online payments.

Add the payment service

Add a new service lists Stripe cards and PayPal. BoomFi is added from add another online payment option. Add a payment service, with Stripe cards and PayPal Select Custom Payment URL and continue. Additional payment services, with Custom Payment URL Set Account name to the name that should show on the invoice, such as BoomFi. Xero fills Pay now button text with Pay with credit card. Change that to Pay now. Add custom URL connection, before the URL is pasted Paste this custom URL:
On the test dashboard, use https://capi-test.boomfi.xyz in place of https://capi.boomfi.xyz. A production URL does not see invoices on the test dashboard. Checkout there runs in test mode. Xero replaces [INVOICEID], [CURRENCY], [AMOUNTDUE], and [SHORTCODE] when the customer clicks. Show details on that form uses [INVOICENUMBER] in its example. That placeholder is the invoice number. A URL built from it opens a page that cannot take the payment. Placeholders Xero lists for a custom payment URL
Use [INVOICEID], not [INVOICENUMBER]. The click is accepted only when the invoice id, currency, amount due, and Xero short code all match the open invoice. Anything else sends the customer to a page that cannot take the payment.
Save. To change the URL or the button later, open Connected services, then Edit → Service details.

Put it on the branding theme

Open Connected services → Manage themes. For each branding theme you send, set Credit card to the account you just added. Standard is the default theme. Save. Connected services, with the account on the Standard theme Credit card set to the account on the Standard theme On the invoice, Branding theme is the theme you chose and Online payments shows that account name. A new invoice uses the default theme. To use another theme, change Branding theme on that invoice. New themes are added from Settings → Invoice settings → New Branding Theme.

Stripe, PayPal, and other buttons

A branding theme has one Credit card service. Cards and digital wallets (Stripe) uses that same column. To offer Stripe cards on some invoices and BoomFi on others, add a second branding theme, connect Stripe to its Credit card column, and choose that theme on the invoice. PayPal is its own service on Add a new service. Once it is connected, it can sit on the same theme as BoomFi. The customer then chooses Pay now or PayPal. If the customer pays another way, the next sync sees the invoice paid and BoomFi turns its paylink off.

Create the invoice

Create the invoice in Xero. BoomFi does not add a line to it.
  1. Create a sales invoice with a contact, a currency, at least one line, and an amount due.
  2. Set Branding theme to the theme whose Credit card service is BoomFi. Online payments then shows that account name.
  3. Approve the invoice so its status is Awaiting payment. Drafts and invoices submitted for approval are left alone. Bills are left alone. An invoice that is already paid does not get a paylink.
Sales invoice on the Standard theme, with online payments set to the account and a Workshop line Connecting imports open invoices once. After that, Xero notifies BoomFi when an invoice is created or approved. Open invoices are also checked about once an hour, in case a notification is missed. BoomFi creates the customer and a one-time paylink. The paylink is named Invoice plus the Xero invoice number, and the amount is the amount due. The Xero lines stay on the Xero invoice. They are not listed on the paylink or on checkout.
Checkout shows the invoice number and a single total. It does not show the Xero line descriptions, quantities, or unit prices.
An invoice with no contact, no currency, or no date is skipped. The rest of the sync continues, and the Xero card shows a warning.

What the customer sees

On the Xero invoice, the lines are the ones you wrote. Pay now is the button from the branding theme. Xero invoice with the Workshop line and Pay now Choosing Pay now sends the customer to BoomFi. BoomFi checks the invoice, the currency, and the amount still due, then opens the paylink. Checkout asks for the payer’s details and a payment method. The summary is the total only. Checkout for that invoice, showing Invoice INV-0011 and a single total

After the customer pays

  1. In BoomFi, open Transactions. The payment status is Succeeded, and the reference is the Xero invoice.
  2. In Xero, that invoice is marked Paid and the amount due is 0. The paylink in BoomFi becomes inactive.
A short payment in the invoice currency is recorded in Xero as that amount. The invoice and the paylink stay open. A payment in another currency, including crypto, is recorded in Xero as the amount still due. The invoice is marked paid and the paylink is turned off. If the payment covers the amount due and Xero has no account that can take a payment, the paylink is turned off so the customer cannot pay it twice. The Xero card shows a warning. Add an account in Xero that can take invoice payments. The next sync records the payment. If an invoice that already has a paylink is voided or deleted in Xero, the next sync turns that paylink off.