Dun & Bradstreet

Company rest API

Failure score

The API returns limited company's failure score in JSON format, as specified by business id or duns number.

In order to use the API you must have the valid environment-specific username and password. Before any API requests, you need to obtain an API KEY. You will get a valid API KEY (it's called a ticket) by using the ticket API (Please, read how to use ticket API instructions).

The API KEY must be sent in the request custom header element (named ticket or x-api-key). If the API KEY value is valid then API request will be successful (http status code 200), otherwise it will fail (http status code 401). All API requests must be made over HTTPS.

Endpoints

  • https://api.bisnode.fi/company/info/v2/failurescore - production environment
  • https://api-test.bisnode.fi/company/info/v2/failurescore - test environment

Request parameters

Parameter Description  
id Business id or duns number X
X = Mandatory

GET https://api-test.bisnode.fi/company/info/v2/failurescore/{id}

Response

Element Description
businessId The company's business id
dunsNumber The company's duns number
probability  
percentile  
failureScore  

 

Request and response example

curl 'https://api-test.bisnode.fi/company/info/v2/failurescore/2014838-7' -H 'ticket: 1234567890ABC'

Successful request and the API return results in JSON format.

{
"businessId": "2014838-7",
"dunsNumber": "539506084",
"probability": 0.0004803496979615595,
"percentile": 82,
"failureScore": 440.9173653781241
}

Please note that data coverage varies between companies. Data coverage depends e.g. on company form. Remember the codes and descriptions API returns all companies REST APIs code values and descriptions - read more.