Environments, credentials, authentication, rights and the first calls to the FinologeeBKO API.
The FinologeeBKO API is a REST API that automates the processes of the FinologeeBKO interface: cash accounts and account groups, counterparty accounts and counterparty groups, credit transfers, direct debits, payment categories, statements and securities accounts. It uses the same terms as the interface, so a resource in the API is the resource that users see on screen.
The reference has four parts:
- Authentication API: obtains the bearer token that every FinologeeBKO API call needs. See Authentication
- FinologeeBKO API: the resources and operations of the platform
- Invoicing API: sends invoices and credit notes through the Peppol e-invoicing network
- Webhooks: the endpoints that your system exposes to receive event notifications from FinologeeBKO. See About webhooks
Environments and base URL
Each tenant has its own host. Every FinologeeBKO API path in this reference starts with the API version, for example /v2/counterparties, and is relative to the host of the tenant:
| Component | Production value |
|---|---|
| FinologeeBKO API base URL | https://{tenant}.bko.finologee.com |
| Token endpoint | https://idp.finologee.com/auth/realms/services/protocol/openid-connect/token |
{tenant} is the name of your FinologeeBKO tenant. Sandbox and production environments are isolated from each other. Finologee provides the host of your sandbox tenant and its token endpoint during onboarding. A token works only on the host of the tenant it was issued for: see Authentication.
Credentials
An integration authenticates as an API integration: a technical user of the tenant with its own permissions. Each API integration has a name, an ID and a secret key. Since FinologeeBKO 6.8, tenant administrators create and manage API integrations themselves in Tenant settings > API integrations: creation, renaming, permissions, secret key regeneration, deactivation and reactivation. See API integrations. Authentication describes how the ID, the secret key and the client_id of the tenant are used, and the rules for approval, deactivation and key rotation.
Create one API integration per external system, so that each system has its own permissions and its own key.
Authentication flow
- Call the token endpoint with
grant_type=password, theclient_idof the tenant, and the ID and secret key of the API integration asusernameandpassword - Send the
access_tokenof the response in theAuthorizationheader of every FinologeeBKO API call:Authorization: Bearer <access_token> - Renew the access token before it expires
curl -X POST "https://idp.finologee.com/auth/realms/services/protocol/openid-connect/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=password" \
-d "client_id=<client_id of the tenant>" \
-d "username=<API integration ID>" \
-d "password=<secret key>"
curl "https://{tenant}.bko.finologee.com/v2/counterparties?pageIndex=0&pageSize=100" \
-H "Authorization: Bearer <access_token>"See Authentication for the token checks and renewal.
Rights
Every call runs under the rights of the API integration that obtained the token, in the same way as for a user of the interface:
- Each operation requires one or more rights, listed on its page, for example
COUNTERPARTY_ACCOUNT_READ. A call without the required right fails with403 - Most rights have a scope, for example the counterparty groups that
COUNTERPARTY_ACCOUNT_READapplies to. A resource outside the scope of the API integration behaves as if it does not exist: find operations leave it out and single-resource operations return404 - Business controls apply to API calls as they apply to users. For example, under the maker-checker principle an API integration cannot approve a counterparty account that it created or last modified
Administrators assign rights and scopes on the API integration in Tenant settings > API integrations. See Permissions.
Signed credit transfers
Create credit transfers accepts an optional X-Signature header that carries a detached JWS of the request body. With this header, FinologeeBKO creates the credit transfers with the signature of the API integration attached. The operation page describes the JWS format and how to obtain the signing certificate.
Conventions and webhooks
- RESTful API conventions: HTTP methods, media types, status codes, the error object, pagination, sorting, filtering and data formats
- About webhooks: event notifications that FinologeeBKO sends to your system, so that it does not need to poll the API
OpenAPI files
The OpenAPI 3 files of this version are available for download:
Each operation page shows request examples. To generate a client from the files, use an open-source tool such as Swagger Editor or OpenAPI Generator.
Related documentation
- API: API features described for users of the platform
- API integrations
- Permissions
- Webhooks

