Skip to main content
This guide explains how to access GBGroup’s MatchCode 360 Business Data web service product using the Identity Management Platform (IdM), available via SOAP web services. The fundamentals of integrating with the service are described here: Integration Fundamentals Please note: Wherever (LatestWSDLVersion) is shown in Example Code below, please replace this with GlobalServices21a.wsdl.

Matchcode Business Data Web Service Product Information

The Matchcode Business Data web Service service allows searching on UK Business Data. The Matchcode Business Data web service products are available via the Identity Management ExecuteCapture web service method.

Input Format

The ExecuteCapture method takes in a ExecuteCaptureRequest data structure, which contains all the information necessary to carry out the request. Type: ExecuteCaptureRequest
Field NameTypeDescription
securityHeaderSecurityHeaderThe username and authentication token used to access the system.
profileRequestProfileRequestCaptureDetails of the request
The SecurityHeader structure holds security data to access products and services in the IdM Platform. The ProfileRequestCapture structure contains the criteria to identify the target product being called and the search data for the product request. Within the profileRequest element, the profileGuid element should contain the GUID value listed below:
ProfileGUID
Business Data7C779053-F673-4903-9366-87ED5B1D3448

Search Criteria

The address search criteria should be entered into the IdmDataSearchAddress data structure, which is located within the input details as follows: ExecuteCapture → ProfileRequestCapture → ProfileRequestCaptureData → address

Additional Request Options

The additional search options, used for configuring options such as casing or transliteration of output results, can be set in the IdmRequestOptions structure located in the ProfileRequestCaptureData.options property.

Additional Return Data

Additional data can be returned, or excluded from being returned, for each address by providing one or more values in the IdmRequestOption.relatedDataItems property. Using this feature to reduce the amount of data request can often speed up searches. An example usage of this would be to perform an initial search which only requests certain keys be returned (e.g. UPRN), and then after selecting a record or records of interest perform a second lookup on the UPRN which returns more detailed information. For each value provided, the corresponding additional data is returned, and the corresponding additional data for all the values not provided, are not returned. If no values are provided, then the data marked as returned by default below, is returned. The following values are supported by this service.
Key MnemonicDescriptionReturned By Default
TELTelephone NumberYes
FAXFax NumberYes
SIC03UK 2003 SIC CodeYes
NUMEMPCOEmployees at CompanyYes
NUMEMPEmployees at SiteYes
HOFHead Office FlagYes
TOTurnoverYes
YEARSTARYear StartedYes
SIC03TEXT2003 SIC DescriptionYes
ExecutiveCountExecutive CoutYes
Ex1_FunctionExecutive 1 - functionYes
Ex1_FirstNameExecutive 1 - first nameYes
Ex1_SurnameExecutive 1 - surnameYes
Ex1_SalutationExecutive 1 - salutationYes
Ex1_SexExecutive 1 - genderYes
Ex2_FunctionExecutive 2 - functionYes
Ex2_FirstNameExecutive 2 - first nameYes
Ex2_SurnameExecutive 2 - surnameYes
Ex2_SalutationExecutive 2 - salutationYes
Ex2_SexExecutive 2 - genderYes
Ex3_FunctionExecutive 3 - functionYes
Ex3_FirstNameExecutive 3 - first nameYes
Ex3_SurnameExecutive 3 - surnameYes
Ex3_SalutationExecutive 3 - salutationYes
Ex3_SexExecutive 3 - genderYes
Ex4_FunctionExecutive 4 - functionYes
Ex4_FirstNameExecutive 4 - first nameYes
Ex4_SurnameExecutive 4 - surnameYes
Ex4_SalutationExecutive 4 - salutationYes
Ex4_SexExecutive 4 - genderYes
Ex5_FunctionExecutive 5 - functionYes
Ex5_FirstNameExecutive 5 - first nameYes
Ex5_SurnameExecutive 5 - surnameYes
Ex5_SalutationExecutive 5 - salutationYes
Ex5_SexExecutive 5 - genderYes
Ex6_FunctionExecutive 6 - functionYes
Ex6_FirstNameExecutive 6 - first nameYes
Ex6_SurnameExecutive 6 - surnameYes
Ex6_SalutationExecutive 6 - salutationYes
Ex6_SexExecutive 6 - genderYes
DecsFunctionResp Decisions functionYes
DecsFirstNameResp Decisions first nameYes
DecsSurnameResp Decisions surnameYes
DecsSalutationResp Decisions salutationYes
DecsGenderResp Decisions genderYes
UCRNUnique Company Registration NumberYes
CroNumberCompany Registration NumberYes
PCNORTH1m grid northingYes
PCEAST1m grid eastingYes
LATITUDEWorld geodetic standard 1984 datum latitudeYes
LONGITUDEWorld geodetic standard 1984 datum longitudeYes

