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/
Request
The Read Business Partner Updates endpoint provides an updated Business Partner structure and comprehensive Business Partner information from the Reference Data Sources. By default, only the latest version of a Business Partner from a single data source is provided. However, it's possible to access all historical updates (up to 3 months) by enabling the FeaturesOn: FETCH_HISTORICAL_UPDATES option.
Filtration
A list of updated Business Partners can be filtered in various ways, with tags being the most powerful and important. Tags combine concepts (e.g., NAME_LOCAL, IDENTIFIER, LOCALITY) with actions (e.g., ADDED, MODIFIED). There are two types of classification filters:
- summaryClassification: This filter provides Business Partners with a summary classification, which is determined by the highest classificationlevel among all Business Partner concepts.
- conceptClassification: This filter indicates the classification of a specific concept of the Business Partner (e.g., name, street, legal form).
Filtration by tag and conceptClassification works in pairs and identifies Business Partners where, for example, the LOCAL_NAME was MODIFIED and this change was classified as MAJOR. When filtering by tag and summaryClassification, the endpoint returns all Business Partners where the specified tags were added to the summary and the general summary classification is, for example, IDENTIFIER_ADDED, + highest classification for all updates =MINOR. Additional filtering options include country, provenance, and external IDs. Providing the data source (or your mirror) in the request can enhance response speed. It's possible to check the total number of updates using featuresOn NUMBER_OF_TOTAL, but can slow down the response.
Recommendations
We recommend periodically reading all Business Partners (at least once) to improve the efficiency of specific filtrations.
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.
Only show updates for listed Business Partner IDs. When providing list of Business Partner IDs, limit is ignored to provide full page.
Filter updates by Business Partner externalId, limit is ignored to provide full page. When used with the businessPartnerIds parameter, only business partners that have one of the specified externalIds AND one of the specified businessPartnerIds will be returned.
Show updates for selected provenances by technical keys.
Show updates for all provenances except provided by technical keys. By default, includes ORGANIZATION if not present on provenanceTechnicalKeys list.
When dataTransformationDefinitionId is provided, map updatedBusinessPartner using that transformation.
Only show updates which have been modified after this date (ISO 8601). Default is to show the 'last seven days' and farthest in the past is 'since three month'.
Filter by data sources (name or id).
Filter by countries.
Filter by provided summary classifications (logical OR).
| Items Enum Value | Description |
|---|---|
| CRITICAL | Critical |
| REJECTED | Update has been rejected |
| MAJOR | Major change |
| MINOR | Minor update |
| TRIVIAL | Trivial update |
| CONFIRMED | Contents have been confirmed by a data source and not changed |
| UNCHANGED | Contents have been not changed |
Filter by update summary tags.
Profiled filter by update summary tags.
Filter by provided concept classifications (logical OR). When used with the updateTags parameter, only those updates are presented, that match together with respective tag.
| Items Enum Value | Description |
|---|---|
| CRITICAL | Critical |
| REJECTED | Update has been rejected |
| MAJOR | Major change |
| MINOR | Minor update |
| TRIVIAL | Trivial update |
| CONFIRMED | Contents have been confirmed by a data source and not changed |
| UNCHANGED | Contents have been not changed |
Features to be used during the read Business Partner updates:
APPLY_CURATION_DECISIONS- Applies curation decisions from Decision Log to Business Partners in$.values[*].storageBusinessPartnerif any decisions found. Requires FETCH_STORAGE_BUSINESS_PARTNER feature. By default, deactivated.FETCH_HISTORICAL_UPDATES- Include historical updates into results. By default, deactivated.FETCH_STORAGE_BUSINESS_PARTNER- Fetch Business Partner from a storage and set in$.values[*].storageBusinessPartner. By default, deactivated.NUMBER_OF_TOTAL- Allows to switch fetching the total number of records to improve performance. By default, deactivated.
Features to be used during the read Business Partner updates:
APPLY_CURATION_DECISIONS- Applies curation decisions from Decision Log to Business Partners in$.values[*].storageBusinessPartnerif any decisions found. Requires FETCH_STORAGE_BUSINESS_PARTNER feature. By default, deactivated.FETCH_HISTORICAL_UPDATES- Include historical updates into results. By default, deactivated.FETCH_STORAGE_BUSINESS_PARTNER- Fetch Business Partner from a storage and set in$.values[*].storageBusinessPartner. By default, deactivated.NUMBER_OF_TOTAL- Allows to switch fetching the total number of records to improve performance. By default, deactivated.
- Mock server
https://idp.cdq.com/_mock/apis/data-exchange-api/api-v5/public/v5/storages/{storageId}/businesspartners/updates
- Production SOAP
https://api.corporate-data-league.ch/data-exchange/soap/v5/public/v5/storages/{storageId}/businesspartners/updates
- Production
https://api.corporate-data-league.ch/data-exchange/public/v5/storages/{storageId}/businesspartners/updates
curl -i -X GET \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/data-exchange-api/api-v5/public/v5/storages/72d6900fce6b326088f5d9d91049e3e6/businesspartners/updates{ "limit": "100", "total": "67", "startAfter": "5712566172571652", "nextStartAfter": "5712566172571652", "values": [ { … } ] }
Request
Delete batches of Business Partners by ID or a combination of DataSource and External ID. Maximum of 1000 Business Partners are allowed per batch. In case only a data source is provided in the request, all Business Partners related to this data source will be deleted, but the data source itself will not be deleted.
cmd
Unique identifier for a Data Source of the Storage.
List of features to be used during delete.
| Items Enum Value | Description |
|---|---|
| DELETE_BY_EXTERNAL_ID | Deletion is done by external ID. |
| DELETE_BUSINESS_PARTNER_DATA | Deletion of Business Partner data. |
| DELETE_LINKS | Deletion of links. |
List of features to be deactivated during delete.
| Items Enum Value | Description |
|---|---|
| DELETE_BY_EXTERNAL_ID | Deletion is done by external ID. |
| DELETE_BUSINESS_PARTNER_DATA | Deletion of Business Partner data. |
| DELETE_LINKS | Deletion of links. |
- Mock server
https://idp.cdq.com/_mock/apis/data-exchange-api/api-v5/public/storages/{storageId}/businesspartners/delete
- Production SOAP
https://api.corporate-data-league.ch/data-exchange/soap/v5/public/storages/{storageId}/businesspartners/delete
- Production
https://api.corporate-data-league.ch/data-exchange/public/storages/{storageId}/businesspartners/delete
curl -i -X POST \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/data-exchange-api/api-v5/public/storages/72d6900fce6b326088f5d9d91049e3e6/businesspartners/delete \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '{
"dataSource": "YOUR_DATASOURCE_ID",
"businessPartners": [
{
"externalId": "BP_EXTERNAL_ID"
}
],
"featuresOn": [
"DELETE_BY_EXTERNAL_ID"
]
}'{ "numberOfDeletes": "50", "numberOfFailures": "0", "failures": [ { … } ] }
Request
To toggle update monitoring on multiple BusinessPartners, the permission can be changed via a list of Business Partners, identified by their ID.
After the job is finished, the following actions are taken for Business Partners which match the businessPartnerIds 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 a complete Data Source or for a certain Country of a Data Source, please go to Start Toggle Update Monitoring Job.
Parameter to describe if the Business Partners should be activated for update monitoring (true) or deactivated (false) for non-commercial reference data sources.
- Mock server
https://idp.cdq.com/_mock/apis/data-exchange-api/api-v5/public/storages/{storageId}/businesspartners/toggleUpdateMonitoring
- Production SOAP
https://api.corporate-data-league.ch/data-exchange/soap/v5/public/storages/{storageId}/businesspartners/toggleUpdateMonitoring
- Production
https://api.corporate-data-league.ch/data-exchange/public/storages/{storageId}/businesspartners/toggleUpdateMonitoring
curl -i -X PUT \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/data-exchange-api/api-v5/public/storages/72d6900fce6b326088f5d9d91049e3e6/businesspartners/toggleUpdateMonitoring \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '{
"enable": "true",
"businessPartnerIds": [
"63e635235c06b7396330fe40"
]
}'