# Канал 2way

## Прием запросов

Партнер реализовывает обработчик на своей стороне и сообщает URL на который следует направлять запросы с вызовами от абонентов.

## Прием запросов

<mark style="color:blue;">`GET`</mark> `https://online-retail-company.ru/receive`

Платформа SevenTech делает вызов в сторону Партнера и передает запрос абонента. Партнер должен предоставить ответ в синхронном режиме.

#### Path Parameters

| Name        | Type    | Description                                                     |
| ----------- | ------- | --------------------------------------------------------------- |
| clientId    | integer | Номер абонента в международном формате. Пример 79031234567      |
| message     | string  | Сообщение полученное от абонента в кодировке UTF-8 (urlencoded) |
| shortNumber | integer | Короткий номер использованный абонентом для отправки сообщения  |
| id          | integer | Уникальный идентификатор запроса                                |

{% tabs %}
{% tab title="200 Успешная обработка с синхронным ответом абоненту. В теле ответа передается текст отправки сообщения абоненту." %}

```
HTTP/1.1 200
Content-Length: 13
Content-Type: text/plain; charset = utf-8

Запрос принят
```

{% endtab %}

{% tab title="404 Ошибка обработки" %}

```
HTTP/1.1 404 Not Found
```

{% endtab %}

{% tab title="500 Ошибка обработки" %}

```
HTTP/1.1 500 Internal Server Error
Content-Length: 12
Content-Type: text/plain; charset = utf-8
<CR><LF>
System Error
```

{% endtab %}
{% endtabs %}

## Примеры вызовов

#### Прием СМС-сообщения от абонента 79031234567 на номер 2407 с ответом

```
GET https://online-retail-company.ru/receive?clientId=79031234567&message=KOD1234&shortNumber=2407&id=65535
HTTP/1.1 200
Content-Length: 13
Content-Type: text/plain; charset = utf-8

Запрос принят
```

#### &#x20;<img src="/files/-MLMxUKsrH9JmKsxaF98" alt="" data-size="original">&#x20;


---

# 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://legacy-docs.seven.tech/v1/http/2way.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.
