This API 1 provides services to upload, manipulate and download businesspartner data in the CDL Cloud.
Data Exchange API (5)
https://api.cdq.com/data-exchange/rest/
Request
To start a D&B Import Job use the following request
curl -X POST \
--url 'https://api.corporate-data-league.ch/data-exchange/rest/jobs/dnbimportjobs?dnbUser=optional&dnbPassword=optional' \
-u 'BasicAuthUserName:your_credentials'\
-H 'Accept: application/json' \
-F 'file=@your_file.csv'
with using this sample file:
DUNS
305211311
DNB:305211311
The file can be a csv
or xlsx
. The file should contain only one column with the DUNS number. In the first row should the header DUNS
. The DUNS number can be in following forms:
- As CDQ-ID. Example or
DNB:305211311
- as raw DUNS
305211311
The DUNS consist of 9 digits. When the input DUNS does not consist of 9 digits, leading zeros are added.
Description of the job.
Optional, if credentials are available in user or organization settings.
Optional, if credentials are available in user or organization settings.
Feature to be activated.
Items Enum Value | Description |
---|---|
ENRICH_COMMERCIAL_ULTIMATE | Enriches Commercial Ultimate. |
ENABLE_PARTIAL_QUOTA_CONSUMPTION | Enables to run import job on a remaining quota when full quota not available. |
SKIP_DNB_IMPORT | Skips requesting D&B data from D&B services. Can be used to enrich only Commercial Ultimate. |
INCREMENT | Continue processing after the last processed result with a goal to run on newly created Business Partners from a Business Partner Storage. |
ACTIVATE_MASTER_DATA_EXTENDED | Enables to use data blocks instead of cmplek when fetching data from DNB. |
D&B product that should be downloaded from D&B and put into specific D&B storage.
Enum Value | Description |
---|---|
DNB | Storage for D&B data product Company Profile, Linkage, and Executives (CMPELK) |
DNB_MASTER_DATA_BASIC | Storage for D&B data product Master Data Basic |
DNB_MASTER_DATA_MGMT | Storage for D&B data product Master Data Mgmt |
DNB_MASTER_DATA_LNKG | Storage for D&B data product Master Data Lnkg |
DNB_MASTER_DATA_EXTENDED | Storage for D&B data product Master Data Extended |
DNB_LINKAGE_LNKELI | Storage for D&B data product Extended Linkage Insight |
- Production
https://api.cdq.com/data-exchange/rest/jobs/dnbimportjobs
curl -i -X POST \
https://api.cdq.com/data-exchange/rest/jobs/dnbimportjobs \
-H 'Content-Type: multipart/form-data' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-F file=CH-import.csv
OK
Detailed description of a Job.
Job execution status.
Enum Value | Description |
---|---|
ARCHIVED | Job has been archived. |
UNKNOWN | Job becomes in unknown status. |
CREATED | Job has been created. |
PERSISTED | Job metadata has been persisted. |
SCHEDULED | Job has been scheduled for execution. |
WAITING | Job is waiting for being scheduled. |
COULDNT_START | Job could not be started. |
RUNNING | Job is being executed. |
FINISHED | Job has finished. |
DIED | Job was scheduled and started running but died unexpectedly. |
Date of modification (ISO 8601-compliant).
{ "id": "35f23c03-1c22-45fe-9484-3ffe769325de", "name": "Process vendor data.", "description": "I started this job to improve quality of our data.", "progress": "77", "status": "RUNNING", "statusMessage": "Job is running", "createdBy": "76248934691294444", "createdAt": "2025-08-19T06:23:16Z", "modifiedAt": "2025-08-19T06:23:16Z", "result": { "statistics": { … } } }
- Production
https://api.cdq.com/data-exchange/rest/jobs/dnbimportjobs/{id}
curl -i -X GET \
https://api.cdq.com/data-exchange/rest/jobs/dnbimportjobs/35f23c03-1c22-45fe-9484-3ffe769325de \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
OK
Detailed description of a Job.
Job execution status.
Enum Value | Description |
---|---|
ARCHIVED | Job has been archived. |
UNKNOWN | Job becomes in unknown status. |
CREATED | Job has been created. |
PERSISTED | Job metadata has been persisted. |
SCHEDULED | Job has been scheduled for execution. |
WAITING | Job is waiting for being scheduled. |
COULDNT_START | Job could not be started. |
RUNNING | Job is being executed. |
FINISHED | Job has finished. |
DIED | Job was scheduled and started running but died unexpectedly. |
Date of modification (ISO 8601-compliant).
{ "id": "35f23c03-1c22-45fe-9484-3ffe769325de", "name": "Process vendor data.", "description": "I started this job to improve quality of our data.", "progress": "77", "status": "RUNNING", "statusMessage": "Job is running", "createdBy": "76248934691294444", "createdAt": "2025-08-19T06:23:16Z", "modifiedAt": "2025-08-19T06:23:16Z", "result": { "statistics": { … } } }
- Production
https://api.cdq.com/data-exchange/rest/jobs/dnbcreatelodjobs
curl -i -X POST \
https://api.cdq.com/data-exchange/rest/jobs/dnbcreatelodjobs \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"name": "Process vendor data.",
"description": "I started this job to improve quality of our data."
}'
OK
Detailed description of a Job.
Job execution status.
Enum Value | Description |
---|---|
ARCHIVED | Job has been archived. |
UNKNOWN | Job becomes in unknown status. |
CREATED | Job has been created. |
PERSISTED | Job metadata has been persisted. |
SCHEDULED | Job has been scheduled for execution. |
WAITING | Job is waiting for being scheduled. |
COULDNT_START | Job could not be started. |
RUNNING | Job is being executed. |
FINISHED | Job has finished. |
DIED | Job was scheduled and started running but died unexpectedly. |
Date of modification (ISO 8601-compliant).
{ "id": "35f23c03-1c22-45fe-9484-3ffe769325de", "name": "Process vendor data.", "description": "I started this job to improve quality of our data.", "progress": "77", "status": "RUNNING", "statusMessage": "Job is running", "createdBy": "76248934691294444", "createdAt": "2025-08-19T06:23:16Z", "modifiedAt": "2025-08-19T06:23:16Z", "attachments": [ { … } ] }
- Production
https://api.cdq.com/data-exchange/rest/jobs/dnbcreatelodjobs/{id}
curl -i -X GET \
https://api.cdq.com/data-exchange/rest/jobs/dnbcreatelodjobs/35f23c03-1c22-45fe-9484-3ffe769325de \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
OK
Detailed description of a Job.
Job execution status.
Enum Value | Description |
---|---|
ARCHIVED | Job has been archived. |
UNKNOWN | Job becomes in unknown status. |
CREATED | Job has been created. |
PERSISTED | Job metadata has been persisted. |
SCHEDULED | Job has been scheduled for execution. |
WAITING | Job is waiting for being scheduled. |
COULDNT_START | Job could not be started. |
RUNNING | Job is being executed. |
FINISHED | Job has finished. |
DIED | Job was scheduled and started running but died unexpectedly. |
Date of modification (ISO 8601-compliant).
{ "id": "35f23c03-1c22-45fe-9484-3ffe769325de", "name": "Process vendor data.", "description": "I started this job to improve quality of our data.", "progress": "77", "status": "RUNNING", "statusMessage": "Job is running", "createdBy": "76248934691294444", "createdAt": "2025-08-19T06:23:16Z", "modifiedAt": "2025-08-19T06:23:16Z", "attachments": [ { … } ] }
Only items with an ID greater than the given one will be retrieved.
When nextStartAfter provided in the response, should be used instead of the ID as an indicator for a next page.
Features to be activated during D&B Records Read.
Items Enum Value | Description |
---|---|
NUMBER_OF_TOTAL | Provides total number of records in the storage. |
SHOW_CDQ_RECORD | Provides CDQ record. |
SHOW_FORMATTED_SAP_RECORD | Provides formatted SAP record. |
USE_DNB_MASTER_DATA_BASIC | Uses D&B Master Data Basic. |
USE_DNB_MASTER_DATA_MGMT | Uses D&B Master Data Mgmt. |
USE_DNB_MASTER_DATA_LNKG | Uses D&B Master Data Lnkg. |
USE_DNB_MASTER_DATA_EXTENDED | Uses D&B Master Data Extended. |
USE_DNB_LINKAGE_LNKELI | Uses D&B Linkage LNKELI. |
Features to be deactivated during D&B Records Read.
Items Enum Value | Description |
---|---|
NUMBER_OF_TOTAL | Provides total number of records in the storage. |
SHOW_CDQ_RECORD | Provides CDQ record. |
SHOW_FORMATTED_SAP_RECORD | Provides formatted SAP record. |
USE_DNB_MASTER_DATA_BASIC | Uses D&B Master Data Basic. |
USE_DNB_MASTER_DATA_MGMT | Uses D&B Master Data Mgmt. |
USE_DNB_MASTER_DATA_LNKG | Uses D&B Master Data Lnkg. |
USE_DNB_MASTER_DATA_EXTENDED | Uses D&B Master Data Extended. |
USE_DNB_LINKAGE_LNKELI | Uses D&B Linkage LNKELI. |
- Production
https://api.cdq.com/data-exchange/rest/v4/dnbstorages/dnbrecords
curl -i -X GET \
https://api.cdq.com/data-exchange/rest/v4/dnbstorages/dnbrecords \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "startAfter": "5712566172571652", "limit": "100", "total": "67", "values": [ { … } ], "nextStartAfter": "5712566172571652" }
Features to be used during the D&B storage creation.
Items Enum Value | Description |
---|---|
SHOW_CDQ_RECORD | Provides CDQ record. |
SHOW_FORMATTED_SAP_RECORD | Provides formatted SAP record. |
USE_DNB | Create/Use Business Partner Storage for D&B data product Company Profile, Linkage, and Executives (CMPELK) |
USE_DNB_MASTER_DATA_BASIC | Create/Use for D&B data product Master Data Basic |
USE_DNB_MASTER_DATA_MGMT | Create/Use for D&B data product Master Data Management |
USE_DNB_MASTER_DATA_LNKG | Create/Use for D&B data product Master Data Linkage |
USE_DNB_MASTER_DATA_EXTENDED | Create/Use for D&B data product Master Data Extended |
USE_DNB_LINKAGE_LNKELI | Create/Use for D&B data product Extended Linkage Insight |
- Production
https://api.cdq.com/data-exchange/rest/v4/dnbstorages/fetch
curl -i -X POST \
https://api.cdq.com/data-exchange/rest/v4/dnbstorages/fetch \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"duns": "15-048-3782",
"featuresOn": [
"USE_DNB"
]
}'
{ "dnbRecord": { "duns": "15-048-3782", "cmpelkV2": { … }, "dataBlock": { … }, "cdqRecord": { … }, "formattedSapRecord": { … }, "commercialUltimate": { … }, "domesticCommercialUltimate": { … }, "lastModifiedAt": "2025-08-19T06:23:16Z" }, "status": "OK", "message": "D&B Record has been fetched successfully" }