# Affiliate & Advertiser Create API

### **Common Parameters**

<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>Type</strong></td><td><strong>Description</strong>  </td></tr><tr><td>mid</td><td>Integer</td><td>Network Account ID </td></tr><tr><td>api-key</td><td>String</td><td>Network API Key </td></tr><tr><td>secret-key</td><td>String</td><td>Network Secret Key </td></tr></tbody></table>

### **Action**

<table data-header-hidden><thead><tr><th width="207.16379474883627"></th><th width="194.99924751175493"></th><th></th></tr></thead><tbody><tr><td><strong>Query</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>action</td><td>String</td><td><strong>Allowed Values:</strong><br>create / update / delete</td></tr><tr><td>affiliate_id</td><td>Integer</td><td>Required in Affiliate Update and Delete</td></tr><tr><td>advertiser_id</td><td>Integer</td><td>Required in Advertiser Update and Delete</td></tr></tbody></table>

***

### List of Data Fields

<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>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>first_name</td><td>String</td><td>Affiliate / Advertiser's first name</td></tr><tr><td>last_name</td><td>String</td><td>Affiliate / Advertiser's last name</td></tr><tr><td>signup_ip</td><td>IPv4 / IPv6</td><td>IP address of the device on which API is being used</td></tr><tr><td>email</td><td>String</td><td>Affiliate / Advertiser's email</td></tr><tr><td>password</td><td>String</td><td>Password for future login</td></tr><tr><td>mobile</td><td>int</td><td>Affiliate / Advertiser's Mobile Number</td></tr><tr><td>company</td><td>String</td><td>Company Name</td></tr><tr><td>address</td><td>String</td><td>Address of Affiliate / Advertiser</td></tr><tr><td>city</td><td>String</td><td>City of the Affiliate / Advertiser</td></tr><tr><td>state</td><td>String</td><td>State of the Affiliate / Advertiser</td></tr><tr><td>state_code</td><td>String</td><td>State code of the Affiliate / Advertiser</td></tr><tr><td>zip</td><td>String</td><td>Zip code of the Affiliate / Advertiser</td></tr><tr><td>country</td><td>String</td><td>Country of the Affiliate / Advertiser</td></tr><tr><td>im_type</td><td>String</td><td>Social media for instant messaging</td></tr><tr><td>im_value</td><td>String</td><td>Social Media Profile </td></tr><tr><td>status</td><td>String</td><td><strong>Allowed values:</strong><br>Approved, Pending, Rejected</td></tr></tbody></table>

***

## Affiliate Create

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

:link: [<mark style="color:blue;">**Click to Test Affiliate Create API**</mark>](https://offer18.readme.io/reference/affiliate-create-api)

#### Example API Request

<figure><img src="/files/XT5e4fSszbYSyA2zUlSl" alt=""><figcaption></figcaption></figure>

#### **API Response**

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

***

## Advertiser Create&#x20;

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

:link: [<mark style="color:blue;">**Click to Test Advertiser Create API**</mark>](https://offer18.readme.io/reference/advertiser-create-api)

#### Example API Request

<figure><img src="/files/3OvfX8TLInZXfwaNxT6m" alt=""><figcaption></figcaption></figure>

#### **API Response**

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

{% hint style="info" %}
**For secure interactions, always call the API from the server-side.**
{% 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/network/network-api/affiliate-and-advertiser-create-api.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.
