> For the complete documentation index, see [llms.txt](https://piqpay.gitbook.io/merchant-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://piqpay.gitbook.io/merchant-integration/ru/kollbek/podpiska-na-kollbeki.md).

# Подписка на коллбэки

Для получения коллбэка необходимо настроить подписки для бренда (Business office > Merchant brands > выберите нужный бренд > Subscriptions > кнопка ‘Create subscription’).&#x20;

<figure><img src="/files/I27ygkb3sBv6Z5Psj7pq" alt=""><figcaption></figcaption></figure>

После этого вы будете получать коллбэк для созданных ордеров/выводов при изменении их статусов. Вы также можете указать URL-адрес в поле callbackUrl в теле запроса. В этом случае коллбэк будет отправлен на него, а не на URL-адрес, указанный на вкладке «Subscriptions». Однако  при этом  все равно  нужно настроить подписку на коллбэки в вашем аккаунте в бизнес-офисе.

Чтобы ответить на коллбэк, необходимо отправить короткое сообщение (например, success: true) со статусом 200. В противном случае мы будем отправлять вам коллбэк 4 раза (каждые 20 секунд) или до тех пор, пока вы не отправите ответ со статусом 200.

В JSON-файле коллбэка есть поле «type», в котором хранится текущий статус ордера/вывода.

<br>


---

# 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://piqpay.gitbook.io/merchant-integration/ru/kollbek/podpiska-na-kollbeki.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.
