# 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>

***

### 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>job_title</td><td>String</td><td>Job title of Affiliate / Advertiser</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_create
```

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

#### Example API Request

![](https://295230641-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)

#### **API Response**

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

***

## Advertiser Create&#x20;

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

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

#### Example API Request

![](https://295230641-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)

**API Response**

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

{% hint style="info" %}
**For secure interactions, always call the API from the server-side.**
{% endhint %}
