Xero Accounting Plugin

Demo to preview the settings

Introduction

Xero is a leading online accounting and reporting tool and this plugin allows you to authenticate your app users with their Xero accounts and then read and write data.

Prerequisites

In order to interact with the plugin you'll need to get the API credentials client Key and Client Secret.
Create your development account at: https://developer.xero.com/
Image without caption

How to setup

I. Setup Xero Development application

II. Setup Xero plugin on Bubble side

Plugin Element Proprieties

The plugin contains Connect XeroButtonOauth 2 visual element which should be used on the page.
Image without caption
This element renders the official Xero SSO sign-in button. It uses the Xero platform SSO script and automatically initializes the OAuth 2.0 flow when clicked.
Fields:
Title
Description
Type
Redirect URL
The URL that Xero will use for returning the answer on the authentication process. This URL should be in your Xero account’s “Redirect URIs” list.
Text

PLUGIN ACTIONS DETAILED

Xero: Remove OAuth URL Parameters - This action should be used for removing OAuth parameters after redirecting from the grant access screen.
Create/Edit Xero Data - This action should be used to create or edit Xero data.
Get Xero Token From URL Oauth 2.0 - This action should be used to obtain an access token from Xero.
Get user from token Oauth 2.0 - This action should be used to obtain user data from Xero.
Xero: Refresh Token - This action should be used to obtain a refresh token from Xero.

API Calls

Plugin Data Calls

Plugin Action Calls

Workflow example

In this workflow,, we will show you how to retrieve and display, Accounts, Employees and Users values on Bubble via action when a Button is clicked.
  1. Place an element Button on the page
    1. Image without caption
  1. Add an action on the button clicked, Refresh Token
    1. Image without caption
  1. Next we make changes to user fields
    1. Image without caption
  1. In last step we save the values in custom states retrieved from Xero
    1. Image without caption
  1. The retrieved values on front-end, (ex Accounts and Users)
      • Configure Repeating Group for Accounts:
        • Image without caption
          Image without caption
      • Configure Repeating Group for Users:
        • Image without caption
          Image without caption
Image without caption

Changelogs