This API provides services to access records from DNB and calculate their Commercial Ultimates.
DNB API (1)
https://idp.cdq.com/_mock/apis/dnb-api/api-v1/
https://api.corporate-data-league.ch/dnb/soap/v1/
https://api.corporate-data-league.ch/dnb/
Request
Fetch D&B record by its duns number. It is possible to read:
- legacy CMPELK data
- Data Blocks defined here
- linkage LNKELI data
Fetch CMPELK
To fetch the CMPELK object no features have to be activated.
POST /dnb/fetch
{
"duns": "123456789"
}Fetch Data Blocks
It is possible to read pre defined Data Blocks
Fetch pre defined Data Blocks
There are 2 features with pre defined data blocks:
- ACTIVATE_MASTER_DATA_BASIC uses following data blocks:
- COMPANYINFO_L1_V1
- ACTIVATE_MASTER_DATA_EXTENDED uses following data blocks:
- COMPANYINFO_L1_V1
- COMPANYINFO_L2_V1
- HIERARCHYCONNECTIONS_L1_V1
- PRINCIPALSCONTACTS_L2_V2
POST /dnb/fetch
{
"duns": "123456789",
"featuresOn": [
"ACTIVATE_MASTER_DATA_BASIC"
]
}Fetch LNKELI
It is poosible to fetch LNKELI data:
POST /dnb/fetch
{
"duns": "123456789",
"featuresOn": [
"ACTIVATE_LINKAGE_LNKELI"
]
}- application/json
- application/xml
Features that will be used when fetching dnb data.
| Items Enum Value | Description |
|---|---|
| ACTIVATE_MASTER_DATA_BASIC | Use a basic set of datablocks to fetch data. |
| ACTIVATE_MASTER_DATA_EXTENDED | Use an extended set of datablocks to fetch data. |
| ACTIVATE_MASTER_DATA_MGMT | Use a management set of datablocks to fetch data. |
| ACTIVATE_MASTER_DATA_LNKG | Use a linkage set of datablocks to fetch data. |
| ACTIVATE_LINKAGE_LNKELI | Fetch LNKELI data. |
| ACTIVATE_DATASOURCE_DNB_STORAGE | Checks storage and skips call to D&B if results were found. |
| ACTIVATE_DATASOURCE_DNB_STORAGE_ONLY | Skips call to D&B entirely and only checks storage for results. |
| ENRICH_COMMERCIAL_ULTIMATE | Use additional cmpelk calls to load the whole organization hierarchy and detect global ultimate. |
| ENABLE_SETTINGS | Apply rules stored in organizational settings during curation. |
| SHOW_CDQ_RECORD | Return also Dnb record mapped to cdq model. |
Features that will not be used when fetching dnb data.
| Items Enum Value | Description |
|---|---|
| ACTIVATE_MASTER_DATA_BASIC | Use a basic set of datablocks to fetch data. |
| ACTIVATE_MASTER_DATA_EXTENDED | Use an extended set of datablocks to fetch data. |
| ACTIVATE_MASTER_DATA_MGMT | Use a management set of datablocks to fetch data. |
| ACTIVATE_MASTER_DATA_LNKG | Use a linkage set of datablocks to fetch data. |
| ACTIVATE_LINKAGE_LNKELI | Fetch LNKELI data. |
| ACTIVATE_DATASOURCE_DNB_STORAGE | Checks storage and skips call to D&B if results were found. |
| ACTIVATE_DATASOURCE_DNB_STORAGE_ONLY | Skips call to D&B entirely and only checks storage for results. |
| ENRICH_COMMERCIAL_ULTIMATE | Use additional cmpelk calls to load the whole organization hierarchy and detect global ultimate. |
| ENABLE_SETTINGS | Apply rules stored in organizational settings during curation. |
| SHOW_CDQ_RECORD | Return also Dnb record mapped to cdq model. |
- Mock server
https://idp.cdq.com/_mock/apis/dnb-api/api-v1/dnb/fetch
- Production SOAP
https://api.corporate-data-league.ch/dnb/soap/v1/dnb/fetch
- Production
https://api.corporate-data-league.ch/dnb/dnb/fetch
curl -i -X POST \
https://idp.cdq.com/_mock/apis/dnb-api/api-v1/dnb/fetch \
-H 'Content-Type: application/json' \
-d '{
"duns": "123456789",
"featuresOn": [
"ACTIVATE_MASTER_DATA_BASIC"
],
"featuresOff": [
"ACTIVATE_MASTER_DATA_BASIC"
]
}'OK
- application/json
- application/xml
A data block is a collection of data elements that are logically grouped together. Enables you to retrieve data on a specific entity or category.
The details of the Commercial Ultimate for the entity.
A data block is a collection of data elements that are logically grouped together. Enables you to retrieve data on a specific entity or category.
An organization which has some degree of involvement with another organization's business dealings. Typically, a company's business partner is another company in the role of a customer, a supplier, a vendor, or a service provider. In the CDL context, the business partner is the core managed entity. A business partner is globally uniquely identifiable by a CDL ID, and all managed information such as addresses, documents, and hierarchies is linked to a business partner.
An organization which has some degree of involvement with another organization's business dealings. Typically, a company's business partner is another company in the role of a customer, a supplier, a vendor, or a service provider. In the CDL context, the business partner is the core managed entity. A business partner is globally uniquely identifiable by a CDL ID, and all managed information such as addresses, documents, and hierarchies is linked to a business partner.
{ "cmpelkV2": { "transactionDetail": { … }, "inquiryDetail": { … }, "organization": { … } }, "dataBlock": { "transactionDetail": { … }, "inquiryDetail": { … }, "blockStatus": [ … ], "organization": { … } }, "lnkeli": { "transactionDetail": { … }, "inquiryDetail": { … }, "organization": { … } }, "commercialUltimate": { "duns": "804735132", "primaryName": "Acme Corporation", "primaryAddress": { … }, "path": [ … ], "cmpelkV2": { … }, "dataBlock": { … } }, "domesticCommercialUltimate": { "duns": "804735132", "primaryName": "Acme Corporation", "primaryAddress": { … }, "path": [ … ], "cmpelkV2": { … }, "dataBlock": { … } }, "headquarter": { "transactionDetail": { … }, "inquiryDetail": { … }, "blockStatus": [ … ], "organization": { … } }, "cdqRecord": { "names": [ … ], "legalForm": { … }, "identifiers": [ … ], "categories": [ … ], "status": { … }, "addresses": [ … ], "externalId": "The ID managed in the customer's SAP systems.", "profile": { … }, "formattedSapRecord": { … }, "relations": [ … ], "bankAccounts": [ … ], "types": [ … ], "externalContext": { … } }, "cdqCommercialUltimate": { "names": [ … ], "legalForm": { … }, "identifiers": [ … ], "categories": [ … ], "status": { … }, "addresses": [ … ], "externalId": "The ID managed in the customer's SAP systems.", "profile": { … }, "formattedSapRecord": { … }, "relations": [ … ], "bankAccounts": [ … ], "types": [ … ], "externalContext": { … } }, "status": { "id": 200000004, "message": "The job came to an end and finished successfully.", "technicalKey": "JOB_FINISHED", "jsonPath": "$.businessPartner.names[0].value", "jsonRecord": "{ \"key\" : \"value\"}" }, "message": "OK", "relations": [ "123456789" ] }