Groups and subsidiaries

When your group runs institutions in several jurisdictions, each one is its own institution on Notabene, with its own DID, customers, transfers and webhook endpoint. A parent institution links them in the Notabene network, and an API credential on the parent can act as any of them.

Parent institution and subsidiaries

A group has one parent institution and its subsidiaries. Each subsidiary is a regular institution with a jurisdiction, while the parent has no jurisdiction and holds no licence of its own. The dashboard calls the parent “group entity” under My Organization and “Parent organization” under API Credentials.

Notabene works out the parent’s DID from a subsidiary’s DID by removing the jurisdiction, so institutions can share a parent only when they share a domain and a suffix.

ProductionDrops the jurisdiction

A subsidiary’s DID

did:web:example.com:pt

The DID of its parent

did:web:example.com

Production, with a suffixKeeps the suffix

A subsidiary’s DID

did:web:example.com:payments:pt

The DID of its parent

did:web:example.com:payments

SandboxDrops the random part

A subsidiary’s DID

did:web:examplecom-4f2a9.sandbox.notabene.id:pt

The DID of its parent

did:web:examplecom.sandbox.notabene.id

AccountA subsidiary’s DIDThe DID of its parent
Productiondid:web:example.com:ptdid:web:example.com
Production, with a suffixdid:web:example.com:payments:ptdid:web:example.com:payments
Sandboxdid:web:examplecom-4f2a9.sandbox.notabene.id:ptdid:web:examplecom.sandbox.notabene.id

Once linked, your subsidiaries show nested under the parent in Network › Directory, where each keeps its own status, and a credential on the parent can reach them. Nothing else moves between institutions. Notabene does not redirect transfers from the parent to its subsidiaries, so each institution receives its own transfers and keeps its own customers, policies and webhook endpoint.

Setup

You set up a group in the dashboard, signed in as each institution in turn. Creating and linking take the Group Admin role, which whoever registers an institution holds from the start.

  1. Register each institution. Sign up one institution per jurisdiction, as described in Create your account, with an email address on the same domain. To add one while signed in, open the organization switcher at the top of the dashboard and choose Add New Organization.
  2. Create the parent. Signed in as your first institution, open My Organization › My Organization, where the Profile tab shows “No group entity yet”. Choose “Create and set as group entity”, enter a name that is not taken on the Notabene network, and choose the same button again. You become Group Admin of the parent, and this institution becomes its first subsidiary.
  3. Link the other institutions. Signed in as each of them, the same tab shows “We found a likely group entity for your organisation”. Choose “Link as group entity” and then Confirm, which takes Group Admin on both that institution and the parent.
The dialog that creates a parent institution: its name, its network identity, and a preview of the subsidiary nested under it
My Organization › My Organization, the Profile tab

To take an institution out of the group, sign in as it and choose “Unlink from group entity” on the same tab. It becomes standalone again, with no data deleted and no transfers moved.

People sign in to one institution at a time and see only the institutions they are a member of, so invite your team to each one under Settings › Teams.

Organization IDs

Every institution has an organization ID that starts with org_, and a token request names it to say which institution the token acts as. To find them, sign in as the parent and go to Developers › API Credentials.

The THIS ORGANIZATION card shows the parent’s ID, and the Organizations menu lists the parent and each subsidiary with their IDs. The settings of a credential list the subsidiaries’ IDs as well.

The API Credentials screen with the Organizations menu open, listing the parent institution and each subsidiary with its organization ID
Developers › API Credentials, signed in as the parent institution

API credentials

A group can hold its credentials in two ways, and you can mix them, because each institution can hold up to 3 credentials of its own.

A credential on the parentA credential on each institution
Where you create itSigned in as the parent, with subsidiary access onSigned in as that institution
What it acts asThe parent and every subsidiary it can reachThat institution only
Its token requestNames the institution in organizationNeeds no organization
When it fitsOne backend serves the whole groupSeparate teams or systems run each institution, so one secret reaches one institution
A credential on the parentA credential on each institution
Where you create itSigned in as the parent, with subsidiary access onSigned in as that institution
What it acts asThe parent and every subsidiary it can reachThat institution only
Its token requestNames the institution in organizationNeeds no organization
When it fitsOne backend serves the whole groupSeparate teams or systems run each institution, so one secret reaches one institution

A credential on the parent

Signed in as the parent, choose Create API Credentials. In API Client Settings, tick “This app can access subsidiary organizations”, and REACHABLE SUBSIDIARIES lists the institutions the credential can reach. Leave it unticked for a credential that should act only as the parent.

Choose Create credential and store the client secret straight away, because it is shown only once. The credential’s row then carries a Subsidiary Access badge.

