# API de Criação de Afiliado e Anunciante

### **Parâmetros Comuns**

<table data-header-hidden><thead><tr><th width="173.50289176535387">Query</th><th width="150"> </th><th width="426.2"> </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>

***

### Lista de Campos de Dados

<table data-header-hidden><thead><tr><th width="150"></th><th width="150"></th><th width="365.2"></th></tr></thead><tbody><tr><td><strong>Query</strong></td><td><strong>Tipo</strong></td><td><strong>Descrição</strong></td></tr><tr><td>first_name</td><td>String</td><td>Primeiro nome do Afiliado / Anunciante</td></tr><tr><td>last_name</td><td>String</td><td>Sobrenome do Afiliado / Anunciante</td></tr><tr><td>signup_ip</td><td>IPv4 / IPv6</td><td>Endereço IP do dispositivo no qual a API está sendo usada</td></tr><tr><td>email</td><td>String</td><td>Email do Afiliado / Anunciante</td></tr><tr><td>password</td><td>String</td><td>Senha para login futuro</td></tr><tr><td>mobile</td><td>int</td><td>Número de celular do Afiliado / Anunciante</td></tr><tr><td>company</td><td>String</td><td>Nome da Empresa</td></tr><tr><td>job_title</td><td>String</td><td>Cargo do Afiliado / Anunciante</td></tr><tr><td>address</td><td>String</td><td>Endereço do Afiliado / Anunciante</td></tr><tr><td>city</td><td>String</td><td>Cidade do Afiliado / Anunciante</td></tr><tr><td>state</td><td>String</td><td>Estado do Afiliado / Anunciante</td></tr><tr><td>state_code</td><td>String</td><td>Código do estado do Afiliado / Anunciante</td></tr><tr><td>zip</td><td>String</td><td>CEP do Afiliado / Anunciante</td></tr><tr><td>country</td><td>String</td><td>País do Afiliado / Anunciante</td></tr><tr><td>im_type</td><td>String</td><td>Mídia social para mensagens instantâneas</td></tr><tr><td>im_value</td><td>String</td><td>Perfil de Mídia Social </td></tr><tr><td>status</td><td>String</td><td><strong>Valores permitidos:</strong><br>Aprovado, Pendente, Rejeitado</td></tr></tbody></table>

***

## Criação de Afiliado

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

:link: [<mark style="color:azul;">**Clique para testar a API de Criação de Afiliado**</mark>](https://offer18.readme.io/reference/affiliate-create-api)

#### Exemplo de Requisição API

![](https://4294454144-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FPdH0W1DkdvelirkDgwBB%2FAffiliateCreateAPI.png?alt=media\&token=da557eab-2c5b-441a-bfac-259b11b65f04)

#### **Resposta da API**

```
{
    "status": "200",
    "affiliate_id": 0001,
    "email": "affiliate@affiliate_email.com",
    "password": "97b91464",
    "signup_ip": "1.1.1.1"
}
```

***

## Criação de Anunciante&#x20;

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

:link: [<mark style="color:azul;">**Clique para testar a API de Criação de Anunciante**</mark>](https://offer18.readme.io/reference/advertiser-create-api)

#### Exemplo de Requisição API

![](https://4294454144-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FzYvCWO5pSv4vfTXlD8Fl%2Fimage.png?alt=media\&token=b5e7a49b-8e7d-46de-ba51-b6454be0e3e7)

**Resposta da API**

```
{
    "status": "200",
    "advertiser_id": 00002,
    "email": "advertiser@advertiser_email.com",
    "password": "97b91464",
    "signup_ip": "1.1.1.1"
}
```

{% 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-criacao-de-afiliado-e-anunciante.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.
