Open Banking API Overview

Prev Next

The Narmi Open Banking API allows customers to easily share their banking data with other financial institutions, financial tools, and data aggregators. Participating in open banking allows a financial institution to integrate seamlessly with the financial ecosystem and become a larger part of the financial lives of their customers. It is a secure way to share data that does not require sharing credentials and is based on the customer authorizing access to their data.

API Specification

The Narmi Open Banking API is based on the Financial Data Exchange (FDX) API specification—the industry standard for open banking. Specifically, the API implements the Core Exchange API specification, which represents a subset of FDX.

Because the Open Banking API implements a standard specification, some parts of this API behave differently from other Narmi APIs.

Version

The Open Banking API supports v5.3 of Core Exchange.

Access and Authentication

The Open Banking API relies on OpenID Connect (OIDC) for authentication.
For more information on OpenID Connect, go to How OpenID Connect Works.

Application Setup

Applications integrating with the API must be provisioned with the financial institution and developers will be supplied with a client_id, client_secret, and API URL. Please work with your financial institution for provisioning.

Developers must supply a redirect_uri in order for their application to be set up.

.well-known Configuration

The authorization endpoint, token endpoint, supported scopes, and other information can be obtained via the /.well-known/openid-configuration endpoint.

Example: https://api.sandbox.narmi.dev/v2/oauth/.well-known/openid-configuration/

Scopes

The Open Banking API supports the following scopes:

API Scopes:

  • offline_access - Code exchange will return a refresh_token
  • openid - Code exchange will return an OIDC identity token
  • fdx:accountdetailed:read - Access to /accounts
  • fdx:customercontact:read - Access to /contact
  • fdx:transactions:read - Access to /transactions
  • fdx:accountpayments:read - Access to /payment-networks

Claim Scopes:

  • email - Identity token will include claim for the email address
  • profile - Identity token will include claim for additional user identifiers

Authorization Code Flow

Applications will use a standard OAauth2 authorization code flow to obtain a bearer token. The application must redirect the user to the authorization server in order to obtain user authorization, after which they will be redirected back to the redirect_uri with an authorization code. The authorization code can then be exchanged for a bearer token using the /token endpoint.

Note: the authorization server and resource server are on different subdomains.

Example authorization URL:
https:///online.sandbox.narmi.dev/v2/oauth/authorize/?response_type=code&client_id=[client_id]&redirect_uri=[redirect_uri]&scope=offline_access%20openid%20fdx%3Aaccountdetailed%3Aread%20fdx%3Atransactions%3Aread%20fdx%3Acustomercontact%3Aread%20fdx%3Aaccountpayments%3Aread

The following parameters are optional:

  • state
  • code_verifier

Identity Token

If the authorization flow requests the openid scope, the code exchange will return an OIDC identity token. The token is signed with an asymmetric key using RS256 and must be validated. The path to retrieve the public key as a JWKS is included in the well-known response.

The sub-field will return the Narmi user ID as a UUID.

If email scope is granted: email

If profile scope is granted:

  • institution_user_identifier - Uniquely identifies the current user on the core
  • institution_business_identifier - Uniquely identifies the current user's business on the core (if any). This is not the Employer Identification Number (EIN).
  • narmi_business_identifier - UUID, uniquely identifies the business to Narmi

Token Refresh

If the authorization flow requests the offline_access scope, the code exchange will return a refresh_token, which can be used to retrieve a new token.

IP Addresses

The Open Banking API is IP restricted. You will need to supply your egress IP addresses before your servers can connect to the API.

Calling the API

The Auth endpoint used to acquire a token expects a trailing slash (/) in the URL. All other endpoints should be called without trailing slashes.

Example: https://api.sandbox.narmi.dev/fdx/v5/accounts

Pagination and Filtering

For endpoints with pagination, the response will include totalElements, nextOffset, and a links to the next page:

"page": {
       "totalElements": 2560,
       "nextOffset": "1500"
   },
   "links": {
       "next": {
           "href": "https://api.sandbox.narmi.dev/fdx/v5/accounts/8cd2f03a-0f87-432f-b49c-0be8347583a8/transactions?limit=1000&offset=1500"
       }
   }

The limit parameter can be used to limit the number of responses (the default is 1000).

The /transactions endpoint allows filtering by startTime and endTime.

Example: https://api.sandbox.narmi.dev/fdx/v5/accounts/8cd2f03a-0f87-432f-b49c-0be8347583a8/transactions?startTime=2023-11-14&endTime=2023-11-20