# API конверсий

```
POST https://api.offer18.com/api/m/conversion
```

:link:[ <mark style="color:синий;">**Нажмите, чтобы протестировать Conversion API**</mark> ](https://offer18.readme.io/reference/conversion-api)

### **Общие параметры**

<table data-header-hidden><thead><tr><th width="282.21480547854435">Запрос</th><th width="191.2954426994595"> </th><th> </th></tr></thead><tbody><tr><td><strong>Запрос</strong></td><td><strong>Тип</strong></td><td><strong>Описание</strong>  </td></tr><tr><td>mid</td><td>Целое</td><td>ID аккаунта сети</td></tr><tr><td>api-key</td><td>Строка</td><td>API-ключ сети</td></tr><tr><td>secret-key</td><td>Строка</td><td>Секретный ключ сети</td></tr></tbody></table>

***

### Фильтры

| **Тело**  | **Тип** | **Описание**                                                                                |
| --------- | ------- | ------------------------------------------------------------------------------------------- |
| tid       | Строка  | <p>Значения, разделённые запятыми<br>(Ограничение <strong>100</strong>)</p>                 |
| status    | Целое   | <p>Допустимые значения<br><strong>1: Одобрить</strong><br><strong>3: Отклонить</strong></p> |
| event     | Строка  | Необязательно                                                                               |
| adv\_sub1 | Строка  | Необязательно                                                                               |
| adv\_sub2 | Строка  | Необязательно                                                                               |
| adv\_sub3 | Строка  | Необязательно                                                                               |
| adv\_sub4 | Строка  | Необязательно                                                                               |
| adv\_sub5 | Строка  | Необязательно                                                                               |

***

### **Пример запроса к API**

![](/files/53fbb2250f82e048ab797f6355967c279dee9321)

***

### **Ответ API**

```
{ 
    "status": "200",
    "affected": 2,
    "affected_tid": [ 
        "D-0001-v834hbsuf45gdfd", 
        "D-0001-p0345ns0v823h4" 
    ] 
}
```

{% hint style="warning" %}
Конверсии, которым больше чем **4 месяца** нельзя изменить статус.
{% endhint %}

***

{% hint style="info" %}
**Для безопасного взаимодействия всегда вызывайте API с сервера.**
{% 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://knowledgebase.offer18.com/ru/set/api-seti/api-konversii.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.