The settings of a credential: the box for access to subsidiary organizations, ticked, and the reachable subsidiaries with their organization IDs
Developers › API Credentials, API Client Settings

To change an existing credential, open the settings icon on its row, change the box and choose Save. A credential does not pick up a subsidiary you link later by itself, so save its settings again after you link a new one.

A credential on each institution

Signed in as the institution, choose Create API Credentials, and the credential is created straight away, bound to that institution. Its token requests work as described in Authentication.

Tokens for each institution

An access token acts as one institution, so a credential on the parent needs one token for each institution it acts as. Send the same request as in Authentication, with the institution’s ID in organization.

curl https://auth.notabene.id/oauth/token \
  --header 'Content-Type: application/json' \
  --data '{
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET",
    "grant_type": "client_credentials",
    "audience": "https://sandbox.notabene.id",
    "organization": "org_Yq2mT8vKd4NxRb7L"
  }'const response = await fetch('https://auth.notabene.id/oauth/token', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET",
    "grant_type": "client_credentials",
    "audience": "https://sandbox.notabene.id",
    "organization": "org_Yq2mT8vKd4NxRb7L"
  }),
});
const answer = response.status === 204 ? null : await response.json();import requests

response = requests.post(
    'https://auth.notabene.id/oauth/token',
    json={
      "client_id": "YOUR_CLIENT_ID",
      "client_secret": "YOUR_CLIENT_SECRET",
      "grant_type": "client_credentials",
      "audience": "https://sandbox.notabene.id",
      "organization": "org_Yq2mT8vKd4NxRb7L"
    },
)
answer = None if response.status_code == 204 else response.json()
What to replace
  • YOUR_CLIENT_ID: The client ID of the credential on your parent institution
  • YOUR_CLIENT_SECRET: The client secret, shown once when you created the credential
  • org_Yq2mT8vKd4NxRb7L: The organization ID of the institution this token acts as
Response200
{
  "access_token": "eyJhbGciOiJSUzI1NiIs",
  "expires_in": 86400,
  "token_type": "Bearer"
}
curl https://auth.notabene.id/oauth/token \
  --header 'Content-Type: application/json' \
  --data '{
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET",
    "grant_type": "client_credentials",
    "audience": "https://sandbox.notabene.id",
    "organization": "org_Yq2mT8vKd4NxRb7L"
  }'
const response = await fetch('https://auth.notabene.id/oauth/token', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET",
    "grant_type": "client_credentials",
    "audience": "https://sandbox.notabene.id",
    "organization": "org_Yq2mT8vKd4NxRb7L"
  }),
});
const answer = response.status === 204 ? null : await response.json();
import requests

response = requests.post(
    'https://auth.notabene.id/oauth/token',
    json={
      "client_id": "YOUR_CLIENT_ID",
      "client_secret": "YOUR_CLIENT_SECRET",
      "grant_type": "client_credentials",
      "audience": "https://sandbox.notabene.id",
      "organization": "org_Yq2mT8vKd4NxRb7L"
    },
)
answer = None if response.status_code == 204 else response.json()
{
  "access_token": "eyJhbGciOiJSUzI1NiIs",
  "expires_in": 86400,
  "token_type": "Bearer"
}

Without organization, the token acts as the parent. A request that names an organization the credential cannot reach answers 400 with invalid_request, and no token is issued.

Keep one token per institution, renew each as described in Authentication, and send each call with the token of the institution it belongs to. To check which institution a token acts as, call GET /api/v1/identity, which answers with that institution’s DID.

API reference
curl https://sandbox.notabene.id/api/v1/identity \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'const response = await fetch('https://sandbox.notabene.id/api/v1/identity', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
  },
});
const answer = response.status === 204 ? null : await response.json();import requests

response = requests.get(
    'https://sandbox.notabene.id/api/v1/identity',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
)
answer = None if response.status_code == 204 else response.json()
Response200
{
  "did": "did:web:example.com:pt",
  "document": {
    "@context": [
      "https://www.w3.org/ns/did/v1"
    ],
    "id": "did:web:example.com:pt"
  }
}
curl https://sandbox.notabene.id/api/v1/identity \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
const response = await fetch('https://sandbox.notabene.id/api/v1/identity', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
  },
});
const answer = response.status === 204 ? null : await response.json();
import requests

response = requests.get(
    'https://sandbox.notabene.id/api/v1/identity',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
)
answer = None if response.status_code == 204 else response.json()
{
  "did": "did:web:example.com:pt",
  "document": {
    "@context": [
      "https://www.w3.org/ns/did/v1"
    ],
    "id": "did:web:example.com:pt"
  }
}

Did this page help you?