Web services and test environment

How to sign up

In the test environment, it is not necessary to sign up using the order form attached to the subscription conditions. Nor are there any costs associated with web services in the test environment.

Use of the developer portal

  • Create a profile

Log on at https://developer.uat2.cbso.nbb.be/ to access the portal intended for technical users/developers. It is necessary to create a profile in order to obtain a key for each product, which must be used as a parameter when programming queries.

Create an account under “Sign up” and fill in the requested information.

webservices-testomgeving-aanmaak-profiel-1
Webservices en environnement de test - Créer un profil - 2

Click on “Sign up” to create your profile. You will receive a confirmation email from [email protected].

Webservices in testomgeving - Aanmaak profiel - 3

You can now connect via Sign in.

  • Selection of products

You can explore the various products via “Explore products” or “Products”.

Webservices in testomgeving - Aanmaak profiel - 1

Webservices are subdivided into the following products:

Product Description
Authentic Query Request and retrieve data from published annual accounts, on an individual basis
Authentic Extract Download data packages for published filings → Zip file
Improved data Request and retrieve data and download data packages corrected by the NBB (PDF encoding, euro conversions, corrections)
Authentic Archive Facilitates the retrieval, for a specified date, of all references and documents for filings accepted and published by the National Bank in the last three years.
Improved Archive Facilitates the retrieval of all references and documents for filings to which the National Bank has made improvements in the last three years.

It is necessary to subscribe to each product separately.

Webservices in testomgeving - Producten selecteren - 2

Enter the product name and click on “Subscribe”.

Webservices in testomgeving - Producten selecteren - 3

For each subscription, you will receive an email informing you that your request is being checked and processed. Once the subscription is approved, you can get to work.

You can see your subscriptions in your user profile.

For each product, you will receive a primary key, which you can view by clicking on “Show”.

You will need this key as a parameter.

Webservices en environnement de test - Sélection des produits - 4
  • Emails

You will receive emails from the developer portal [email protected] with the alias “NBB CBSO”, for instance when you create a profile or subscribe to a product or to inform you that your subscription has been approved.

Webservices en environnement de test - Emails - 1

Web services operations

In order to give the user insight in the various types of operations, we have provided several cases from Postman as an illustration here below, https://www.postman.com/. Postman is a platform which allows you to create and use APIs.

In the illustration below, Postman is used to prepare, send and receive the output of HTTP queries. Alternatives are of course available: proprietary software, SOAPUI, etc.

To perform CBSO web services operations, you will need to:

Define the URL.

Web services and test environment - Web services operations - 1

You must also provide the necessary HTTP headers or query parameters:

- the API key in the box marked “NBB-CBSO-Subscription-Key” (primary key)
- the request ID in the box marked “X-Request-Id”
- the type of support for the output in the box marked “Accept”.

Webservices en environnement de test - Webservices opérations - 2

UAT2 is the test environment for external users (server name https://ws.uat2.cbso.nbb.be + parameters).

An overview of the possibilities provided per product:

Product: AUTHENTIC-QUERY
1 Retrieve the references of authentic data
2 Retrieve authentic data - PDF
3 Retrieve authentic data - XBRL
4 Retrieve authentic data - Json
Product: AUTHENTIC-EXTRACT
5 Retrieve all references for a given date (Zip or JSON)
6 Retrieve all images for a given date (Zip or PDF)
7 Retrieve all data for a given date (Zip or XBRL)
8 Retrieve all data for a given date (Zip or JSON)
Product: IMPROVED
9 Retrieve correction references for a given CBE number
10 Retrieve correction references for a given correction reference
11 Retrieve PDF-extracted data for a given correction reference
12 Retrieve data converted into euros for a given correction reference
13 Retrieve corrected data for a given correction reference
14 Retrieve all correction references
15 Retrieve all corrected data

Examples of operations and URLs

AUTHENTIC-QUERY API Name: authentic
  Operation URL
1 Application/json https://ws.uat2.cbso.nbb.be/authentic/legalEntity/0403101811/references
2 Application/pdf https://ws.uat2.cbso.nbb.be/authentic/deposit/2021-00000132/accountingData
3 Application/x.xbrl https://ws.uat2.cbso.nbb.be/authentic/deposit/2021-00000132/accountingData
4 Application/x.jsonxbrl https://ws.uat2.cbso.nbb.be/authentic/deposit/2021-00000132/accountingData
AUTHENTIC-EXTRACT API Name: extract
  Operation URL
5 Application/x.zip+pdf https://ws.uat2.cbso.nbb.be/extracts/batch/2021-12-14/accountingData
6 Application/x.zip+xbrl https://ws.uat2.cbso.nbb.be/extracts/batch/2021-12-14/accountingData
7 Application/x.zip+jsonxbrl https://ws.uat2.cbso.nbb.be/extracts/batch/2021-12-14/accountingData
8 Application/x.zip+json https://ws.uat2.cbso.nbb.be/extracts/batch/2021-12-14/references
IMPROVED API Name: improved
  Operation URL
9 Application/json https://ws.uat2.cbso.nbb.be/improved/legalEntity/0403834160/
references/improved
10 Application/json https://ws.uat2.cbso.nbb.be/improved/deposit/
2021-00000160/references/improved
11 Application/x.jsonxbrl https://ws.uat2.cbso.nbb.be/improved/deposit/
2021-00000160/accountingData/improved/pdf_extracted
12 Application/x.jsonxbrl https://ws.uat2.cbso.nbb.be/improved/deposit/
2021-00000160/accountingData/improved/euro_converted
13 Application/x.jsonxbrl https://ws.uat2.cbso.nbb.be/improved/deposit/
2021-00000010/accountingData/improved/corrected
14 Application/x.zip+json https://ws.uat2.cbso.nbb.be/improved/batch/
2021-10-10/references/improved
15 Application/x.zip+jsonxbrl https://ws.uat2.cbso.nbb.be/improved/batch/
2021-10-10/accountingData/improved