Output Format

The results of the Matchcode Names web service search are returned in a ProfileResponseDetails structure with a ProfileResponseDetail.responseType of ‘CAPTURE’. The ProfileResponseDetails structure contains a single CaptureResponse data structure which holds an array of IdmDataAddress records containing the returned address data. ExecuteCaptureResponse > ProfileResponse [0] > ProfileResponseDetails [0] > CaptureResponse > CaptureResponseData > IdmDataAddress [n] Additional data from a search may be returned in the additionalItems or the groupedAdditionalItems of the IdmDataAddress.

Output Fields

Apart from the standard address fields, the following additional fields are returned by the service:
FieldRelated Data Item KeyLocation In Response
Telephone NumberTELIdmDataAddressgroupedAdditionalItems
Fax NumberFAXIdmDataAddressgroupedAdditionalItems
UK 2003 SIC CodeSIC03IdmDataAddressgroupedAdditionalItems
Employees at CompanyNUMEMPCOIdmDataAddressgroupedAdditionalItems
Employees at SiteNUMEMPIdmDataAddressgroupedAdditionalItems
Head Office FlagHOFIdmDataAddressgroupedAdditionalItems
TurnoverTOIdmDataAddressgroupedAdditionalItems
Year StartedYEARSTARIdmDataAddressgroupedAdditionalItems
2003 SIC DescriptionSIC03TEXTIdmDataAddressgroupedAdditionalItems
Executive CountExecutiveCountIdmDataAddressgroupedAdditionalItems
Executive 1 - FunctionEx1_FunctionIdmDataAddressgroupedAdditionalItems
Executive 1 - First NameEx1_FirstNameIdmDataAddressgroupedAdditionalItems
Executive 1 - SurnameEx1_SurnameIdmDataAddressgroupedAdditionalItems
Executive 1 - SalutationEx1_SalutationIdmDataAddressgroupedAdditionalItems
Executive 1 - GenderEx1_SexIdmDataAddressgroupedAdditionalItems
Executive 2 - FunctionEx2_FunctionIdmDataAddressgroupedAdditionalItems
Executive 2 - First NameEx2_FirstNameIdmDataAddressgroupedAdditionalItems
Executive 2 - SurnameEx2_SurnameIdmDataAddressgroupedAdditionalItems
Executive 2 - SalutationEx2_SalutationIdmDataAddressgroupedAdditionalItems
Executive 2 - GenderEx2_SexIdmDataAddressgroupedAdditionalItems
Executive 3 - FunctionEx3_FunctionIdmDataAddressgroupedAdditionalItems
Executive 3 - First NameEx3_FirstNameIdmDataAddressgroupedAdditionalItems
Executive 3 - SurnameEx3_SurnameIdmDataAddressgroupedAdditionalItems
Executive 3 - SalutationEx3_SalutationIdmDataAddressgroupedAdditionalItems
Executive 3 - GenderEx3_SexIdmDataAddressgroupedAdditionalItems
Executive 4 - FunctionEx4_FunctionIdmDataAddressgroupedAdditionalItems
Executive 4 - First NameEx4_FirstNameIdmDataAddressgroupedAdditionalItems
Executive 4 - SurnameEx4_SurnameIdmDataAddressgroupedAdditionalItems
Executive 4 - SalutationEx4_SalutationIdmDataAddressgroupedAdditionalItems
Executive 4 - GenderEx4_SexIdmDataAddressgroupedAdditionalItems
Executive 5 - FunctionEx5_FunctionIdmDataAddressgroupedAdditionalItems
Executive 5 - First NameEx5_FirstNameIdmDataAddressgroupedAdditionalItems
Executive 5 - SurnameEx5_SurnameIdmDataAddressgroupedAdditionalItems
Executive 5 - SalutationEx5_SalutationIdmDataAddressgroupedAdditionalItems
Executive 5 - GenderEx5_SexIdmDataAddressgroupedAdditionalItems
Executive 6 - FunctionEx6_FunctionIdmDataAddressgroupedAdditionalItems
Executive 6 - First NameEx6_FirstNameIdmDataAddressgroupedAdditionalItems
Executive 6 - SurnameEx6_SurnameIdmDataAddressgroupedAdditionalItems
Executive 6 - SalutationEx6_SalutationIdmDataAddressgroupedAdditionalItems
Executive 6 - GenderEx6_SexIdmDataAddressgroupedAdditionalItems
Resp Decisions FunctionDecsFunctionIdmDataAddressgroupedAdditionalItems
Resp Decisions First NameDecsFirstNameIdmDataAddressgroupedAdditionalItems
Resp Decisions SurNameDecsSurnameIdmDataAddressgroupedAdditionalItems
Resp Decisions SalutationDecsSalutationIdmDataAddressgroupedAdditionalItems
Resp Decisions GenderDecsGenderIdmDataAddressgroupedAdditionalItems
Unique Company Registration NumberUCRNIdmDataAddressgroupedAdditionalItems
Company Registration NumberCRONUMBERIdmDataAddressgroupedAdditionalItems
1m grid northingPCNORTHIdmDataAddressIdmDataGeographic → northing
1m grid eastingPCEASTIdmDataAddressIdmDataGeographic → easting
World geodetic standard 1984 datum latitudeLATITUDEIdmDataAddressIdmDataGeographic → latitude
World geodetic standard 1984 datum longitudeLONGITUDEIdmDataAddressIdmDataGeographic → longitude

