Skip to content
Last updated

Confidence Match Search takes everything you know about a company and returns the companies that match it, each with a confidence score. Use it when you need to link a record in your own system to a Creditsafe company. For example, when you're matching a supplier or customer list rather than searching interactively.

Company SearchConfidence Match Search
EndpointGET /companiesGET /companies/match
Best forFinding a company by name, number or addressMatching your record to one Creditsafe company
CountriesOne or moreOne per request
ResultsPaged, most relevant firstHighest score first, not paged (testing returned up to 10)
ScoreNomatchScoreConfidence and a breakdown per field

Flow Diagram

Yes

No

Authenticate

Confidence Match Search

A match at or above your threshold?

Company Credit Report with the matched id

Company Search, or lower the threshold

Yes

No

Authenticate

Confidence Match Search

A match at or above your threshold?

Company Credit Report with the matched id

Company Search, or lower the threshold

Diagram summary (accessibility): Authenticate, then send your company details to Confidence Match Search with a threshold. If a company matches at or above the threshold, use its id to order the Company Credit Report. If nothing matches, try Company Search or a lower threshold.


1. Send the request

GET /companies/match?country=GB&name=Example Trading Limited&postCode=AB1 2CD&matchThreshold=900
Authorization: Bearer <token>
ParameterRequiredNotes
countryYesOne country code, for example GB. Not case sensitive. Send a single, valid code
nameYesThe company name. Remove any double quotes (") first. See Names with double quotes
matchThresholdYesThe lowest score to return, from 890 to 999. A value below 890 returns 400
regNo, vatNoNoRegistration and VAT numbers improve the match when you have them
houseNo, street, city, postCode, provinceNoThe address, in as much detail as you have
phoneNoNoThe phone number, in the local format
reference1, reference2, reference3NoYour own free-text references
callRefNoYour own reference for tracking the request

Confidence Match Search doesn't page its results. page and pageSize are ignored.

Choosing a threshold: a higher threshold returns fewer, closer matches. In testing, a Creditsafe company searched by its exact name scored 899; adding its registration number or full address raised the score to 910–940. A threshold of 999 usually returns nothing. For how the scores are calculated, see Interpreting confidence match scores.


2. Read the results

Results come back highest score first:

{
  "correlationId": "1b3e170e-dea5-4bfe-9db5-c85cb2ed1c54",
  "totalMatches": 1,
  "matchedCompanies": [
    {
      "matchScoreConfidence": 940,
      "id": "GB-0-01234567",
      "country": "GB",
      "regNo": "01234567",
      "safeNo": "UK01234567",
      "name": "EXAMPLE TRADING LIMITED",
      "address": {
        "simpleValue": "1 EXAMPLE STREET, EXAMPLETOWN, AB1 2CD",
        "street": "Example Street",
        "city": "Exampletown",
        "postcode": "AB1 2CD",
        "country": "GB"
      },
      "status": "Active",
      "type": "Ltd",
      "matchScoreExplainPlan": {
        "matchScore": 940,
        "matchScoreName": "A",
        "matchScorePostCode": "A",
        "matchScoreCity": "A",
        "matchScoreRegNo": "X"
      }
    }
  ]
}
  • matchScoreConfidence: the overall score. Every result is at or above your matchThreshold.
  • matchScoreExplainPlan: a grade for each field you sent, for example A for an exact match and O for no match. Use it to see why a company did or didn't score highly.
  • id: the connectId. Use it to order the Company Credit Report. It can contain a space, so URL-encode it in the report path.
  • The address: the postcode is postcode here, with a lower-case c. In Company Search results it's postCode.

No match

No company at or above the threshold isn't an error. You get 200 with totalMatches of 0 and an empty matchedCompanies list:

{
  "correlationId": "ef8451a4-f96a-4d61-b9b0-7de866d02dcf",
  "totalMatches": 0,
  "matchedCompanies": []
}

Names with double quotes

Remove double quotes from name before you send it. A name with double quotes can return 500 Internal Server Error or no match, even when the company exists. This matters most when the name comes from Company Search, which returns quoted names in some countries, for example:

UAB "Example Lietuva"

Send it as UAB Example Lietuva. Single quotes and accented characters are fine.


Errors

400 errors use the standard body:

{
  "correlationId": "1b3e170e-dea5-4bfe-9db5-c85cb2ed1c54",
  "message": "Bad Request",
  "details": "Invalid value for query parameter matchThreshold. Expected minimum value 890."
}
Causedetails
matchThreshold below 890, or not a numberInvalid value for query parameter matchThreshold. Expected minimum value 890.
matchThreshold missingRequired query parameter matchThreshold not specified
name missingRequired query parameter name not specified
country missingMissing required request parameters: [country]

A missing or invalid token returns 401 with {"error": "Invalid token."}.


ResourceDescription
Company Search and Report WorkflowSearching for companies and ordering their reports
Confidence Match Search endpoint referenceEvery parameter and response field