import Openregister from 'openregister';
const client = new Openregister({
apiKey: 'My API Key',
});
const response = await client.company.retrieveFinancials('company_id');
console.log(response.reports);
{
"reports": [
{
"report_id": "<string>",
"consolidated": true,
"aktiva": {
"rows": [
{
"name": "<string>",
"formatted_name": "<string>",
"current_value": 123,
"previous_value": 123,
"children": [
{}
]
}
]
},
"passiva": {
"rows": [
{
"name": "<string>",
"formatted_name": "<string>",
"current_value": 123,
"previous_value": 123,
"children": [
{}
]
}
]
},
"guv": {
"rows": [
{
"name": "<string>",
"formatted_name": "<string>",
"current_value": 123,
"previous_value": 123,
"children": [
{}
]
}
]
},
"report_start_date": "2023-11-07T05:31:56Z",
"report_end_date": "2023-11-07T05:31:56Z"
}
]
}
import Openregister from 'openregister';
const client = new Openregister({
apiKey: 'My API Key',
});
const response = await client.company.retrieveFinancials('company_id');
console.log(response.reports);
{
"reports": [
{
"report_id": "<string>",
"consolidated": true,
"aktiva": {
"rows": [
{
"name": "<string>",
"formatted_name": "<string>",
"current_value": 123,
"previous_value": 123,
"children": [
{}
]
}
]
},
"passiva": {
"rows": [
{
"name": "<string>",
"formatted_name": "<string>",
"current_value": 123,
"previous_value": 123,
"children": [
{}
]
}
]
},
"guv": {
"rows": [
{
"name": "<string>",
"formatted_name": "<string>",
"current_value": 123,
"previous_value": 123,
"children": [
{}
]
}
]
},
"report_start_date": "2023-11-07T05:31:56Z",
"report_end_date": "2023-11-07T05:31:56Z"
}
]
}
API Key Authentication Provide your API key as a Bearer token in the Authorization header.
Unique company identifier. Example: DE-HRB-F1103-267645
Success
The response is of type object
.