Skip to content

Company Search Criteria

Request

Returns the Company Search parameters you can use for one or more countries, as combinations (criteriaSets). Each combination lists the parameters that can be sent together, with the rules for each value: whether it's required, its length, a pattern, or the values allowed. With more than one country, only the combinations the countries have in common are returned. Use it before Company Search: a search that mixes parameters from different combinations returns 400 "Specified criteria combination is not allowed". For more information, see the Company Search and Report guide.

Security
bearerToken
Query
countriesstringrequired

One country code, or a comma-separated list of codes, in ISO 3166-1 alpha-2 format, for example GB or GB,US. Not case sensitive. Don't put spaces after the commas: GB, US returns 400. PLC returns the criteria for searching listed companies across all countries.

Example:countries=GB
curl -i -X GET \
  'https://connect.sandbox.creditsafe.com/v1/companies/searchcriteria?countries=GB' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Success. Returns the search combinations for the countries.

Bodyapplication/json
correlationIdstringrequired

A unique ID assigned to this request.

Example:"6f1c2a9e-3b4d-4e5f-8a7b-9c0d1e2f3a4b"
countriesArray of stringsrequired

The countries the criteria are for, as requested.

Example:
[ "GB" ]
languagesArray of strings

The languages you can send in the Company Search language parameter for these countries, for example EN, or EN and JA for JP. Not returned for every country.

Example:
[ "EN" ]
criteriaSetsArray of objects(CreditsafeGlobalDataSearchCriteriaSchema)required

The combinations of parameters you can search with. With more than one country, only the combinations the countries have in common are returned.

Response
{ "correlationId": "6f1c2a9e-3b4d-4e5f-8a7b-9c0d1e2f3a4b", "countries": [ "GB" ], "languages": [ "EN" ], "criteriaSets": [ { … }, { … }, { … }, { … }, { … } ] }