searchAddresses (v1)

Search addresses via provider

Overview

Internal endpoint called by address-search-api to search for addresses using the underlying provider. The connector transforms the standardised request to provider-specific format and returns standardised results.

GET (/internal/v1/address-suggestions)

Parameters

  • address (query) (required): Partial address search query (minimum 3 characters recommended)
  • country (query): ISO alpha-2 country code to limit search scope
  • limit (query): Maximum number of suggestions to return
  • language (query): ISO alpha-2 language code for address formatting and display preferences. Affects how addresses are formatted and returned by the provider (e.g., “en”, “et”, “fr”). Not all providers support all languages - unsupported languages will fallback to provider defaults.

Responses

200 OK

400 Bad Request

500 Internal Server Error

Architecture

3 properties
suggestions array [object]
required

List of address suggestions from provider

5 properties
code string
required

Standard error code. Connectors should translate provider errors to these codes: - INVALID_REQUEST - Bad request parameters - PROVIDER_ERROR - Provider returned an error - PROVIDER_UNAVAILABLE - Cannot reach provider - RATE_LIMIT_EXCEEDED - Provider rate limit hit - AUTHENTICATION_FAILED - Provider authentication failed - ADDRESS_NOT_FOUND - Address ID not found - INTERNAL_ERROR - Connector internal error

message string
required

Human-readable error message

requestId string

Unique request identifier for debugging

providerErrorCode string

Original provider-specific error code (for debugging)

providerErrorMessage string

Original provider error message (for debugging)

5 properties
code string
required

Standard error code. Connectors should translate provider errors to these codes: - INVALID_REQUEST - Bad request parameters - PROVIDER_ERROR - Provider returned an error - PROVIDER_UNAVAILABLE - Cannot reach provider - RATE_LIMIT_EXCEEDED - Provider rate limit hit - AUTHENTICATION_FAILED - Provider authentication failed - ADDRESS_NOT_FOUND - Address ID not found - INTERNAL_ERROR - Connector internal error

message string
required

Human-readable error message

requestId string

Unique request identifier for debugging

providerErrorCode string

Original provider-specific error code (for debugging)

providerErrorMessage string

Original provider error message (for debugging)