# API de Conversão

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

:link:[ <mark style="color:azul;">**Clique para Testar a API de Conversão**</mark> ](https://offer18.readme.io/reference/conversion-api)

### **Parâmetros Comuns**

<table data-header-hidden><thead><tr><th width="282.21480547854435">Query</th><th width="191.2954426994595"> </th><th> </th></tr></thead><tbody><tr><td><strong>Query</strong></td><td><strong>Tipo</strong></td><td><strong>Descrição</strong>  </td></tr><tr><td>mid</td><td>Inteiro</td><td>ID da Conta da Rede</td></tr><tr><td>api-key</td><td>String</td><td>Chave de API da Rede</td></tr><tr><td>secret-key</td><td>String</td><td>Chave Secreta da Rede</td></tr></tbody></table>

***

### Filtros

| **Corpo** | **Tipo** | **Descrição**                                                                            |
| --------- | -------- | ---------------------------------------------------------------------------------------- |
| tid       | String   | <p>Valores Separados por Vírgula<br>(Limite <strong>100</strong>)</p>                    |
| status    | Inteiro  | <p>Valores permitidos<br><strong>1: Aprovar</strong><br><strong>3: Rejeitar</strong></p> |
| event     | String   | Opcional                                                                                 |
| adv\_sub1 | String   | Opcional                                                                                 |
| adv\_sub2 | String   | Opcional                                                                                 |
| adv\_sub3 | String   | Opcional                                                                                 |
| adv\_sub4 | String   | Opcional                                                                                 |
| adv\_sub5 | String   | Opcional                                                                                 |

***

### **Exemplo de Requisição API**

![](https://4294454144-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FEP46x2fmzv7WPqlQ8y3n%2Fimage.png?alt=media\&token=5d68afff-f049-48b8-92b0-fc2f1a18e297)

***

### **Resposta da API**

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

{% hint style="warning" %}
Conversões que são mais antigas que **4 meses** não podem ter o status alterado.
{% endhint %}

***

{% hint style="info" %}
**Para interações seguras, sempre chame a API a partir do lado do servidor.**
{% 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/pt/rede/api-da-rede/api-de-conversao.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.