Field Value Mappings

Below are listed the mappings for certain fields, specifying what each possible value of the field means.

Head Office Flag

ValueDescription
BBranch
HHead office
SSingle site

Example Requests & Responses

Example Requests

SOAP

<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:a="http://gbworld.gb.co.uk/idm-globalservices/messages/<LatestWSDLVersion>/"
                  xmlns:head="http://gbworld.gb.co.uk/types/header/"
                  xmlns:req="http://gbworld.gb.co.uk/types/core/request/"
                  xmlns:data="http://gbworld.gb.co.uk/types/core/data/">
    <soapenv:header/>
    <soapenv:body>
        <a:executecapturerequest>
            <a:securityheader>
                <head:authenticationtoken>C18AB65D-85A0-4C48-81A9-C5E23058C819</head:authenticationtoken>
                <head:username>CENSORED</head:username>
            </a:securityheader>
            <a:profilerequest>
                <req:customerreference>Sample Business Lookup</req:customerreference>
                <req:profileguid>7C779053-F673-4903-9366-87ED5B1D3448</req:profileguid>
                <req:configurationid>1</req:configurationid>
                <req:requestdata>
                    <req:address>
                        <data:organisation>GB Group plc</data:organisation>
                        <data:postCode>CH4 9GB</data:postCode>
                        <data:countryCode>GBR</data:countryCode>
                    </req:address>
                    <req:filters tmp="?"/>
                    <req:options>
                        <req:addressenvelopeformat>A4P</req:addressenvelopeformat>
                        <req:offset>0</req:offset>
                        <req:maxreturn>50</req:maxreturn>
                        <req:transliteration>NATIVE</req:transliteration>
                        <req:countrycodeformat>ISO3</req:countrycodeformat>
                    </req:options>
                    <req:additionaldata tmp="?"/>
                </req:requestdata>
            </a:profilerequest>
        </a:executecapturerequest>
    </soapenv:body>
</soapenv:envelope>

REST

{
    "customerReference":"Test",
    "profileGuid":"7C779053-F673-4903-9366-87ED5B1D3448",
    "configurationId":"1",
    "requestData":{
        "address":{
            "organisation":"GB Group plc",
            "postCode":"CH4 9GB",
            "countryCode":"GBR"
        },
        "options":{
            "offset":"0",
            "maxReturn":"50"
        },
        "additionalData":{
 
        }
    }
}

Example Responses

SOAP

<soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:header/>
    <soap-env:body>
        <ns5:executecaptureresponse xmlns:ns5="http://gbworld.gb.co.uk/idm-globalservices/messages/<LatestWSDLVersion>/"
                                    xmlns:data="http://gbworld.gb.co.uk/types/core/data/"
                                    xmlns:head="http://gbworld.gb.co.uk/types/header/"
                                    xmlns:req="http://gbworld.gb.co.uk/types/core/request/">
            <ns5:securityheader>
                <head:authenticationtoken>1273F4FA-3AE7-4742-A0C6-626D006A445A</head:authenticationtoken>
                <head:authenticationtime>2014-02-14T13:05:11.000Z</head:authenticationtime>
                <head:sessionexpirytime>2014-02-14T13:35:20.449Z</head:sessionexpirytime>
            </ns5:securityheader>
            <ns5:transactionguid>8F9F9258-E772-45FC-B486-7F09FD3F067B</ns5:transactionguid>
            <ns5:profileresponse>
                <req:profileHeader>
                    <req:profileGuid>7C779053-F673-4903-9366-87ED5B1D3448</req:profileGuid>
                    <req:profileName>Business Data</req:profileName>
                    <req:transactionGuid>A9663B88-224C-4279-9E2C-B3DD4FFA831C</req:transactionGuid>
                    <req:transactionTimeStamp>2016-02-23T15:35:42.061Z</req:transactionTimeStamp>
                    <req:profileStatus>SUCCESS</req:profileStatus>
                </req:profileHeader>
                <req:profileResponseDetails>
                    <req:transactionGuid>56C16127-A22E-4E39-A6A0-E6A8FBC453CB</req:transactionGuid>
                    <req:componentName>Matchcode Business Data</req:componentName>
                    <req:componentStatus>SUCCESS</req:componentStatus>
                    <req:componentAction>VERIFY</req:componentAction>
                    <req:responseType>CAPTURE</req:responseType>
                    <req:notes>[]</req:notes>
                    <req:invoice>
                        <req:invoiceList>
                            <req:invoiceGuid>5BD50A02-FF5B-4199-BA17-0606555E622B</req:invoiceGuid>
                            <req:billingInformationGuid>21C213F0-401B-4177-8D0C-D129B0D1254A</req:billingInformationGuid>
                            <req:billingPoints>1</req:billingPoints>
                            <req:creditsUsed>1</req:creditsUsed>
                            <req:dataSetInvoices>
                                <req:dataSetCode>BUSINESS_DATA_V2</req:dataSetCode>
                                <req:billingPoints>1</req:billingPoints>
                                <req:recordsReturned>1</req:recordsReturned>
                                <req:dataLicenceGuid>21C213F0-401B-4177-8D0C-D129B0D1254A</req:dataLicenceGuid>
                            </req:dataSetInvoices>
                        </req:invoiceList>
                    </req:invoice>
                    <req:captureResponse>
                        <req:resultStatus>SINGLE</req:resultStatus>
                        <req:recordsReturned>1</req:recordsReturned>
                        <req:moreData>false</req:moreData>
                        <req:totalRecordCount>1</req:totalRecordCount>
                        <req:totalPages>1</req:totalPages>
                        <req:matchScore>0</req:matchScore>
                        <req:matchLevel>NA</req:matchLevel>
                        <req:outputStatus>NOTMATCHED</req:outputStatus>
                        <req:fieldStatus>55555555</req:fieldStatus>
                        <req:responseCount>1</req:responseCount>
                        <req:response>
                            <req:address>
                                <data:organisation>Gb Group Plc</data:organisation>
                                <data:street>Herons Way</data:street>
                                <data:town>CHESTER</data:town>
                                <data:postCode>CH4 9GB</data:postCode>
                                <data:locality>Chester Business Park</data:locality>
                                <data:buildingName>The Foundation</data:buildingName>
                                <data:stateRegion>Cheshire</data:stateRegion>
                                <data:dpsZipPlus>9ZI</data:dpsZipPlus>
                                <data:formattedAddress>Gb Group Plc,The Foundation,Herons Way Chester Business Park,CHESTER,Cheshire,CH4 9GB</data:formattedAddress>
                                <data:geographicInformation>
                                    <data:easting>340009</data:easting>
                                    <data:northing>363192</data:northing>
                                    <data:latitude>53.1624456651</data:latitude>
                                    <data:longitude>-2.8987260320</data:longitude>
                                </data:geographicInformation>
                                <data:additionalItems>
                                    <data:item>
                                        <data:key>DATASOURCE</data:key>
                                        <data:value>BUSINESS_DATA_V2</data:value>
                                    </data:item>
                                </data:additionalItems>
                                <data:groupedAdditionalItems>                    
                                 <data:name>BusinessData</data:name>                    
                                 <data:item>                        
                                    <data:key>Ex1_Function</data:key>                        
                                    <data:value>Director</data:value>                    
                                 </data:item>                    
                                 <data:item>                        
                                    <data:key>Ex1_FirstName</data:key>                        
                                    <data:value>David</data:value>                    
                                 </data:item>                    
                                 <data:item>                        
                                    <data:key>Ex1_Surname</data:key>                        
                                    <data:value>Ward</data:value>                    
                                 </data:item>                    
                 ....               
                                 <data:item>                        
                                    <data:key>Ex5_Salutation</data:key>                        
                                    <data:value>Dear Mr C.G. Clark</data:value>                    
                                 </data:item>                    
                                 <data:item>                        
                                    <data:key>Ex5_Sex</data:key>                        
                                    <data:value>Male</data:value>                    
                                 </data:item>                
                              </data:groupedAdditionalItems> 
                            </req:address>
                        </req:response>
                    </req:captureResponse>
                </req:profileResponseDetails>
            </ns5:profileresponse>
        </ns5:executecaptureresponse>
    </soap-env:body>
