Skip to main content

Get started with Bank Feeds API

Understand the basics of using Bank Feeds API and learn how to perform the initial setup for the product

Journey overview

The diagram below represents the overall activity flow when using Bank Feeds API, including your SMB customer and their accounting platform. It assumes you are using Codat's mapping interface to let the user select the accounts used for pushing bank statements.

If you are using one of the other mapping UI options, you can visualize the flow by simply changing the actor of the mapping operation from Codat to Your application or Accounting platform.

Once you decide to build this flow with Bank Feeds API, you need to configure Codat accordingly. Let's go through these requirements in detail.

Enable Bank Feeds API

Reach out to your Codat account manager to enable Bank Feeds API for your client.

Manage data sources

In the Codat Portal, navigate to Settings > Integrations and click Manage integrations. Next, click Manage next to the specific integration you want to enable and set it up to serve as a data source for the product.

Some of these integrations require additional setup specific to bank feeds. We walk you through these in our integration-specific instructions in the Manage integrations section of our Bank Feeds API documentation.

Authorization flow

As part of using Bank Feeds API, you will need your customers to authorize your access to their data. To do so, use Link - our pre-built, embeddable, conversion-optimized, and white-labeled authorization flow.

The solution lets you tailor the authorization journey to your business needs. You can:

Webhooks

Codat supports a range of webhook events to help you manage your data pipelines. In the Codat Portal, navigate to Settings > Webhooks > Configure consumer and click Add endpoint to set up an endpoint to listen to the following event type and get the most out of Bank Feeds API:

  • PushOperationStatusChanged

    Use this webhook to track the completion of the operation to create bank transactions in the target platform. When you receive a notification from this webhook, check the status value in the body. A Success status means the transactions array has been successfully pushed to the accounting software. In case of errors, resolve the issue and resend the payload.

Client libraries

Use our comprehensive Bank Feeds API library to kick-start and simplify your build. Simply install the library in one of the supported languages and pass your base64-encoded API key to the constructor.

Install

NPM
npm add @codat/bank-feeds
Yarn
yarn add @codat/bank-feeds

Initialize

import { CodatBankFeeds } from "@codat/bank-feeds";

const bankFeedsClient = new CodatBankFeeds({
security: {
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
},
});
Recap

You have enabled Bank Feeds API, set up the relevant integrations, configured auth flow parameters, and noted the recommended webhook. This completes the initial setup of the product.

Next, you will create a Codat

The fallback content to display on prerendering
, its
The fallback content to display on prerendering
, and a source bank account to build out the core infrastructure required to establish a bank feed.



Was this page useful?
❤️
👍
🤔
👎
😭