# API de conversiones

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

:link:[ <mark style="color:azul;">**Haga clic para probar la API de Conversiones**</mark> ](https://offer18.readme.io/reference/conversion-api)

### **Parámetros comunes**

<table data-header-hidden><thead><tr><th width="282.21480547854435">Consulta</th><th width="191.2954426994595"> </th><th> </th></tr></thead><tbody><tr><td><strong>Consulta</strong></td><td><strong>Tipo</strong></td><td><strong>Descripción</strong>  </td></tr><tr><td>mid</td><td>Entero</td><td>ID de cuenta de la red</td></tr><tr><td>api-key</td><td>Cadena</td><td>Clave API de la red</td></tr><tr><td>secret-key</td><td>Cadena</td><td>Clave secreta de la red</td></tr></tbody></table>

***

### Filtros

| **Cuerpo** | **Tipo** | **Descripción**                                                                          |
| ---------- | -------- | ---------------------------------------------------------------------------------------- |
| tid        | Cadena   | <p>Valores separados por comas<br>(Límite <strong>100</strong>)</p>                      |
| status     | Entero   | <p>Valores permitidos<br><strong>1: Aprobar</strong><br><strong>3: Rechazar</strong></p> |
| event      | Cadena   | Opcional                                                                                 |
| adv\_sub1  | Cadena   | Opcional                                                                                 |
| adv\_sub2  | Cadena   | Opcional                                                                                 |
| adv\_sub3  | Cadena   | Opcional                                                                                 |
| adv\_sub4  | Cadena   | Opcional                                                                                 |
| adv\_sub5  | Cadena   | Opcional                                                                                 |

***

### **Ejemplo de solicitud API**

![](/files/55800b5a641067198ca19f2caa6db41989fe0c2e)

***

### **Respuesta de la API**

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

{% hint style="warning" %}
Las conversiones que sean anteriores a **4 meses** no se permiten cambiar de estado.
{% endhint %}

***

{% hint style="info" %}
**Para interacciones seguras, siempre llame a la API desde el lado del 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/es/red/api-de-la-red/api-de-conversiones.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.
