Skip to content
Last updated

Additional Search and Report Options

Overview

This document describes optional endpoints that complement the core company search and report workflow.

These endpoints provide additional functionality for:

  • Retrieving country-specific report schemas
  • Checking available report languages before requesting a report

Company Report Response Schemas

This endpoint retrieves the response schema for a company report in a specific country. It provides a detailed breakdown of the property structure for reports from that country.

Use this endpoint to:

  • Understand report structure before requesting data
  • Validate expected response fields
  • Map report data to your system
  • Support developer onboarding

Endpoint

GET /companies/schema/{countryCode}

Path Parameters

ParameterTypeDescription
countryCodestringISO2 country code (e.g., GB, US, DE)

Query Parameters

ParameterTypeRequiredDescription
sectionstringNoSection to retrieve (e.g., CompanyReportResponse)

Example Request

GET /companies/schema/US?section=CompanyReportResponse
Authorization: Bearer <token>

Example Response

{
  "schema": {
    "companyName": "string",
    "registrationNumber": "string",
    "address": "object",
    "financials": "object"
  }
}

Common Errors

StatusCause
400Invalid country code or section parameter
401Invalid or expired authentication token
404Schema not found for specified country or section

Available Company Report Languages

This endpoint retrieves the available report languages for a specific country. Use this to determine which language options are supported before requesting a company report.

Endpoint

GET /access/countries/{countryCode}/reportLanguages

Path Parameters

ParameterTypeDescription
countryCodestringISO2 country code (e.g., GB, US, BR)

Example Request

GET /access/countries/BR/reportLanguages
Authorization: Bearer <token>

Example Response

{
  "reportLanguages": [
    "PT"
  ],
  "correlationId": "e90e0934-06d9-4cf8-94a5-8e1fa568bd02"
}

Response Fields

FieldTypeDescription
reportLanguagesstring[]Array of available language codes for reports in this country
correlationIdstringUnique identifier for support tracking

Common Errors

StatusCause
400Invalid country code format
401Invalid or expired authentication token
404Country not found or not supported

Usage Guidance

When to Use Report Schemas

Check the report schema when:

  • Integrating with the API for the first time
  • Building data mapping for a new country
  • Validating response structure in automated tests
  • Documenting expected fields for downstream systems

When to Use Report Languages

Check available languages when:

  • Building a multi-language user interface
  • Supporting international users
  • Determining default language for report requests
  • Validating language parameter before requesting reports

ResourceDescription
Company Search and Report WorkflowCore workflow for searching companies and retrieving reports
AuthenticationHow to authenticate with the API
Error CodesComplete error code reference