DNB Open Banking Client

A Dart client for DNB's API products. (Under development, may change)

Travis Build Status npm (latest) GitHub contributors License Gitmoji

The APIs are currently under development and may change. To use this API, you have to create an application at https://developer.dnb.no.

See examples below.


import 'package:dnb/dnb.dart' as dnb;

void main() async {
  final client = dnb.OpenBankingClient(
      clientKey: 'YOUR-CLIENT-KEY',
      clientSecret: 'YOUR-CLIENT-SECRET',
      apiKey: 'YOUR-API-KEY',

  /// Retrieve all test customers from sandbox
  final testCustomers = await client.getTestCustomers();

  /// Retrieve token for access to other APIs
  final token = await client.getToken(customerId: 'CUSTOMER-ID');

  /// Retrieve the current customer
  final customer = await client.getCurrentCustomer();


First, clone the repo. You will need API keys to run the tests. Make a new app at https://developer.dnb.no.

Do pub get.

Run tests with pub run test.

Do not commit directly to master. Preferably, make a feature/branchname branch and create a pull request.


MIT © 2019 Arne Molland