Suggest addresses
POST
/api/v1/catalog/addressesAddress suggestions in Poland.
This operation requires a geocoding provider. Missing configuration returns ADDRESS_PROVIDER_DISABLED, and a provider failure returns ADDRESS_PROVIDER_UNAVAILABLE.
Required scope listings:read
Request body
Schema AddressSuggestionRequest
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | min. characters 3 · max. characters 160 |
limit | integer | No | minimum 1 · maximum 8 · default 6 |
JSON Schema
{
"$ref": "#/components/schemas/AddressSuggestionRequest"
}Responses
200 Request completed successfully.application/jsonSchema AddressSuggestions
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | No | — |
JSON Schema
{
"$ref": "#/components/schemas/AddressSuggestions"
}429 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}502 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}503 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}Other API errors Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}401 A valid API key is required.403 The scope is missing or the production request does not use HTTPS.Related schemas
AddressSuggestionRequest
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 3,
"maxLength": 160
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 8,
"default": 6
}
},
"required": [
"query"
]
}AddressSuggestions
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"lat": {
"type": "number"
},
"lng": {
"type": "number"
},
"city": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"region": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"postalCode": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"street": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"houseNumber": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
}
}
}
}
}