This API provides services to search and read reference data
Referencedata API (4)
https://idp.cdq.com/_mock/apis/referencedata-api/api-v4/
https://api.corporate-data-league.ch/referencedata/soap/v4/
https://api.corporate-data-league.ch/referencedata/
- Mock server
https://idp.cdq.com/_mock/apis/referencedata-api/api-v4/public/v4/addresses/autocomplete
- Production SOAP
https://api.corporate-data-league.ch/referencedata/soap/v4/public/v4/addresses/autocomplete
- Production
https://api.corporate-data-league.ch/referencedata/public/v4/addresses/autocomplete
curl -i -X POST \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/referencedata-api/api-v4/public/v4/addresses/autocomplete \
-H 'Content-Type: application/json' \
-d '{
"query": "CHE Lukas 4"
}'{ "status": { "code": "200", "technicalKey": "OK", "details": [ … ], "path": "/v2/businesspartners/lookup", "timestamp": "2019-08-31T16:47+00:00" }, "request": { "query": "CHE Lukas 4", "startAfter": "5712566172571652" }, "values": [ { … } ], "total": "67", "startAfter": "5712566172571652", "nextStartAfter": "5712566172571652" }
cmd
Grouping of results with respect to the given value.
| Enum Value | Description |
|---|---|
| ADMINISTRATIVE_AREA | Group results by administrative area. |
| LOCALITY | Group results by locality. |
| POST_CODE | Group results by post code. |
| THOROUGHFARE | Group results by thoroughfare. |
| COUNTRY | Group results by country. |
- Mock server
https://idp.cdq.com/_mock/apis/referencedata-api/api-v4/public/addresses/lookup
- Production SOAP
https://api.corporate-data-league.ch/referencedata/soap/v4/public/addresses/lookup
- Production
https://api.corporate-data-league.ch/referencedata/public/addresses/lookup
curl -i -X POST \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/referencedata-api/api-v4/public/addresses/lookup \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '{
"search": "Zurich",
"country": {
"shortName": "CH"
},
"groupBy": "LOCALITY",
"localities": [
{
"value": "Concept name or value"
}
],
"administrativeAreas": [
{
"value": "Concept name or value"
}
],
"thoroughfares": [
{
"value": "Lukasstraße 4",
"number": "4"
}
],
"postCode": {
"value": "Concept name or value"
},
"page": "1",
"pageSize": "10",
"featureOn": [
"SWITCH_OFF_DATA_CURATION"
]
}'{ "page": "1", "pageSize": "10", "pages": "50", "total": "67", "values": [ { … } ] }
Address string to be identified.
- Mock server
https://idp.cdq.com/_mock/apis/referencedata-api/api-v4/kr/addresses/identify
- Production SOAP
https://api.corporate-data-league.ch/referencedata/soap/v4/kr/addresses/identify
- Production
https://api.corporate-data-league.ch/referencedata/kr/addresses/identify
curl -i -X POST \
-u <username>:<password> \
https://idp.cdq.com/_mock/apis/referencedata-api/api-v4/kr/addresses/identify \
-H 'Content-Type: application/json' \
-H 'X-Credential-Username: 87b1bdb1-ba87-4522-b363-c5a0e6e917b3' \
-d '{
"addressString": "CDQ AG, Wiesenstrasse 10, 8952 Schlieren, Switzerland",
"outputLanguageTechnicalKey": "DE"
}'{ "addressString": "CDQ AG, Wiesenstrasse 10, 8952 Schlieren, Switzerland", "outputLanguageTechnicalKey": "DE", "address": { "version": { … }, "identifyingName": { … }, "externalId": "1", "metadata": { … }, "careOf": { … }, "contexts": [ … ], "country": { … }, "administrativeAreas": [ … ], "postCodes": [ … ], "localities": [ … ], "thoroughfares": [ … ], "premises": [ … ], "postalDeliveryPoints": [ … ], "geographicCoordinates": { … }, "types": [ … ], "formattedAddress": { … } } }