> 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-1/novii-parametr-insurancecurrencycode-dlya-vidpravlen.md).

# Новий параметр InsuranceCurrencyCode для відправлень

**Endpoint:** `POST / PUT v.1.0/shipments`

Ми спростили процес декларування оціночної вартості (insuranceCost) для міжнародних відправлень.

**Що нового?**

Раніше значення insuranceCost потрібно було обов'язково вказувати у валюті країни відправника. Це означало, що клієнти, які відправляють з Європи чи інших регіонів, мали самостійно конвертувати оголошену вартість перед створенням запиту.

Тепер у масиві parcels доступний новий опціональний параметр `insuranceCurrencyCode`. Він дозволяє вказати валюту оціночної вартості напряму — а наша система виконає конвертацію автоматично.

**Як це працює:**

* Якщо `insuranceCurrencyCode` **не передано** — все працює як раніше. Система очікує `insuranceCost` у валюті країни відправника.
* Якщо `insuranceCurrencyCode` **передано** — система автоматично конвертує оголошену вартість у валюту країни відправника за актуальним курсом. Жодних додаткових кроків з вашого боку.

**Переваги:**

* Не потрібно реалізовувати логіку конвертації валют на своєму боці.
* Декларуйте вартість у валюті, яка є зручною для вашого бізнесу (EUR, USD, CZK тощо).
* Менше помилок інтеграції через невідповідність валют.

**Приклад:**

Відправлення з Молдови (MD) з оціночною вартістю у доларах США:

```
{
  "parcels": [
    {
      "cargoCategory": "parcel",
      "parcelDescription": "Electronics accessories",
      "insuranceCost": 25.50,
      "insuranceCurrencyCode": "USD",
      "rowNumber": 1,
      "width": 300,
      "length": 400,
      "height": 150,
      "actualWeight": 1500
    }
  ],
  "invoice": {
    "incoterm": "DAP",
    "currency": "USD",
    "exportReason": "Selling",
    "cost": 25.50,
    "items": [
      {
        "id": "1",
        "hsCode": "85177900",
        "name": "Phone case",
        "nameEng": "Phone case",
        "material": "plastic",
        "materialEng": "plastic",
        "measurementCode": "pieces",
        "amount": 1,
        "cost": 25.50,
        "actualWeight": 1500
      }
    ]
  }
}
```

У цьому прикладі система автоматично конвертує 25.50 USD у молдавський лей (MDL) перед обробкою. Клієнту не потрібно знати чи розраховувати обмінний курс.

> **Примітка:** Якщо insuranceCurrencyCode використовується, усі об'єкти в масиві parcels повинні містити однаковий код валюти.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://api-portal.novapost.com/changelog-1/documentation-1/novii-parametr-insurancecurrencycode-dlya-vidpravlen.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
