Every qualification, whether you run it in Cloud Apps, through a Tax Guard monitor, or with the /businesspartners/qualify endpoint, produces the same result: one decision per qualified attribute, combined into an address decision and an overall decision, separately for each data source that was queried. This page describes the response structure and what each decision means.
The response from the qualification endpoint includes a field called qualificationResults, which contains entries for each identifier of a business partner based on the data sources it was checked against. Each qualificationResults entry consists of two main components:
- the
qualificationDecisionSummary, which provides an overview of the qualification decisions, - the
qualificationDecisionDetails, which presents the qualifications related to each target concept.
Each element in the qualificationResults field represents results from only one data source. Therefore, qualificationResults is structured as an array, where each element contains qualification decisions from a single data source.
{
"qualificationResults": [
{
"identifier": { },
"businessPartnerStatus": {},
"qualifiedAt": "SOME_VALUE",
"dataSourceTechnicalKey": "SOME_VALUE",
"dataSourceRequestIdentifiers": [ ],
"qualificationDecisionSummary": { },
"qualificationDecisionDetails": [ ]
}
],
"debugInfo": { },
"businessPartner": {},
"lookupResults" : [],
"rulesInError" : []
}{
"qualificationDecisionSummary": {
"identifierQualificationDecision": "SOME_VALUE",
"nameQualificationDecision": "SOME_VALUE",
"addressQualificationDecision": "SOME_VALUE",
"addressQualificationDecisionDetails": {
"localityQualificationDecision": "SOME_VALUE",
"postCodeQualificationDecision": "SOME_VALUE",
"thoroughfareQualificationDecision": "SOME_VALUE"
},
"overallQualificationDecision": "SOME_VALUE"
}
}{
"qualificationDecisionDetails": [
{
"businessRule": {
"name": "SOME_VALUE",
"url": "SOME_VALUE",
"ruleStatus": "SOME_VALUE",
"violationMessage": "SOME_VALUE"
},
"executionContextProperties": [
{
"name": "qualificationTarget",
"value": "SOME_VALUE"
},
{
"name": "targetInputValue",
"value": "SOME_VALUE"
},
{
"name": "targetReferenceValue",
"value": "SOME_VALUE"
},
{
"name": "dataSourceTechnicalKey",
"value": "SOME_VALUE"
},
{
"name": "dataSourceRequestIdentifier",
"value": "SOME_VALUE"
}
],
"cdqId": "SOME_VALUE",
"decision": "SOME_VALUE",
"error": {}
}
]
}In this structure, SOME_VALUE can stand for an identifier, a name, a date and time, a decision, or another value. The key in front of it, such as qualifiedAt or dataSourceRequestIdentifiers, tells you what to expect.
| Property Name | Description |
|---|---|
| identifier | The value and type of an identifier. |
| businessPartnerStatus | The status of a business partner if provided by a reference data source (it might be unknown). |
| qualifiedAt | The timestamp when the check was performed. |
| dataSourceTechnicalKey | The data source that was queried. |
| dataSourceRequestIdentifier | For the VIES data source, this field provides a request identifier confirming that a request has been sent; this feature requires the FORCE_EXTERNAL_CALL setting to be enabled. |
| qualificationDecisionSummary | A summary of the qualification decisions. |
| qualificationDecisionDetails | Detailed information about each decision obtained. |
| Property Name | Description |
|---|---|
| identifierQualificationDecision | Decision regarding the provided identifier. |
| nameQualificationDecision | Decision about the business partner's name. |
| addressQualificationDecision | Decision based on the provided address fields, calculated using decisions about postcode, locality, and thoroughfare. |
| addressQualificationDecisionDetails | Detailed information about address decisions, which includes: localityQualificationDecision, postCodeQualificationDecision, and thoroughfareQualificationDecision. |
| overallQualificationDecision | The overall decision, derived as described in How the overall decision is derived. |
Each entry holds the rule that led to a decision (businessRule), the context it ran in (executionContextProperties), and the decision itself.
businessRule
| Property Name | Description |
|---|---|
| name | The name of the rule. |
| url | The rule's URL on the CDQ Wiki. |
| ruleStatus | The current status of the rule: HYPERCARE or RELEASED. |
| violationMessage | A message detailing any violations related to defective data. |
executionContextProperties
| Property Name | Description |
|---|---|
| qualificationTarget | The target type being qualified, with possible values of IDENTIFIER, NAME_LOCAL, CITY, STREET, and POST_CODE_REGULAR. |
| targetInputValue | The value provided by a user. |
| targetReferenceValue | The value returned by a reference data source (e.g., VIES). |
| dataSourceTechnicalKey | The queried data source (e.g., VIES, BZST, AT.FON). |
| dataSourceRequestIdentifier | The request identifier provided by VIES. |
Other fields
cdqId- TheCDQ IDvalue, if it exists, which uniquely identifies the data source and identifier for a business partner.decision- The decision returned by the rule.error- If the check fails, an appropriate error message is provided, including an optional ID value. If applicable, therulesInErrorobject contains a list of failed rules.
The response may also include a debugInfo structure with additional details about the qualification process: statistics on executed and failed rules, the categories of rules considered, and the activated data sources. If available, it also contains the raw response from the external data source. debugInfo is controlled by the SHOW_DEBUG_INFO feature, see Qualification profiles and features.
Each rule execution and each qualification decision results in one of the following values:
| Decision | Description |
|---|---|
| VALID | The input value and the reference value provided by the qualification data source are deemed congruent. |
| INVALID | There is no congruency between the input value and the reference value provided by the qualification data source. |
| NOT_PROCESSED | There is no applicable rule for qualifying this specific target, a rule has been deactivated, or the particular data field can't be processed. |
| NO_INPUT_PROVIDED | No input value was provided, making it impossible to compare it with the reference value from the qualification data source. |
| NO_REFERENCE_AVAILABLE | No reference value was provided by the qualification data source, preventing a comparison. This may occur if such a value genuinely doesn't exist, or if there was an issue with mapping and transforming the raw data from the qualification data source, resulting in an empty value. A user should review these cases. |
| EXECUTION_ERROR | The rule wasn't executed properly due to an internal software issue or unavailability of the qualification data source (such as downtimes or connection lags). |
The decisions for post code, locality and thoroughfare are combined into the address decision. The overall decision is the highest of the decisions about the identifier, name, locality, postcode and thoroughfare, in this order:
NOT_PROCESSED < NO_INPUT_PROVIDED < VALID < NO_REFERENCE_AVAILABLE < INVALID < EXECUTION_ERROR
So a single INVALID attribute makes the overall decision INVALID, and an EXECUTION_ERROR outranks every other decision. Decisions are always given per data source: when several registers are queried, each one returns its own set of decisions.
We are constantly working on providing an outstanding user experience with our products. Please share your opinion about this tutorial!