> For the complete documentation index, see [llms.txt](https://api-portal.novapost.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-portal.novapost.com/changelog-1/documentation/offline-reference-guide-for-clients-containing-the-list-of-settlements-in-ukraine-where-shipment-del.md).

# Offline reference guide for clients containing the list of settlements in Ukraine where shipment del

| **Method name**  | Settlement Prohibited Issuance Dictionary                                                                                 |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------- |
| **HTTP Method**  | Returns a manifest with links to offline files containing settlements where shipment is prohibited to deliver in Ukraine. |
| **Route**        | GET `/api.novapost.pl/v.1.0/dictionary/settlements/prohibited-issuance`                                                   |
| **Autorization** | `Authorization: JWT`                                                                                                      |

#### Description <a href="#description" id="description"></a>

This API provides a daily-updated manifest of Ukrainian settlements where shipment delivery is prohibited. The manifest includes links to localized, gzipped JSON files with detailed settlement information and prohibition flags.

The files are available in both Ukrainian and English for localization support.

The files are updated each day at 5:00 UTC.

**Features:**

* Returns a JSON manifest with URLs to the updated settlement lists.
* Each list is a gzipped JSON file (`.json.gz`).
* Each file is localized (`locale="uk"` for Ukrainian, `locale="en"` for English).
* Settlement records include administrative region, coordinates, postal codes, alternative names, and prohibition flags.

#### Request headers <a href="#request-headers" id="request-headers"></a>

| Header        | Type   | Required | Description                                 |
| ------------- | ------ | -------- | ------------------------------------------- |
| Authorization | string | Yes      | `Bearer <token>`. Auth token of the client. |

#### Response Example  <a href="#response-example" id="response-example"></a>

<https://api.novapost.pl/v.1.0/dictionary/settlements/prohibited-issuance>

```
{
    "unix_time": 1766120417,
    "urls": [
        "https://api-cdn.novapost.com/dictionary/settlements/prohibited-issuance/en/settlements.json.gz",
        "https://api-cdn.novapost.com/dictionary/settlements/prohibited-issuance/uk/settlements.json.gz"
    ]
}
```

Use the URLs provided in the manifest to download the latest settlement lists for each supported locale.

#### Example of settlement structure in JSON (`en` locale) <a href="#example-of-settlement-structure-in-json-en-locale" id="example-of-settlement-structure-in-json-en-locale"></a>

```
[
  {
    "id": 108335,
    "name": "urban villagе Abrykosivka",
    "country": {
      "code": "UA",
      "name": "Ukraine"
    },
    "region": {
      "id": 964,
      "name": "Oleshkivskyi raion",
      "parent": {
        "id": 417,
        "name": "Khersonska oblast"
      }
    },
    "latitude": 46.488153,
    "longitude": 33.071226,
    "postCode1": "75134",
    "postCode2": "75134",
    "alternativeNames": [
      "abrykosivka",
      "селище абрикосівка",
      "selishche abrikosivka",
      "поселок абрикосовка",
      "poselok abrikosovka",
      "urban villagе abrykosivka",
      "urban village abrykosivka"
    ],
    "externalId": "0ddee0f8-4b3a-11e4-ab6d-005056801329",
    "prohibitedSending": false,
    "prohibitedIssuance": true
  }
  ]
```

#### Schema <a href="#schema" id="schema"></a>

Settlement Object Schema

#### Acceptable HTTP status codes response <a href="#acceptable-http-status-codes-response" id="acceptable-http-status-codes-response"></a>

| **HTTP-code** | **Status** | **Description**                                           |
| ------------- | ---------- | --------------------------------------------------------- |
| 200           | OK         | Request successful. The server has responded as required. |
| 404           | Not Found  | ErrorMessage: "Action\_not\_available"                    |

#### cURL <a href="#curl" id="curl"></a>

```
curl --location 'https://api-stage.novapost.pl/v.1.0/dictionary/settlements/prohibited-issuance' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InByaXZhdGU6MmU1OWI1ZjEtYzIwYS00MWFlLTk3N2ItYzU5MWJiZmY2ODA5IiwidHlwIjoiSldUIn0.eyJhdF9oYXNoIjoiRG9SNVU5MmNaakRQT0dUbDJuWU94QSIsImF1ZCI6WyJmZWU5dVlpYUFoVzBvcG9vLmF1dGguYXBwcy5ub3ZhcG9zdC5jb20iXSwiYXV0aF90aW1lIjoxNzY2NDkxMTg3LCJjb3VudHJ5X2NvZGUiOiJVQSIsImVtYWlsIjoiIiwiZXhwIjoxNzY3MDk2MDI5LCJpYXQiOjE3NjY0OTEyMjksImlzcyI6Imh0dHBzOi8vYXV0aC1zdGFnZS5ub3ZhcG9zdC5jb20vIiwianRpIjoiZDVkOWZi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NtDnK-fwY'
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api-portal.novapost.com/changelog-1/documentation/offline-reference-guide-for-clients-containing-the-list-of-settlements-in-ukraine-where-shipment-del.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
