Risk indicators
Discover potential business risks by using your custom templates.
Documentation
Assess whether to do business with a Swedish company. The Risk API evaluates the company against your
risk template, a set of rules with thresholds you choose, and returns one result per rule: true when
the rule is triggered (a risk signal), false when it is not.
How it works:
- Indicators are facts about a company, recalculated every day: changes to its registration details, board, address and industry code; registration for F-tax, VAT and as an employer; bankruptcies connected to its representatives; PEP and legal occurrences; and key figures from its annual reports. See the section Indicators.
- Rules decide how an indicator is judged, for example "more than 2 address changes in the last year" or "equity ratio in the latest annual report below 10%".
- Templates hold the rules you have switched on, with your thresholds. Each template has a
templateId.
Getting started:
- Create a template under Risk templates in the settings of the Roaring web app. Start from one of the predefined templates and set thresholds that suit your business. A changelog there shows who changed what.
- Copy the template's
templateId.GET /templateslists them too. - Query a company with
GET /{templateId}/{companyId}.
Endpoints:
GET /{templateId}/{companyId}applies the template to the company and returns the result of every rule that is switched on.GET /templateslists your organisation's templates. Add?showDefault=trueto include Roaring's public templates, which can be used as they are.GET /template/{templateId}returns one template with its rules and parameters.
Templates are created and changed in the web app. The API only reads them.
Reading the response:
{
"companyId": "5564866803",
"indicators": [
{
"indicatorName": "missingAuditor",
"ruleDescription": "Checking if the indicator value match the template value of true",
"indicatorResult": true,
"actualValue": "true",
"templateValue": "true"
},
{
"indicatorName": "addressChangeCount",
"ruleDescription": "Checking if the count of changes over the last 1 year is greater than the specified limit of 2",
"indicatorResult": false
}
],
"status": { "code": 0, "text": "records found" }
}
Field | Description |
|---|---|
indicatorName | The rule's indicator, as listed in the section Indicators |
ruleDescription | The rule with your parameters, in words |
indicatorResult | true if the rule was triggered |
actualValue | The company's value that triggered the rule. Only present when indicatorResult is true |
templateValue | Your threshold that was passed. Only present when indicatorResult is true, and only for rules with a single threshold |
status.code | 0 if we hold indicators for the company, 1 if not (the indicators list is then empty) |
A rule that is switched off is not in the response. A rule is also left out when the company has no value for its indicator and the indicator has no default, for example Missing auditor for a company that is not an aktiebolag. The section Indicators lists what happens to each indicator when there is no value.
New indicators appear switched off in your existing templates. Switch them on in the settings to include them in the response.
Indicators
Indicators are recalculated every day from registered company data, annual reports, board data, the
Nordic PEP list and legal documents. The table lists them under the name you see in indicatorName, in the
order of the template settings.
indicatorName | What is evaluated | Your parameters | If we have no value |
|---|---|---|---|
companyBasicChangeCount | Number of dates on which the company's registered base information changed (see Counting changes) | more than N changes in the last 6 months to 5 years | 0 changes |
companyStatusChangeCount | Number of changes of the company's status (for example active, bankruptcy petition, liquidation) | more than N changes in the period | 0 changes |
addressChangeCount | Number of changes to the registered or visiting address | more than N changes in the period | 0 changes |
missingFTaxRegistration | true if the company is not approved for F-tax (F-skatt) | triggers on true | true |
missingVatRegistration | true if the company is not registered for VAT | triggers on true | true |
registrationDate | The date the company was registered | registered within the last 1 month to 5 years | not evaluated |
industryCodeCount | Number of changes of industry code (SNI) | more than N changes in the period | 0 changes |
riskIndustryCode | The company's current industry code (SNI) | matches any of up to 10 codes or code prefixes you list | no match |
sumOfBankruptciesAssociatedToTheBoard | Bankruptcies connected to the current representatives, counted once per representative (see Bankruptcies) | more than N | 0 |
bankruptCompaniesConnectedToTheBoard | Bankrupt companies connected to the current representatives, each company counted once (see Bankruptcies) | more than N | 0 |
Rows per page
"If we have no value" is what the rule sees when an indicator is missing for a company. A value of 0 or
true is evaluated like any other, so for example a company without annual reports triggers "equity ratio
below 10%". A rule that is "not evaluated" is left out of the response.
Representatives
Board changes, mean age, PEP and the two bankruptcy indicators look at the company's representatives: every person registered in a role for the company, except auditors (revisor, revisorssuppleant, huvudansvarig revisor, lekmannarevisor and lekmannarevisorssuppleant) and liquidators (likvidator, likvidatorssuppleant). Board members, deputies, the chair, the managing director and deputy managing director, external signatories, partners and other registered roles all count. A person with several roles counts once. Persons are matched by personal identity number.
Counting changes
The change indicators count the dates within the period you choose on which something changed; several changes registered on the same day count as one.
- Base information covers company name, legal form, status, industry code, number of employees and workplaces, registered, postal and visiting address, telephone and fax, registration for F-tax, VAT and as an employer, and the managing director. Board changes are not included; they have their own indicator.
- Status and industry code: the company's first registered status and industry code count as one change. A company registered within the period therefore has at least one.
- Address and representatives: only real changes count. The first registered address and set of representatives do not. For representatives, a change means someone joined or left; a change of role alone does not count.
- Changes caused by an official reclassification are not counted. The switch to SNI 2025 on 2025-12-16 is excluded from base information and industry code changes.
Bankruptcies
Both bankruptcy indicators answer: did any of the company's current representatives represent another company at the time it went bankrupt?
- A representative is connected to a bankruptcy if they were a representative of that company on the day its bankruptcy decision (konkursbeslut) was registered. Leaving before that day, or joining after, does not connect them.
- Bankruptcy decisions registered from 2019-03-11 onwards are included. Connections never expire.
- A bankrupt company whose representatives are still registered counts its own bankruptcy.
The two indicators count the same connections in different ways:
bankruptCompaniesConnectedToTheBoard: how many different bankrupt companies are connected.sumOfBankruptciesAssociatedToTheBoard: how many connections there are, one per representative and bankrupt company. A bankruptcy that three of today's representatives were involved in counts three times.
Example. Company X has three representatives today. Anna and Bo both represented Alfa AB when it went bankrupt, and Bo also represented Beta AB. Cecilia has no bankruptcy connections.
Current representative | Alfa AB (bankrupt) | Beta AB (bankrupt) | Connections |
|---|---|---|---|
| Anna | ✓ | — | 1 |
| Bo | ✓ | ✓ | 2 |
| Cecilia | — | — | 0 |
For Company X, bankruptCompaniesConnectedToTheBoard is 2 (Alfa and Beta) and
sumOfBankruptciesAssociatedToTheBoard is 3 (all ticks).
Financial indicators
revenuePerEmployee, equityRatioPercent, quickRatioPercent, annualRevenue and financialResults come from
the company's annual reports, one value per fiscal year. If a report is corrected, the corrected figures are
used.
- The rules use the latest annual report we hold, however old it is.
financialResultslooks at the last N reports; if the company has filed fewer, all of them are checked. - Units:
revenuePerEmployeeandfinancialResultsare in kSEK (thousands of SEK),annualRevenuein MSEK (millions of SEK), the ratios in percent and possibly negative. revenuePerEmployeeis total operating income (rörelseintäkter) divided by the number of employees, both from the same annual report, rounded to two decimals. A report with 0 or no employees is divided by 1; a report without operating income gives 0.- No annual report at all:
equityRatioPercent,quickRatioPercentandannualRevenueare evaluated as 0, so their rules trigger: missing financial information is treated as a risk.revenuePerEmployeeandfinancialResultsare not evaluated.
Legal documents
legalCount counts legal documents that concern the company itself or anyone who is a board member,
beneficial owner or alternative beneficial owner of it, or was one within the last two years. Documents from the current calendar year and
the five before it are included. Each document counts once, even if it concerns several of these. Family-law
matters, such as divorce and custody, are not counted. The count matches what the Legal Information API returns
for the company.
Other details
- Mean age is each representative's age in whole years, from their date of birth, averaged and rounded to the nearest whole year. A company without any representative with a personal identity number has no value, so it is evaluated as 0 and triggers a range checked as "outside".
- Missing auditor only applies to aktiebolag. Note that a smaller aktiebolag may legally choose not to have an auditor.
- Registration for F-tax, VAT and as an employer reflects the latest registration we hold. A company we hold
no registration data for is evaluated as not registered (
true). - Risk industries match on digits only, so
47matches every code starting with 47, and62.01matches 62.010 and 62.011.
Sandbox Examples
The sandbox has two templates and five companies with made-up indicator values. Every combination returns a fixed, pre-calculated response, so you can build and test your integration without production data. The responses are calculated with the production rules as of 2026-10-01, so "the last year" means 2025-10-01 to 2026-10-01.
The thresholds in the sandbox templates are examples, not recommendations. In production you set your own in the risk template settings. For advice, contact Roaring support.
Templates
Template | templateId | Contents |
|---|---|---|
| Full (Compliance) | 4ecbaaaa-139f-4196-b365-477c87878919 | All 21 indicators switched on with strict thresholds, including PEP |
| Weaker (Basic) | a0b55461-b2c3-409e-871b-3083ab5779fb | Lenient thresholds; VAT, industry code changes, mean age, employer registration, revenue per employee, equity ratio, quick ratio and missing auditor are switched off. There is no PEP rule in Basic templates |
Fetch them with GET /templates or GET /template/{templateId} to see every rule and parameter. The
switched-off rules of the weaker template are simply missing from its responses.
Companies
companyId | Scenario |
|---|---|
5560572850 | High risk. Representatives connected to three bankrupt companies, frequent changes of address, board, status and industry code, now in a risk industry (SNI 92, gambling), losses in the last two years, negative equity ratio and four legal documents |
5564779444 | Growing. Several board changes in the last year, two PEPs among the representatives, one bankruptcy connection, a loss three years ago and one legal document |
5564866803 | Missing registrations. Not registered for F-tax, VAT or as an employer, no auditor, low turnover and revenue per employee. Its only industry code change is the SNI 2025 switch, which is not counted |
5564881422 | Stable. Long history, few changes, healthy financials. No rule triggers in either template |
5567164818 | Newly registered in March 2026. No annual report yet, so equity ratio, quick ratio and turnover are evaluated as 0 and trigger. Its first status and industry code count as one change each, below the thresholds |
Results with the full template
Triggered rules show the actualValue; – means evaluated but not triggered; omitted means not evaluated, so
the rule is not in the response.
indicatorName | 5560572850 | 5564779444 | 5564866803 | 5564881422 | 5567164818 |
|---|---|---|---|---|---|
companyBasicChangeCount | 4 | – | – | – | – |
companyStatusChangeCount | 2 | – | – | – | – |
addressChangeCount | 3 | – | – | – | – |
missingFTaxRegistration | – | – | true | – | – |
missingVatRegistration | – | – | true | – | true |
registrationDate | – | – | – | – | 2026-03-02 |
industryCodeCount | 2 | – | – | – | – |
riskIndustryCode | 92.000 | – | – | – | – |
sumOfBankruptciesAssociatedToTheBoard | 4 | – | – | – | – |
bankruptCompaniesConnectedToTheBoard | 3 | 1 | – | – | – |
Rows per page
Results with the weaker template
indicatorName | 5560572850 | 5564779444 | 5564866803 | 5564881422 | 5567164818 |
|---|---|---|---|---|---|
companyBasicChangeCount | – | – | – | – | – |
companyStatusChangeCount | – | – | – | – | – |
addressChangeCount | – | – | – | – | – |
missingFTaxRegistration | – | – | true | – | – |
registrationDate | – | – | – | – | – |
riskIndustryCode | 92.000 | – | – | – | – |
sumOfBankruptciesAssociatedToTheBoard | – | – | – | – | – |
bankruptCompaniesConnectedToTheBoard | – | – | – | – | – |
boardChangeCount | – | – | – | – | – |
annualRevenue | – | – | – | – | 0 |
Rows per page
The same company can look very different depending on the template: with the weaker template, the
high-risk company 5560572850 only triggers three rules.
Endpoints
Find company risk information by company id
Query the indicator data for a given companyId by applying your template
https://api.roaring.io/se/company/risk/1.0/{templateId}/{companyId}Parameters path
templateIdrequired | stringid of risk template |
companyIdrequired | stringid of company |
Response schema: application/json
companyIdstring
No description provided.
indicatorsarray of objects (RiskIndicatorEvaluation)
No description provided.
statusobject (SearchResultStatus)
Description of search result
Find risk template by id
Get detailed information regarding your template
https://api.roaring.io/se/company/risk/1.0/template/{templateId}Parameters path
templateIdrequired | stringid of risk template |
Find all risk templates that are available for you company
It supports showDefault parameter to also load default templates that are available for all users (upcoming feature)
https://api.roaring.io/se/company/risk/1.0/templatesParameters query
showDefault | booleanOptional flag to include default templates in response true/false (defaults to false) |