Skip to content

Qualification results and decisions

Overview

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.


Response structure

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.

qualificationResults

Property NameDescription
identifierThe value and type of an identifier.
businessPartnerStatusThe status of a business partner if provided by a reference data source (it might be unknown).
qualifiedAtThe timestamp when the check was performed.
dataSourceTechnicalKeyThe data source that was queried.
dataSourceRequestIdentifierFor 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.
qualificationDecisionSummaryA summary of the qualification decisions.
qualificationDecisionDetailsDetailed information about each decision obtained.

qualificationDecisionSummary

Property NameDescription
identifierQualificationDecisionDecision regarding the provided identifier.
nameQualificationDecisionDecision about the business partner's name.
addressQualificationDecisionDecision based on the provided address fields, calculated using decisions about postcode, locality, and thoroughfare.
addressQualificationDecisionDetailsDetailed information about address decisions, which includes: localityQualificationDecision, postCodeQualificationDecision, and thoroughfareQualificationDecision.
overallQualificationDecisionThe overall decision, derived as described in How the overall decision is derived.

qualificationDecisionDetails

Each entry holds the rule that led to a decision (businessRule), the context it ran in (executionContextProperties), and the decision itself.

businessRule

Property NameDescription
nameThe name of the rule.
urlThe rule's URL on the CDQ Wiki.
ruleStatusThe current status of the rule: HYPERCARE or RELEASED.
violationMessageA message detailing any violations related to defective data.

executionContextProperties

Property NameDescription
qualificationTargetThe target type being qualified, with possible values of IDENTIFIER, NAME_LOCAL, CITY, STREET, and POST_CODE_REGULAR.
targetInputValueThe value provided by a user.
targetReferenceValueThe value returned by a reference data source (e.g., VIES).
dataSourceTechnicalKeyThe queried data source (e.g., VIES, BZST, AT.FON).
dataSourceRequestIdentifierThe request identifier provided by VIES.

Other fields

  • cdqId - The CDQ ID value, 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, the rulesInError object contains a list of failed rules.

debugInfo

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.


Qualification decisions

Each rule execution and each qualification decision results in one of the following values:

DecisionDescription
VALIDThe input value and the reference value provided by the qualification data source are deemed congruent.
INVALIDThere is no congruency between the input value and the reference value provided by the qualification data source.
NOT_PROCESSEDThere 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_PROVIDEDNo input value was provided, making it impossible to compare it with the reference value from the qualification data source.
NO_REFERENCE_AVAILABLENo 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_ERRORThe rule wasn't executed properly due to an internal software issue or unavailability of the qualification data source (such as downtimes or connection lags).

How the overall decision is derived

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.



Your opinion matters!

We are constantly working on providing an outstanding user experience with our products. Please share your opinion about this tutorial!