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 Search | Confidence Match Search | |
|---|---|---|
| Endpoint | GET /companies | GET /companies/match |
| Best for | Finding a company by name, number or address | Matching your record to one Creditsafe company |
| Countries | One or more | One per request |
| Results | Paged, most relevant first | Highest score first, not paged (testing returned up to 10) |
| Score | No | matchScoreConfidence and a breakdown per field |
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.
GET /companies/match?country=GB&name=Example Trading Limited&postCode=AB1 2CD&matchThreshold=900
Authorization: Bearer <token>| Parameter | Required | Notes |
|---|---|---|
country | Yes | One country code, for example GB. Not case sensitive. Send a single, valid code |
name | Yes | The company name. Remove any double quotes (") first. See Names with double quotes |
matchThreshold | Yes | The lowest score to return, from 890 to 999. A value below 890 returns 400 |
regNo, vatNo | No | Registration and VAT numbers improve the match when you have them |
houseNo, street, city, postCode, province | No | The address, in as much detail as you have |
phoneNo | No | The phone number, in the local format |
reference1, reference2, reference3 | No | Your own free-text references |
callRef | No | Your 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.
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 yourmatchThreshold.matchScoreExplainPlan: a grade for each field you sent, for exampleAfor an exact match andOfor 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
postcodehere, with a lower-casec. In Company Search results it'spostCode.
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": []
}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.
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."
}| Cause | details |
|---|---|
matchThreshold below 890, or not a number | Invalid value for query parameter matchThreshold. Expected minimum value 890. |
matchThreshold missing | Required query parameter matchThreshold not specified |
name missing | Required query parameter name not specified |
country missing | Missing required request parameters: [country] |
A missing or invalid token returns 401 with {"error": "Invalid token."}.
| Resource | Description |
|---|---|
| Company Search and Report Workflow | Searching for companies and ordering their reports |
| Confidence Match Search endpoint reference | Every parameter and response field |