# Генерация уникальных идентификаторов для сообщений

В сообщениях ISO20022 используются уникальные идентификаторы. Например, идентификатор сообщения, сквозной идентификатор цепочки транзакций, идентификатор транзакции и т.д. (MsgId, EndToEndId, TxId и т.д.).

> Идентификатор должен генерироваться криптографически стойким генератором в виде случайной строки длиной 24 символа, состоящей из символов 0-9, A-Z, a-z, "\_", "-".
>
> *Шаблон идентификатора: \[0-9A-Za-z\_-]{24}*

{% hint style="info" %}
Рекомендуется в качестве первых трех символов использовать идентификатор банка, присвоенный АО "НПК" (предоставляется представителем АО "НПК"), а в качестве последующих восьми символов использовать дату операции.

*Например: BNK20241001-62141673\_aA5*
{% endhint %}


---

# Agent Instructions: 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://docs.npck.kz/mezhbankovskaya-sistema-perevodov-i-platezhei/generaciya-unikalnykh-identifikatorov-dlya-soobshenii.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.