</soap-env:envelope>

REST

{
  "profileResponse": {
    "profileHeader": {
      "profileGuid": "7C779053-F673-4903-9366-87ED5B1D3448",
      "profileName": "Business Data",
      "transactionGuid": "A9663B88-224C-4279-9E2C-B3DD4FFA831C",
      "transactionTimeStamp": "2016-02-23T15:35:42.061Z",
      "profileStatus": "SUCCESS"
    },
    "profileResponseDetails": {
      "transactionGuid": "56C16127-A22E-4E39-A6A0-E6A8FBC453CB",
      "componentName": "Matchcode Business Data",
      "componentStatus": "SUCCESS",
      "componentAction": "VERIFY",
      "responseType": "CAPTURE",
      "notes": "[]",
      "invoice": {
        "invoiceList": {
          "invoiceGuid": "5BD50A02-FF5B-4199-BA17-0606555E622B",
          "billingInformationGuid": "21C213F0-401B-4177-8D0C-D129B0D1254A",
          "billingPoints": "1",
          "creditsUsed": "1",
          "dataSetInvoices": {
            "dataSetCode": "BUSINESS_DATA_V2",
            "billingPoints": "1",
            "recordsReturned": "1",
            "dataLicenceGuid": "21C213F0-401B-4177-8D0C-D129B0D1254A"
          }
        }
      },
      "captureResponse": {
        "resultStatus": "SINGLE",
        "recordsReturned": "1",
        "moreData": "false",
        "totalRecordCount": "1",
        "totalPages": "1",
        "matchScore": "0",
        "matchLevel": "NA",
        "outputStatus": "NOTMATCHED",
        "fieldStatus": "55555555",
        "responseCount": "1",
        "response": {
          "address": {
            "organisation": "Gb Group Plc",
            "street": "Herons Way",
            "town": "CHESTER",
            "postCode": "CH4 9GB",
            "locality": "Chester Business Park",
            "buildingName": "The Foundation",
            "stateRegion": "Cheshire",
            "dpsZipPlus": "9ZI",
            "formattedAddress": "Gb Group Plc,The Foundation,Herons Way Chester Business Park,CHESTER,Cheshire,CH4 9GB",
            "geographicInformation": {
              "easting": "340009",
              "northing": "363192",
              "latitude": "53.1624456651",
              "longitude": "-2.8987260320"
            },
            "additionalItems": {
              "item": {
                "key": "DATASOURCE",
                "value": "BUSINESS_DATA_V2"
              }
            },"groupedAdditionalItems": [
              {
                "name": "BusinessData",
                "item": [
                  {
                    "key": "SIC03",
                    "value": "9999"
                  },
                  {
                    "key": "HOF",
                    "value": "Branch"
                  },
                  {
                    "key": "YEARSTAR",
                    "value": "1974"
                  },
                  ...
                  {
                    "key": "SIC03TEXT",
                    "value": "DORMANT COMPANY L ORGANISATIONS NG ACTIVITIES OF PRIVATE HOUSEHOLDS FOR OWN USE OR TOBACCO PREDOMINATING"
                  },
                  {
                    "key": "CRONUMBER",
                    "value": "01183941"
                  },
                  {
                    "key": "UCRN",
                    "value": "UK00854709"
                  }
                ]
              }
            ],
          }
        }
      }
    }
  }
}

Error Information

Information on possible error codes is given here: Error Code Information