This is a staging build of the docs
We've reorganized our products to make building with Codat easier than ever
Skip to main content

SMB user account connection

Learn how your SMB users can connect their bank accounts to Xero

After setting up a company, data connection, and one or more source bank accounts, redirect your SMB user to the linkUrl (returned from POST /companies/<COMPANY_ID>/connections).

Account mapping UI

After authenticating with their Xero account, the SMB user is redirected to a generic account-mapping UI provided by Codat. This lets them map and connect their source bank accounts to Xero, creating bank feed connections.

xero-bank-feeds_mapping-screen-example

The SMB user can do the following:

  1. Add one or more source bank accounts (the accounts you provided through the POST /bankFeedAccounts endpoint).
  2. Map a source bank account to an existing target bank account in Xero.
  3. Select Create New Account to map a source bank account to a new target bank account in Xero.
  4. Select the Feed start datethe date a bank feed connection should start from.
  5. Connect the selected bank accounts to create bank feed connections.

You'll be able to push bank transactions dated from the Feed start date and later. However, Xero's API does not support pushing historical data older than one year.

Target account names

If the user chooses the Create New Account option, the target bank account is created with the same name as the source bank account it's mapped to. Bank account names can be changed in Xero at any time.

Bank feeds must be pushed to Codat

Transactions are not automatically downloaded to Xero when the user successfully connects a bank account. You need to Push bank transactions.

Connection management

To allow your SMB users to view and manage their existing bank feed connections, you can direct them to a newly-generated linkUrl. When they open this URL and revisit the account mapping UI, their existing connections are displayed in the Manage your connected accounts panel:

xero-bank-feeds_account-mapping-ui-manage-feed-connections

To disconnect a source bank account, the SMB user hovers over the connected status icon and selects Disconnect. This immediately disables the bank feed connection. The disconnected account will display in the source bank account dropdown menu when the user next refreshes the page.

Now that your SMB users have mapped and connected their bank accounts, you're ready to Push bank transactions to Xero.


Was this page useful?
❤️
👍
🤔
👎
😭