5.0.0 • Published 5 years ago
@datafire/roaring v5.0.0
@datafire/roaring
Client library for CompanyAPI
Installation and Usage
npm install --save @datafire/roaringlet roaring = require('@datafire/roaring').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});Description
Actions
company_board_members.get
roaring.company_board_members.get({
"countryCode": "",
"companyId": ""
}, context)Input
- input
object- countryCode required
string: Country code for the company - companyId required
string: Company identification for the company
- countryCode required
Output
- output CompanyBoardMembersResult
company_board_members.post
roaring.company_board_members.post({
"countryCode": "",
"body": null
}, context)Input
- input
object- countryCode required
string: Country code for the company - body required CompanyLookupRequestBody
- countryCode required
Output
- output CompanyBoardMembersMulti
company_credit_decision.get
roaring.company_credit_decision.get({
"countryCode": "",
"companyId": "",
"template": ""
}, context)Input
- input
object- countryCode required
string: Country code for the company - companyId required
string: Company identification for the company - template required
string: Template for credit decision
- countryCode required
Output
- output CompanyCreditDecisionResult
company_economy_overview.get
roaring.company_economy_overview.get({
"countryCode": "",
"companyId": ""
}, context)Input
- input
object- countryCode required
string: Country code for the company - companyId required
string: Company identification for the company
- countryCode required
Output
- output CompanyEconomyOverviewResult
company_economy_overview.post
roaring.company_economy_overview.post({
"countryCode": "",
"body": null
}, context)Input
- input
object- countryCode required
string: Country code for the company - body required CompanyLookupRequestBody
- countryCode required
Output
- output CompanyEconomyOverviewMulti
company_event.post
roaring.company_event.post({
"countryCode": "",
"body": null
}, context)Input
- input
object- countryCode required
string: Country code for the company - body required CompanyEventRequestBody
- countryCode required
Output
- output CompanyEventResult
company_overview.get
roaring.company_overview.get({
"countryCode": "",
"companyId": ""
}, context)Input
- input
object- countryCode required
string: Country code for the company - companyId required
string: Company identification for the company
- countryCode required
Output
- output CompanyOverviewResult
company_overview.post
roaring.company_overview.post({
"countryCode": "",
"body": null
}, context)Input
- input
object- countryCode required
string: Country code for the company - body required CompanyLookupRequestBody
- countryCode required
Output
- output CompanyOverviewMulti
company_signatory.get
roaring.company_signatory.get({
"countryCode": "",
"companyId": ""
}, context)Input
- input
object- countryCode required
string: Country code for the company - companyId required
string: Company identification for the company
- countryCode required
Output
- output CompanySignatoryResult
company_signatory.post
roaring.company_signatory.post({
"countryCode": "",
"body": null
}, context)Input
- input
object- countryCode required
string: Country code for the company - body required CompanyLookupRequestBody
- countryCode required
Output
- output CompanySignatoryMulti
company_simple_search.get
roaring.company_simple_search.get({
"countryCode": ""
}, context)Input
- input
object- countryCode required
string: Country code for the company - companyName
string: Company name - town
string: Town
- countryCode required
Output
Output schema unknown
Definitions
BadRequest
- BadRequest
object: Returned when something is wrong in the request, e.g. too many entities are requested or arguments are missing- error
string - message
string
- error
CompanyBoardMembersMulti
- CompanyBoardMembersMulti
object- companies
array - responseInfo ResponseInfo
- companies
CompanyBoardMembersResult
- CompanyBoardMembersResult
object: Roaring Apps company board members lookup. list contains all possible fields returned- boardMembers
array: Array of board members for the requested company- items
object- boardMemberCompanyId
string - firstName
string - fromDate
string - fullName
string - givenName
string - middleName
string - personalNumber
string - roleCode
string - roleName
string - surName
string - toDate
string
- boardMemberCompanyId
- items
- changeDate
string - companyId
string
- boardMembers
CompanyCreditDecisionResult
- CompanyCreditDecisionResult
object: Roaring Apps company credit decision- address
string - companyId
string: Company identifier - rejections CompanyRejection
- statusCode
string - statusText
string - town
string - zipCode
string
- address
CompanyEconomyOverviewMulti
- CompanyEconomyOverviewMulti
object- companies
array - responseInfo ResponseInfo
- companies
CompanyEconomyOverviewResult
- CompanyEconomyOverviewResult
object: Roaring Apps company economy overview in a lookup. list contains all possible fields returned- bsCashAndBankBalances
string - bsShareCapital
string - bsTotalAssets
string - bsTotalEquity
string - changeDate
string - companyId
string - kpiNetMarginPercent
string - kpiQuickRatioPercent
string - kpiSolidityPercent
string - nbrOfEmployees
string - nbrOfEmployeesInterval
string - nbrOfEmployeesOfficeInterval
string - netTurnover
string - plNetIncome
string - plOperatingProfit
string - plProfitLossAfterFinItems
string - turnoverInterval
string - turnoverPerEmployee
string
- bsCashAndBankBalances
CompanyEventRequestBody
- CompanyEventRequestBody
object- requests
array- items
object- companyId
string: Company identifier - date
string: Earliest date to fetch events for
- companyId
- items
- requests
CompanyEventResult
- CompanyEventResult
object: Roaring Apps company event lookup. list contains all possible fields returned- responses
array: Array of events for the requested companies- items
object- changeDate
string: Date for when the event occurred - code
string: Change code for the event - companyId
string: Company identifier - dataSet
array: List of all Roaring datasets affected by the event- items
string
- items
- changeDate
- items
- responses
CompanyLookupRequestBody
- CompanyLookupRequestBody
object- companyIds
array- items
string
- items
- companyIds
CompanyOverviewMulti
- CompanyOverviewMulti
object- companies
array- items CompanyOverviewResult
- responseInfo ResponseInfo
- companies
CompanyOverviewResult
- CompanyOverviewResult
object: Roaring Apps company overview in a lookup. list contains all possible fields returned by either of the api verb calls- address
string: Postal address, street/P.O BOX - changeDate
string: Date for when the record was last changed - coAddress
string: Postal address, C/O address - commune
string: Postal address, commune name - companyHolder
string: Name of company holder - companyId
string: Company identifier (company registration number / organization number) - companyName
string: Company name - companyRegistrationDate
string: Company registration date - county
string: Postal address, county - email
string: Email address - employerContributionReg
string: Company is registererd for employer contribution tax (Arb.avg Sweden) - faxNumber
string: Fax number - industryCode
string: Company main industry, NACE code - industryText
string: Company main industry, NACE text - legalGroupCode
string: Company type code - legalGroupText
string: Company type text - numberCompanyUnits
integer: Number of company units/workplaces - numberEmployees
string: Number of employees (pcs) - phoneNumber
string: Telephone number - preliminaryTaxReg
string: Company is approved for preliminary tax (F-skatt Sweden) - severalCompanyName
boolean: Indicates if the company have more than one active name - statusCode
string: Company status code - statusDateFrom
string: Company status date from - statusTextDetailed
string: Company status text detailed - statusTextHigh
string: Company status text - topDirectorFunction
string: Top director's function - topDirectorName
string: Top director's name - town
string: Postal address, town - vatReg
string: Company is registered for VAT (MOMS Sweden) - vepChangedDate
string: Show the latest date any of preliminaryTaxReg, employerContributionReg or vatReg has had a change - visitAddress
string: Visiting address, street name, street number and unit - visitCommune
string: Visiting address, commune - visitCounty
string: Visiting address, county - visitStreet
string: Visiting address, street - visitStreetNumber
string: Visiting address, number - visitStreetUnit
string: Visiting address, unit - visitTown
string: Visiting address, town - visitZipCode
string: Visiting address, zip code - webAddress
string: Web address - zipCode
string: Postal address, zipcode
- address
CompanyRejection
- CompanyRejection
object: Credit decision rejection- causeOfReject
string - rejectComment
string - rejectText
string
- causeOfReject
CompanySignatoryMulti
- CompanySignatoryMulti
object- companies
array- items CompanySignatoryResult
- responseInfo ResponseInfo
- companies
CompanySignatoryResult
- CompanySignatoryResult
object: Roaring Apps company signatory in a lookup. list contains all possible fields returned- changeDate
string: date for when the result signatory was set - companyId
string: Company identifier - companySignatory
string: Signatory for the company
- changeDate
NotFound
- NotFound
object: Requested resource could not be found- error
string - message
string
- error
ResponseInfo
- ResponseInfo
object- hitCount
integer: Number of companyIds in response (companyIds that could be found) - noMatchIds
array: Array of companyIds that was in request but could not be matched- items
string
- items
- requestCount
integer: Number of requested companyIds
- hitCount
ServerError
- ServerError
object: Internal server error- error
string - message
string
- error