Set up your Xero app
Xero for Voyant connects through a Xero app that you own. You create it once at developer.xero.com and paste its keys into the app's Settings in Voyant. It takes about 10 minutes.
Before you start
- Install Xero by Voyant Labs from Apps in your Voyant admin, and open its Settings. Under Xero app, Settings shows every value below ready to copy, including the webhook delivery URL that belongs to your Voyant account.
- Have the sign-in of a Xero user who can access the organisation you want to connect. The same user can create the app.
Xero charges developers by the number of organisations an app connects to. Your app connects to one organisation, which Xero's free developer tier covers, so it costs nothing at Xero. See Xero's developer pricing.
1. Create the app
- Sign in at developer.xero.com with your Xero user and open My Apps. Choose New app.
- App name: a name you will recognise, for example Voyant. Xero shows it when you connect.
- Integration type: Web app.
- Company or application URL: https://xero-staging.apps.voyant.travel/
- Redirect URI: https://xero-staging.apps.voyant.travel/v1/xero/oauth/callback
- Accept the Xero developer terms and choose Create app.
You do not choose any scopes. Voyant asks for exactly what it needs when you connect: invoices and quotes, payments, contacts, and read-only organisation settings. Xero shows that list for you to approve.
2. Copy the keys
On the app's Configuration page, copy the Client ID, then choose Generate a secret and copy the client secret. Xero shows the secret only once, so keep it at hand for step 4.
3. Turn on webhooks
Webhooks bring changes made in Xero, such as a payment recorded or an invoice voided there, back to Voyant within minutes. Without them those changes arrive once a day.
- Open the app's Webhooks page.
- Delivery URL: paste the webhook delivery URL from the app's Settings in Voyant. It ends with your installation's identifier, so it is different for every Voyant account.
- Under events, select Invoices and Contacts, then save.
- Copy the webhook key Xero shows.
4. Save the keys in Voyant
- In your Voyant admin, open Apps, then Xero.
- Under Xero app, paste the Client ID, the client secret and the webhook key, then choose Save keys. They are stored encrypted and are never shown again.
- Back on the app's Webhooks page in Xero, choose Send 'Intent to receive'. Xero checks that Voyant can read its messages and sends changes only after this check passes. It passes as soon as the webhook key is saved.
5. Connect your organisation
- In the app's Settings in Voyant, choose Connect to Xero.
- Sign in to Xero in the window that opens, check the access Voyant asks for and allow it for one organisation.
- If you allow more than one organisation, Voyant asks which one to connect and gives up access to the others.
- Back in Settings, choose the sales account, the tax rates and the bank accounts under Mappings.
To use a new client secret later, choose Replace keys in Settings at any time. To switch to a different Xero app, disconnect Xero first.
Xero also offers optional fields for terms and privacy links. If you fill them in, use https://xero-staging.apps.voyant.travel/terms and https://xero-staging.apps.voyant.travel/privacy.
Need help
Contact Voyant support at voyant.travel/help. Never send your client secret or webhook key by email or chat.