---
title: Composite Searching
slug: api/hvl_-composite-searching
icon: {"faIcon":"fa-brands fa-buffer"}
createdAt: 2025-03-04T04:58:12.758Z
---

**Composite search in United Kingdom enables clients to automate the selection of multiple services, processing verification inputs through successive data sources and returning responses from each selected service.**



<u>**Example&#x20;**</u>- API Requests and Responses with following services configured:

United Kingdom Citizens
United Kingdom Consumer
United Kingdom Financial Services
United Kingdom Phone
United Kingdom Phone 2
United Kingdom Residential



:::ApiMethodV2
```json
{
  "name": "United Kingdom Composite Search",
  "method": "POST",
  "url": "https://idu-test.datazoo.com/api/v2/verify",
  "description": "* Verification Outcome – KYC verification from sequenced searching and returns single or duel (where possible) source matches\n* Consumer Consent – YES (for United Kingdom Residential and United Kingdom Credit Bureau)\n* Mandatory Input – Name, DOB, Address and Phone number\n* Verifies – Name, DOB, Address, Mobile number, Landline number and Email address\n* Returned Data - N/A",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "f2jMy98sIuBrop0Bgc788",
        "language": "curl",
        "code": "curl --location 'https://idu-test.datazoo.com/api/v2/verify' \\\n--data-raw '{\n    \"countryCode\": \"GB\",\n    \"service\": [\n        \"United Kingdom Citizens\",\n        \"United Kingdom Consumer\",\n        \"United Kingdom Financial Services\",\n        \"United Kingdom Phone\",\n        \"United Kingdom Phone 2\",\n        \"United Kingdom Residential\"\n    ],\n    \"clientReference\": \"Test_0001\",\n    \"firstName\": \"Winston\", \n    \"lastName\": \"Churchill\", \n    \"dateOfBirth\": \"1977-01-01\", \n    \"addressElement1\": \"4 Barrow Rise\", \n    \"addressElement3\": \"Weymouth\", \n    \"addressElement4\": \"Dorset\", \n    \"addressElement5\": \"DT4 9HJ\", \n    \"identityVariables\": {\n        \"email\": \"wchurchilltest@datazoo.com\",\n        \"phoneNo\": \"07983554111\",\n        \"landlineNo\": \"01912960111\"\n    },\n    \"consentObtained\": {\n        \"United Kingdom Residential\": true,\n        \"United Kingdom Credit Bureau\": true\n    }\n}'",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "f2jMy98sIuBrop0Bgc788"
  },
  "results": {
    "languages": [
      {
        "id": "-KLLvb-_jXQIuU-WuWQAF",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"countryCode\": \"United Kingdom\",\n    \"clientReference\": \"Test_0001\",\n    \"reportingReference\": \"DZ-b3d7a42d-b152-4c92-9cf4-9a61e17f03c1\",\n    \"matchStatus\": \"Full Match 1+1 Verification\",\n    \"searchErrorMessage\": \"\",\n    \"safeHarbour\": false,\n    \"searchStatus\": \"Successful\",\n    \"serviceResponses\": {\n        \"United Kingdom Citizens\": {\n            \"status\": 2,\n            \"sourceStatus\": \"Successful\",\n            \"errorMessage\": \"\",\n            \"identityVerified\": false,\n            \"safeHarbourScore\": \"none\",\n            \"nameMatchScore\": \"0.000\",\n            \"addressMatchScore\": \"N/A\",\n            \"verifications\": {\n                \"dateOfBirth\": false,\n                \"firstName\": false,\n                \"lastName\": false\n            },\n            \"returnedData\": {}\n        },\n        \"United Kingdom Consumer\": {\n            \"status\": 2,\n            \"sourceStatus\": \"Successful\",\n            \"errorMessage\": \"\",\n            \"identityVerified\": false,\n            \"safeHarbourScore\": \"none\",\n            \"nameMatchScore\": \"1.000\",\n            \"addressMatchScore\": \"0.000\",\n            \"verifications\": {\n                \"addressElement1\": false,\n                \"addressElement3\": false,\n                \"addressElement5\": false,\n                \"dateOfBirth\": false,\n                \"firstName\": true,\n                \"lastName\": true,\n                \"phoneNo\": false\n            },\n            \"returnedData\": {}\n        },\n        \"United Kingdom Financial Services\": {\n            \"status\": 2,\n            \"sourceStatus\": \"Successful\",\n            \"errorMessage\": \"\",\n            \"identityVerified\": false,\n            \"safeHarbourScore\": \"none\",\n            \"nameMatchScore\": \"0.000\",\n            \"addressMatchScore\": \"0.000\",\n            \"verifications\": {\n                \"addressElement1\": false,\n                \"addressElement3\": false,\n                \"addressElement4\": false,\n                \"addressElement5\": false,\n                \"dateOfBirth\": false,\n                \"firstName\": false,\n                \"lastName\": false\n            },\n            \"returnedData\": {\n                \"activityHistory\": \"0\",\n                \"amberhill\": false,\n                \"deathRegistration\": false,\n                \"identityFraud\": \"1\",\n                \"identityStrength\": \"0\",\n                \"identityValidity\": \"0\",\n                \"siraFraud\": false,\n                \"siraImpersonation\": false,\n                \"synthIdNoMatch\": true\n            }\n        },\n        \"United Kingdom Phone\": {\n            \"status\": 2,\n            \"sourceStatus\": \"Successful\",\n            \"errorMessage\": \"\",\n            \"identityVerified\": false,\n            \"safeHarbourScore\": \"none\",\n            \"nameMatchScore\": \"0.000\",\n            \"addressMatchScore\": \"0.000\",\n            \"verifications\": {\n                \"addressElement1\": false,\n                \"addressElement3\": false,\n                \"addressElement4\": false,\n                \"addressElement5\": false,\n                \"emailAddress\": false,\n                \"firstName\": false,\n                \"lastName\": false,\n                \"phoneNo\": false\n            },\n            \"returnedData\": {}\n        },\n        \"United Kingdom Phone 2\": {\n            \"status\": 2,\n            \"sourceStatus\": \"Successful\",\n            \"errorMessage\": \"No relevant entries found\",\n            \"identityVerified\": false,\n            \"safeHarbourScore\": \"none\",\n            \"nameMatchScore\": \"N/A\",\n            \"addressMatchScore\": \"N/A\",\n            \"verifications\": {},\n            \"returnedData\": {}\n        },\n        \"United Kingdom Residential\": {\n            \"status\": 1,\n            \"sourceStatus\": \"Successful\",\n            \"errorMessage\": \"\",\n            \"identityVerified\": true,\n            \"safeHarbourScore\": \"M1\",\n            \"nameMatchScore\": \"1.000\",\n            \"addressMatchScore\": \"0.750\",\n            \"verifications\": {\n                \"addressElement1\": true,\n                \"addressElement3\": false,\n                \"addressElement5\": true,\n                \"dateOfBirth\": true,\n                \"email\": true,\n                \"firstName\": true,\n                \"landlineNo\": true,\n                \"lastName\": true,\n                \"phoneNo\": true\n            },\n            \"returnedData\": {}\n        }\n    },\n    \"remarks\": []\n}"
      },
      {
        "id": "AS5tJ4glQVhlG7b69Q21J",
        "language": "404",
        "customLabel": "",
        "code": "{\n  \"message\": \"Ain't no cake like that.\"\n}"
      }
    ],
    "selectedLanguageId": "-KLLvb-_jXQIuU-WuWQAF"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "Authorization",
        "kind": "required",
        "type": "string",
        "description": "sessionToken obtained via the Authentication call",
        "": "sessionToken obtained via the Authentication call"
      }
    ],
    "bodyDataParameters": [
      {
        "name": "data",
        "kind": "required",
        "type": "object",
        "description": "request body sent to the API",
        "": "object",
        "children": [
          {
            "name": "countryCode",
            "kind": "required",
            "type": "string",
            "description": "GB"
          },
          {
            "name": "service",
            "kind": "required",
            "type": "array",
            "description": "\"United Kingdom Citizens\", \"United Kingdom Consumer\", \"United Kingdom Financial Services\", \"United Kingdom Phone\", \"United Kingdom Phone 2\", \"United Kingdom Residential\""
          },
          {
            "name": "clientReference",
            "kind": "optional",
            "type": "string",
            "description": "a client reference field"
          },
          {
            "name": "firstName",
            "kind": "required",
            "type": "string",
            "description": "first name of the identity owner"
          },
          {
            "name": "middleName",
            "kind": "optional",
            "type": "string",
            "description": "the middle name(s) of the identity owner"
          },
          {
            "name": "lastName",
            "kind": "required",
            "type": "string",
            "description": "the last name of the identity owner"
          },
          {
            "name": "dateOfBirth",
            "kind": "required",
            "type": "string",
            "description": "in YYYY-MM-DD (preferred) or DD-MM-YYYY format"
          },
          {
            "name": "addressElement1",
            "kind": "required",
            "type": "string",
            "description": "the street name of the address of the identity owner",
            "children": []
          },
          {
            "name": "addressElement3",
            "kind": "required",
            "type": "string",
            "description": "the suburb address of the identity owner",
            "children": []
          },
          {
            "name": "addressElement4",
            "kind": "optional",
            "type": "string",
            "description": "the state address of the identity owner",
            "children": []
          },
          {
            "name": "addressElement5",
            "kind": "required",
            "type": "string",
            "description": "the Eircode address of the identity owner",
            "children": []
          },
          {
            "name": "identityVariables",
            "kind": "required",
            "type": "object",
            "description": "other elements for verification",
            "children": [
              {
                "name": "phoneNo",
                "kind": "required",
                "type": "string",
                "description": "mobile phone number of the identity owner"
              },
              {
                "name": "landlineNo",
                "kind": "optional",
                "type": "string",
                "description": "landline number of the identity owner"
              },
              {
                "name": "email",
                "kind": "optional",
                "type": "string",
                "description": "email address of the identity owner"
              }
            ]
          },
          {
            "name": "consentObtained",
            "kind": "optional",
            "type": "object",
            "description": "consent given by the identity owner",
            "children": [
              {
                "name": "United Kingdom Residential",
                "kind": "optional",
                "type": "boolean",
                "description": "should be true"
              },
              {
                "name": "United Kingdom Credit Bureau",
                "kind": "optional",
                "type": "boolean",
                "description": "should be true"
              }
            ]
          }
        ],
        "schema": [
          {
            "name": "countryCode",
            "kind": "required",
            "type": "string",
            "description": "GB"
          },
          {
            "name": "service",
            "kind": "required",
            "type": "array",
            "description": "\"United Kingdom Citizens\", \"United Kingdom Consumer\", \"United Kingdom Financial Services\", \"United Kingdom Phone\", \"United Kingdom Phone 2\", \"United Kingdom Residential\""
          },
          {
            "name": "clientReference",
            "kind": "optional",
            "type": "string",
            "description": "a client reference field"
          },
          {
            "name": "firstName",
            "kind": "required",
            "type": "string",
            "description": "first name of the identity owner"
          },
          {
            "name": "middleName",
            "kind": "optional",
            "type": "string",
            "description": "the middle name(s) of the identity owner"
          },
          {
            "name": "lastName",
            "kind": "required",
            "type": "string",
            "description": "the last name of the identity owner"
          },
          {
            "name": "dateOfBirth",
            "kind": "required",
            "type": "string",
            "description": "in YYYY-MM-DD (preferred) or DD-MM-YYYY format"
          },
          {
            "name": "addressElement1",
            "kind": "required",
            "type": "string",
            "description": "the street name of the address of the identity owner",
            "children": []
          },
          {
            "name": "addressElement3",
            "kind": "required",
            "type": "string",
            "description": "the suburb address of the identity owner",
            "children": []
          },
          {
            "name": "addressElement4",
            "kind": "optional",
            "type": "string",
            "description": "the state address of the identity owner",
            "children": []
          },
          {
            "name": "addressElement5",
            "kind": "required",
            "type": "string",
            "description": "the Eircode address of the identity owner",
            "children": []
          },
          {
            "name": "identityVariables",
            "kind": "required",
            "type": "object",
            "description": "other elements for verification",
            "children": [
              {
                "name": "phoneNo",
                "kind": "required",
                "type": "string",
                "description": "mobile phone number of the identity owner"
              },
              {
                "name": "landlineNo",
                "kind": "optional",
                "type": "string",
                "description": "landline number of the identity owner"
              },
              {
                "name": "email",
                "kind": "optional",
                "type": "string",
                "description": "email address of the identity owner"
              }
            ]
          },
          {
            "name": "consentObtained",
            "kind": "optional",
            "type": "object",
            "description": "consent given by the identity owner",
            "children": [
              {
                "name": "United Kingdom Residential",
                "kind": "optional",
                "type": "boolean",
                "description": "should be true"
              },
              {
                "name": "United Kingdom Credit Bureau",
                "kind": "optional",
                "type": "boolean",
                "description": "should be true"
              }
            ]
          }
        ]
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "response": [
    {
      "name": "countryCode",
      "kind": "optional",
      "type": "string",
      "description": "United Kingdom",
      "children": []
    },
    {
      "name": "clientReference",
      "kind": "optional",
      "type": "string",
      "description": "the client reference (if given as input) ",
      "children": []
    },
    {
      "name": "reportingReference",
      "kind": "optional",
      "type": "string",
      "description": "a reference number generated which is unique to each transaction. ",
      "children": []
    },
    {
      "name": "validationErrors",
      "kind": "optional",
      "type": "string",
      "description": "Returned with HTTP status code 400 when the request contains invalid or improperly formatted input data.",
      "children": []
    },
    {
      "name": "matchStatus",
      "kind": "optional",
      "type": "string",
      "description": "\"Full Match 1+1 Verification\" \n\"Full Match 2+2 Verification\" \n\"No Match\""
    },
    {
      "name": "searchErrorMessage",
      "kind": "optional",
      "type": "string",
      "description": "error message returned querying the data source",
      "children": []
    },
    {
      "name": "safeHarbour",
      "kind": "optional",
      "type": "boolean",
      "description": "true or false",
      "children": []
    },
    {
      "name": "searchStatus",
      "kind": "optional",
      "type": "string",
      "description": "\"Successful\" \n\"Not Successful\"",
      "children": []
    },
    {
      "name": "serviceResponses",
      "kind": "optional",
      "type": "object",
      "description": "* refer to the section at the bottom of the page titled \"Service Responses Overview\"",
      "children": [
        {
          "name": "status",
          "kind": "optional",
          "type": "integer",
          "description": "0 - identityVerified TRUE - element verifications all TRUE\n1 - identityVerified TRUE - element verifications not all TRUE\n2 - identityVerified FALSE - sourceStatus SUCCESSFUL\n3 - identityVerified FALSE - sourceStatus NOT SUCCESSFUL"
        },
        {
          "name": "sourceStatus",
          "kind": "optional",
          "type": "string",
          "description": "\"Successful\"\n\"Unsuccessful\""
        },
        {
          "name": "errorMessage",
          "kind": "optional",
          "type": "string",
          "description": "error message(s) from the data source.  Example, \"Error querying data source\"."
        },
        {
          "name": "identityVerified",
          "kind": "optional",
          "type": "boolean",
          "description": "true or false"
        },
        {
          "name": "safeHarbourScore",
          "kind": "optional",
          "type": "string",
          "description": "* refer to the section at the bottom of the page titled \"Service Responses Overview\"\n* For more information, refer to Safe Harbour Scores page"
        },
        {
          "name": "nameMatchScore",
          "kind": "optional",
          "type": "string",
          "description": "* refer to the section at the bottom of the page titled \"Service Responses Overview\""
        },
        {
          "name": "addressMatchScore",
          "kind": "optional",
          "type": "string",
          "description": "* refer to the section at the bottom of the page titled \"Service Responses Overview\""
        },
        {
          "name": "verifications",
          "kind": "optional",
          "type": "object",
          "description": "* refer to the section at the bottom of the page titled \"Service Responses Overview\"",
          "children": [
            {
              "name": "addressElement1",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "addressElement3",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "addressElement4",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "addressElement5",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "dateOfBirth",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "email",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "firstName",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "lastName",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "phoneNo",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "landlineNo",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            }
          ]
        },
        {
          "name": "returnedData",
          "kind": "optional",
          "type": "object",
          "description": "* refer to the section at the bottom of the page titled \"Service Responses Overview\"",
          "children": []
        }
      ]
    },
    {
      "name": "remarks",
      "kind": "optional",
      "type": "array",
      "description": "Null",
      "children": []
    }
  ],
  "autoGeneratedAnchorSlug": "united-kingdom-composite-search",
  "legacyHash": "nUCDxWcEcv_KqLOQr5VCR"
}
```
:::

***

:::hint{type="info"}
# Service Responses Overview&#x20;

Each service returns its own self-contained response block, ensuring modular and source-specific verification results. Consumers of this API should handle varying response structures dynamically based on the requested services.&#x20;

## Service Responses Element

The **serviceResponses** object in the API response contains verification results from one or more data sources, structured under their respective service names. Each service returns a distinct response block with service-specific data.

### Structure and Behavior:&#x20;

- Each key within **serviceResponses** corresponds to a **service name**, representing an individual verification source.
- Services may return data from **a single source or multiple sources** in a sequenced API call.
- The structure of each service response varies, with fields such as **status**, **identityVerified**, and **safeHarbourScore** differing between services.
- The **verifications** block contains service-specific boolean indicators for individual verification checks (e.g., **addressElement1**, **dateOfBirth**, **firstName**).
- The **returnedData** block provides metadata (if applicable).
:::

***

:::Changelog{title="Change History"}
::ChangelogItem{type="added" description="Last updated - 16 April, 2025"}
:::

