Get company risk / credit score summary
curl --request GET \
--url https://lens-api.tic.io/companies/{id}/risks \
--header 'x-api-key: <api-key>'import requests
url = "https://lens-api.tic.io/companies/{id}/risks"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://lens-api.tic.io/companies/{id}/risks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lens-api.tic.io/companies/{id}/risks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lens-api.tic.io/companies/{id}/risks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://lens-api.tic.io/companies/{id}/risks")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lens-api.tic.io/companies/{id}/risks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"creditScore": 123,
"riskForecast": 123,
"riskForecastClass": 123,
"riskForecastDescription": "<string>",
"boardScore": 123,
"financialScore": 123,
"otherScore": 123,
"beneficialOwnersScore": 123,
"intelligence": [
{
"companyIntelligenceId": 123,
"linkToCompanyId": 123,
"linkToPersonId": 123,
"companyIntelligenceTypeDescription": "<string>",
"companyIntelligenceSubType": "<string>",
"companyIntelligenceSubTypeDescription": "<string>",
"companyIntelligencePolicyId": 123,
"notes": "<string>",
"notesEn": "<string>",
"notesSv": "<string>",
"score": 123,
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"intelligenceNotesType": 123,
"notesValue1": "<string>",
"notesValue2": "<string>",
"notesValue3": "<string>",
"notesValue4": "<string>"
}
],
"intelligenceNumberOfMax": 123,
"intelligenceSum": 123,
"creditScoreDescriptionsSv": [
"<string>"
],
"creditScoreDescriptionsEn": [
"<string>"
],
"networkRisk": {
"score": 123,
"totalCompanies": 123,
"highRiskCompanies": 123,
"highRiskCompaniesPercent": 123,
"totalPersons": 123,
"highlightedPersons": 123,
"highlightedPersonsPercent": 123,
"details": [
{
"type": "<string>",
"id": "<string>",
"name": "<string>",
"intelligenceScoreTotal": 123,
"highlight": true
}
]
},
"financialScoreDescriptions": [
{
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"notesSv": "<string>",
"notesEn": "<string>"
}
],
"otherScoreDescriptions": [
{
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"notesSv": "<string>",
"notesEn": "<string>"
}
],
"boardScoreDescriptions": [
{
"notesSv": "<string>",
"notesEn": "<string>",
"score": 123,
"positionEnd": true
}
],
"beneficialOwnersScoreDescriptions": [
{
"notesSv": "<string>",
"notesEn": "<string>",
"score": 123,
"positionEnd": true
}
],
"debtorSummary": {
"foreclosure": true,
"debtRestructuring": true,
"recordOfPaymentApplications": {
"numberOfCases": 123,
"totalAmountInSEK": 123,
"lastCaseDate": 123,
"orderToPayCases": [
{
"notificationType": "<string>",
"applicationVerdict": "<string>",
"casePrefix": "<string>",
"caseNumber": "<string>",
"dateOfApplicationOrVerdict": "2023-11-07T05:31:56Z",
"amount": 123,
"applicationWithdrawn": true,
"fileCreationDate": "2023-11-07T05:31:56Z"
}
]
},
"recordOfNonPayment": {
"numberOfCases": 123,
"totalAmountInSEK": 123,
"lastCaseDate": 123
},
"debtBalance": {
"lastUpdated": 123,
"totalAmountInSEK": 123,
"public": [
{
"description": "<string>",
"totalAmountInSEK": 123,
"numberOfCases": 123
}
],
"private": {
"numberOfCases": 123,
"totalAmountInSEK": 123
}
},
"executions": [
{
"registrationDate": "2023-11-07T05:31:56Z",
"caseNumber": "<string>",
"caseNumberOldFormat": "<string>",
"debtType": 123,
"debtTypeDescription": "<string>",
"executionYear": "<string>",
"executionTitleMonth": "<string>",
"executionDate": "2023-11-07T05:31:56Z",
"originalDebt": 123,
"recalledAmount": 123,
"executionEventType": "<string>",
"executionEventTypeDescription": "<string>",
"executionCaseType": "<string>",
"executionCaseTypeDescription": "<string>",
"terminatedWithCause": "<string>",
"terminatedWithCauseDescription": "<string>",
"executionEvents": [
{
"executionDate": "2023-11-07T05:31:56Z",
"executionEventType": "<string>",
"executionEventTypeDescription": "<string>",
"terminatedWithCause": "<string>",
"terminatedWithCauseDescription": "<string>"
}
]
}
],
"decisions": [
{
"decisionType": "<string>",
"decisionTypeDescription": "<string>",
"decisionDate": "2023-11-07T05:31:56Z",
"decisionEventType": "<string>",
"measures": [
"<string>"
],
"measuresDescriptions": [
"<string>"
],
"reasonForDecision": "<string>",
"reasonForDecisionDescription": "<string>"
}
]
}
}Companies
Get company risk / credit score summary
Returns the cached credit-score and risk summary for a company. Generated from the full credit-scoring pipeline (including the network / ORB graph) and cached for 4 hours. Pro tier receives a downscaled version.
GET
/
companies
/
{id}
/
risks
Get company risk / credit score summary
curl --request GET \
--url https://lens-api.tic.io/companies/{id}/risks \
--header 'x-api-key: <api-key>'import requests
url = "https://lens-api.tic.io/companies/{id}/risks"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://lens-api.tic.io/companies/{id}/risks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lens-api.tic.io/companies/{id}/risks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lens-api.tic.io/companies/{id}/risks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://lens-api.tic.io/companies/{id}/risks")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lens-api.tic.io/companies/{id}/risks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"creditScore": 123,
"riskForecast": 123,
"riskForecastClass": 123,
"riskForecastDescription": "<string>",
"boardScore": 123,
"financialScore": 123,
"otherScore": 123,
"beneficialOwnersScore": 123,
"intelligence": [
{
"companyIntelligenceId": 123,
"linkToCompanyId": 123,
"linkToPersonId": 123,
"companyIntelligenceTypeDescription": "<string>",
"companyIntelligenceSubType": "<string>",
"companyIntelligenceSubTypeDescription": "<string>",
"companyIntelligencePolicyId": 123,
"notes": "<string>",
"notesEn": "<string>",
"notesSv": "<string>",
"score": 123,
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"intelligenceNotesType": 123,
"notesValue1": "<string>",
"notesValue2": "<string>",
"notesValue3": "<string>",
"notesValue4": "<string>"
}
],
"intelligenceNumberOfMax": 123,
"intelligenceSum": 123,
"creditScoreDescriptionsSv": [
"<string>"
],
"creditScoreDescriptionsEn": [
"<string>"
],
"networkRisk": {
"score": 123,
"totalCompanies": 123,
"highRiskCompanies": 123,
"highRiskCompaniesPercent": 123,
"totalPersons": 123,
"highlightedPersons": 123,
"highlightedPersonsPercent": 123,
"details": [
{
"type": "<string>",
"id": "<string>",
"name": "<string>",
"intelligenceScoreTotal": 123,
"highlight": true
}
]
},
"financialScoreDescriptions": [
{
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"notesSv": "<string>",
"notesEn": "<string>"
}
],
"otherScoreDescriptions": [
{
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"notesSv": "<string>",
"notesEn": "<string>"
}
],
"boardScoreDescriptions": [
{
"notesSv": "<string>",
"notesEn": "<string>",
"score": 123,
"positionEnd": true
}
],
"beneficialOwnersScoreDescriptions": [
{
"notesSv": "<string>",
"notesEn": "<string>",
"score": 123,
"positionEnd": true
}
],
"debtorSummary": {
"foreclosure": true,
"debtRestructuring": true,
"recordOfPaymentApplications": {
"numberOfCases": 123,
"totalAmountInSEK": 123,
"lastCaseDate": 123,
"orderToPayCases": [
{
"notificationType": "<string>",
"applicationVerdict": "<string>",
"casePrefix": "<string>",
"caseNumber": "<string>",
"dateOfApplicationOrVerdict": "2023-11-07T05:31:56Z",
"amount": 123,
"applicationWithdrawn": true,
"fileCreationDate": "2023-11-07T05:31:56Z"
}
]
},
"recordOfNonPayment": {
"numberOfCases": 123,
"totalAmountInSEK": 123,
"lastCaseDate": 123
},
"debtBalance": {
"lastUpdated": 123,
"totalAmountInSEK": 123,
"public": [
{
"description": "<string>",
"totalAmountInSEK": 123,
"numberOfCases": 123
}
],
"private": {
"numberOfCases": 123,
"totalAmountInSEK": 123
}
},
"executions": [
{
"registrationDate": "2023-11-07T05:31:56Z",
"caseNumber": "<string>",
"caseNumberOldFormat": "<string>",
"debtType": 123,
"debtTypeDescription": "<string>",
"executionYear": "<string>",
"executionTitleMonth": "<string>",
"executionDate": "2023-11-07T05:31:56Z",
"originalDebt": 123,
"recalledAmount": 123,
"executionEventType": "<string>",
"executionEventTypeDescription": "<string>",
"executionCaseType": "<string>",
"executionCaseTypeDescription": "<string>",
"terminatedWithCause": "<string>",
"terminatedWithCauseDescription": "<string>",
"executionEvents": [
{
"executionDate": "2023-11-07T05:31:56Z",
"executionEventType": "<string>",
"executionEventTypeDescription": "<string>",
"terminatedWithCause": "<string>",
"terminatedWithCauseDescription": "<string>"
}
]
}
],
"decisions": [
{
"decisionType": "<string>",
"decisionTypeDescription": "<string>",
"decisionDate": "2023-11-07T05:31:56Z",
"decisionEventType": "<string>",
"measures": [
"<string>"
],
"measuresDescriptions": [
"<string>"
],
"reasonForDecision": "<string>",
"reasonForDecisionDescription": "<string>"
}
]
}
}Pro+ tier
Authorizations
Path Parameters
Internal company ID
Response
Credit / risk summary
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I