Order the name history for a company
curl --request POST \
--url https://lens-api.tic.io/bolagsverket/name-history/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://lens-api.tic.io/bolagsverket/name-history/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://lens-api.tic.io/bolagsverket/name-history/{id}', 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/bolagsverket/name-history/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/bolagsverket/name-history/{id}"
req, _ := http.NewRequest("POST", 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.post("https://lens-api.tic.io/bolagsverket/name-history/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lens-api.tic.io/bolagsverket/name-history/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"teamDocumentOrder": {
"teamDocumentOrderId": 123,
"teamId": 123,
"teamName": "<string>",
"documentOrderGuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentTitle": "<string>",
"documentOrderType": "companyDocument",
"documentOrderDate": "2023-11-07T05:31:56Z",
"orderedByUserId": 123,
"orderedByUserEmail": "<string>",
"orderedByUserDisplayName": "<string>",
"price": 123,
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"externalOrigin": "table_Bolagsverket_Notification",
"externalId2": "<string>",
"salesOrderRows": [
123
],
"content": [
{
"teamDocumentOrderContentId": 123,
"teamDocumentOrderId": 123,
"teamDocumentContentType": "pdf"
}
]
},
"nameHistory": {
"companyName": "<string>",
"registrationNumber": "<string>",
"companyRegistrationDate": "2023-11-07T05:31:56Z",
"legalFormCode": "<string>",
"legalForm": "<string>",
"pendingCases": 123,
"currentName": {
"name": "<string>",
"registeredDate": "2023-11-07T05:31:56Z"
},
"earlierNames": [
{
"name": "<string>",
"registeredDate": "2023-11-07T05:31:56Z"
}
]
},
"recovery": {
"recoveredAtUtc": "2023-11-07T05:31:56Z",
"alreadyRecovered": true,
"rowsInserted": 123,
"rowsMatched": 123,
"isVerified": true,
"verificationNote": "<string>"
}
}Bolagsverket
Order the name history for a company
Orders every earlier name of the company with its registration date from Bolagsverket and stores the names with the company, where they show under naming for everyone afterwards. The history is ordered once per company; a later call returns the stored answer without ordering or charging. Priced per team with a 4 SEK default.
POST
/
bolagsverket
/
name-history
/
{id}
Order the name history for a company
curl --request POST \
--url https://lens-api.tic.io/bolagsverket/name-history/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://lens-api.tic.io/bolagsverket/name-history/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://lens-api.tic.io/bolagsverket/name-history/{id}', 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/bolagsverket/name-history/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/bolagsverket/name-history/{id}"
req, _ := http.NewRequest("POST", 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.post("https://lens-api.tic.io/bolagsverket/name-history/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lens-api.tic.io/bolagsverket/name-history/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"teamDocumentOrder": {
"teamDocumentOrderId": 123,
"teamId": 123,
"teamName": "<string>",
"documentOrderGuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentTitle": "<string>",
"documentOrderType": "companyDocument",
"documentOrderDate": "2023-11-07T05:31:56Z",
"orderedByUserId": 123,
"orderedByUserEmail": "<string>",
"orderedByUserDisplayName": "<string>",
"price": 123,
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"externalOrigin": "table_Bolagsverket_Notification",
"externalId2": "<string>",
"salesOrderRows": [
123
],
"content": [
{
"teamDocumentOrderContentId": 123,
"teamDocumentOrderId": 123,
"teamDocumentContentType": "pdf"
}
]
},
"nameHistory": {
"companyName": "<string>",
"registrationNumber": "<string>",
"companyRegistrationDate": "2023-11-07T05:31:56Z",
"legalFormCode": "<string>",
"legalForm": "<string>",
"pendingCases": 123,
"currentName": {
"name": "<string>",
"registeredDate": "2023-11-07T05:31:56Z"
},
"earlierNames": [
{
"name": "<string>",
"registeredDate": "2023-11-07T05:31:56Z"
}
]
},
"recovery": {
"recoveredAtUtc": "2023-11-07T05:31:56Z",
"alreadyRecovered": true,
"rowsInserted": 123,
"rowsMatched": 123,
"isVerified": true,
"verificationNote": "<string>"
}
}Pro+ tier
Orders every earlier name of the company, each with the date the company registration office registered it, and stores the names with the company. Afterwards
GET /companies/{id}/naming lists the whole name history, for every team, with the earlier names dated when they were registered.
The history is ordered once per company. A later call, from any team, returns the stored answer with recovery.alreadyRecovered set to true, orders nothing and charges nothing; teamDocumentOrder is then null. Companies that are not registered at the office answer 404 and nothing is ordered or charged. The price is set per team, with a 4 SEK default, and is returned in teamDocumentOrder.price.
nameHistory carries the company header (companyRegistrationDate, legalForm, pendingCases), currentName and earlierNames, newest first, each with registeredDate. recovery says what was stored: rowsInserted names that were new to us, rowsMatched names we already had, and isVerified when the oldest name dates from the company’s registration and the current name agrees with ours.