This API provides services to upload, manipulate and download businesspartner data in the CDL Cloud.
Data Exchange API (5)
https://idp.cdq.com/_mock/apis/data-exchange-api/api-v5/
https://api.corporate-data-league.ch/data-exchange/soap/v5/
https://api.corporate-data-league.ch/data-exchange/
- Mock server
https://idp.cdq.com/_mock/apis/data-exchange-api/api-v5/storages/{storageId}/businesspartners/{businesspartnerId}/datasource
- Production SOAP
https://api.corporate-data-league.ch/data-exchange/soap/v5/storages/{storageId}/businesspartners/{businesspartnerId}/datasource
- Production
https://api.corporate-data-league.ch/data-exchange/storages/{storageId}/businesspartners/{businesspartnerId}/datasource
curl -i -X PUT \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/data-exchange-api/api-v5/storages/72d6900fce6b326088f5d9d91049e3e6/businesspartners/63e635235c06b7396330fe40/datasource \
-H 'Content-Type: application/json' \
-d '{
"dataSourceId": "648824a691d8d2503d65103e"
}'OK
A CDQ ID identifies a business partner uniquely in the context of the Corporate Data League.
Date of modification (ISO 8601-compliant).
Arbitrary identifier type to mark customer IDs that are "external" from CDQ's perspective. This is the identifier a customer provides to identify its records.
Name or ID of a data source. Reflects the associated external system where the record originates from.
A flag to indicate whether the Business Partner should participate in the sharing or not. If 'true' this Business Partner might be used to create a new entry or update an existing entry in the community pool. Otherwise, it will not be considered for the sharing process. For more details, you can read about Sharing Scopes.
A flag to indicate whether the Business Partner should receive updates from non-commercial Reference Data Sources or not. If 'true' this Business Partner will receive updates since the change from 'false'. If 'false' this Business Partner will not receive any new updates since the change. If not provided, the previous value will not be changed. By default, Update Monitoring is activated.
Enabling update commercial monitoring has 2 possibilities:
- via Data Mapper Definition: include mapping of updateCommercialMonitoring in the Data Mapper Definition
- via direct Business Partner model upload: fill complete Business Partner model and
updateCommercialMonitoring. Null/undefinedupdateCommercialMonitoringresults in protection of this setup from the previous upsert. Empty or filledupdateCommercialMonitoringresults in data transition that may link or unlink to / from respective commercial Reference Data Source
Note: follow the approach that is currently used in your storage integration.
Stringified JSON of an individual Business Partner record. Characters: backslash \ and double quote " must be escaped (respectively: \\\\ and \"). Fields containing . are unallowed. Maximum size: 15MB.
The legal form of a business partner/type/legal entity is the form it takes in the eyes of the law governing it. The legal form of a company is the general type it may legally use to identify itself according to the local, regional, national, or international law governing it. This is normally reflected in the ending abbreviation after the company's name (e.g. AG, Inc., LLC, S.A.).
Describes the status of a business partner with respect to its level of activity (e.g. out of business) or legally relevant conditions (e.g. in liquidation).
Additional documentation can be found here.
List of Relations. Insert or update Business Partner Relations. Relations that are not listed in the request and start in the current business partner, are marked as INACTIVE.
In D&B storages, only not listed relations of class D&B Hierarchy and one of type [https://meta.cdq.com/Business_partner/relation/type/direct_legal_relation](Direct Legal Relation), [https://meta.cdq.com/Business_partner/relation/type/domestic_legal_ultimate_relation](Domestic Legal Ultimate Relation) or [https://meta.cdq.com/Business_partner/relation/type/global_legal_ultimate_relation](Global Legal Ultimate Relation), are marked as INACTIVE.
{ "id": "63e635235c06b7396330fe40", "createdAt": "2020-08-31T16:47+00:00", "modifiedAt": "2020-08-31T16:47+00:00", "externalId": "The ID managed in the customer's SAP systems.", "dataSource": "\"CUSTOM_DATA_SOURCE\" or \"648824a691d8d2503d65103e\"", "disclosed": "false", "updateMonitoring": "true", "updateCommercialMonitoring": [ { … } ], "metadata": { "lastUpdatedAt": "2020-08-31T16:47+00:00", "lastSyncAt": "2020-02-11T00:00:00Z", "sharingStatus": { … }, "identityLinks": [ … ], "logResultStatuses": [ … ], "decisionLogResult": { … } }, "record": "{\"name\": \"BUSINESSPARTNER_NAME\", ...}", "additionalInformation": [ { … } ], "names": [ { … } ], "legalForm": { "name": "Aktiengesellschaft", "url": "https://meta.cdq.com/Business_partner/legal_form", "technicalKey": "DE_9866", "language": { … }, "mainAbbreviation": "AG", "categories": [ … ] }, "identifiers": [ { … } ], "categories": [ { … } ], "status": { "type": { … }, "officialDenotation": "Good Standing", "validFrom": "2022-02-26", "validUntil": "2022-02-26" }, "profile": { "minorityIndicator": { … }, "classifications": [ … ], "phoneNumbers": [ … ], "websites": [ … ], "contactEmails": [ … ], "tags": [ … ], "vatPayerStatus": { … }, "hcpProfile": { … } }, "relations": [ { … } ], "types": [ { … } ], "addresses": [ { … } ], "bankAccounts": [ { … } ], "externalContext": { "identifiers": [ … ] } }
Request
To toggle update monitoring on multiple BusinessPartners, the permission can be changed in two ways:
- A complete Data Source identified by the parameter 'dataSourceId'
- Or for a certain Country of a Data Source. This requires both parameters 'dataSourceId' and 'countryShortName' to be set
After the job is finished, the following actions are taken for Business Partners which match the dataSourceId and countryShortName criteria:
- businessPartner.updateMonitoring fields takes a value of ToggleUpdateMonitoringJobRequest#enable
- if enable is true then:
- an attempt is taken to find Business Partner in all configured update monitors for non-commercial reference data sources and links are created if matches are found via defined linkage strategies
- if the storage has UPDATES feature activated, updates for linked Business Partners from non-commercial reference data sources are propagated to Business Partner updates
- if enable is false then:
- all existing links of a Business Partner to Business Partners in non-commercial reference data sources are removed
- updates are no more propagated for this Business Partner
- linkage is not performed for any non-commercial reference data source
For toggling via a list of Business Partners, identified by their ID, please go to Toggle Update Monitoring of Business Partners.
Parameter to describe if the Business Partners should be activated for update monitoring (true) or deactivated (false) for non-commercial reference data sources.
Unique identifier of the Storage.
Detailed description of a Job.
Unique identifier for a Data Source of the Storage.
- Mock server
https://idp.cdq.com/_mock/apis/data-exchange-api/api-v5/public/jobs/toggleUpdateMonitoringJobs
- Production SOAP
https://api.corporate-data-league.ch/data-exchange/soap/v5/public/jobs/toggleUpdateMonitoringJobs
- Production
https://api.corporate-data-league.ch/data-exchange/public/jobs/toggleUpdateMonitoringJobs
curl -i -X POST \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/data-exchange-api/api-v5/public/jobs/toggleUpdateMonitoringJobs \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '{
"enable": "true",
"storageId": "72d6900fce6b326088f5d9d91049e3e6",
"name": "Process vendor data.",
"description": "I started this job to improve quality of our data.",
"dataSourceId": "648824a691d8d2503d65103e",
"countryShortName": "CH",
"startAfter": "5712566172571652",
"batchSize": "100"
}'OK
Date of modification (ISO 8601-compliant).
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. |
Additional information to explain the status.
Parameter to describe if the Business Partners should be activated for update monitoring (true) or deactivated (false) for non-commercial reference data sources.
Unique identifier of the Storage.
Unique identifier for a Data Source of the Storage.
{ "id": "35f23c03-1c22-45fe-9484-3ffe769325de", "createdBy": "76248934691294444", "createdAt": "2020-08-31T16:47+00:00", "modifiedAt": "2020-08-31T16:47+00:00", "progress": "77", "status": "RUNNING", "statusMessage": "The job failed because storage is empty.", "enable": "true", "storageId": "72d6900fce6b326088f5d9d91049e3e6", "dataSourceId": "648824a691d8d2503d65103e", "countryShortName": "CH" }
- Mock server
https://idp.cdq.com/_mock/apis/data-exchange-api/api-v5/public/jobs/toggleUpdateMonitoringJobs/{jobId}
- Production SOAP
https://api.corporate-data-league.ch/data-exchange/soap/v5/public/jobs/toggleUpdateMonitoringJobs/{jobId}
- Production
https://api.corporate-data-league.ch/data-exchange/public/jobs/toggleUpdateMonitoringJobs/{jobId}
curl -i -X GET \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/data-exchange-api/api-v5/public/jobs/toggleUpdateMonitoringJobs/35f23c03-1c22-45fe-9484-3ffe769325de \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3'{ "job": { "id": "35f23c03-1c22-45fe-9484-3ffe769325de", "createdBy": "76248934691294444", "createdAt": "2020-08-31T16:47+00:00", "modifiedAt": "2020-08-31T16:47+00:00", "progress": "77", "status": "RUNNING", "statusMessage": "The job failed because storage is empty.", "enable": "true", "storageId": "72d6900fce6b326088f5d9d91049e3e6", "dataSourceId": "648824a691d8d2503d65103e", "countryShortName": "CH" }, "status": "OK" }