URL
http://[platform_URL]/api/manager/get-advertiser-info/[Advertiser_ID]
Input Parameters
Field Name | Required | Description |
---|---|---|
api-key | Yes | Ask your Admin for API activation. API Key could be found on your Profile page. |
Output Parameters
Field Name | Description |
---|---|
id | Advertiser ID |
login | Advertiser login email |
account | Advertiser balance value |
name | Company name |
status | Advertiser Status (1=Active, 2=Pending, 3=Rejected) |
fname | First Name |
lname | Last Name |
phone | Phone number |
Advertiser email (the same as login) | |
country_id | The Country ID |
region | Region |
address | Address |
city | City |
postal | Postal Code |
im | Messenger login |
im_type | The type of messenger (1=AIM, 2=MSN, 3=YAHOO, 4=ICQ, 5=SKYPE) |
payment_terms | Payment terms (1=NET 0, 2=NET 7, 3=NET 14, 4=NET 30, 5=NET 60) |
payment_type | Payment method (1=Bank Wire, 2=WebMoney, 3=PayPal) |
payment_details | Details (Account number, WebMoney wallet, ID etc.) |
notifications | Send email notifications (0=Do not send, 1=Send) |
image | Image name |
ip | User IP |
last_payment | The date of last received payout (yyyy-mm-dd hh:mm:ss) |
last_seen | The date of last login (yyyy-mm-dd hh:mm:ss) |
added | The date of profile creation (yyyy-mm-dd hh:mm:ss) |
access_token | The value of the Affiliate API token (if enabled) |
api_enabled | API (1=enabled, 2=disabled) |
unsubscribe_token | The value of unsubscribe token (for email unsubscribe) |
subscription_status | The status of email subscription (1=Active, 2=inactive) |
Custom fields section | |
type | Custom field's type (1=Short text, 2=long text, 3=Yes/No checkbox) |
field | The custom field's variable name |
title | The custom field's title |
description | The custom field's description |
value | The custom field's value - user's input. For type "3": 1=Yes, 2=No |
Sample
Request
http://demo.scaleo-up.com/api/manager/get-advertiser-info/3?api-key=9eb500a476603546a779e6418117ef0403aa3f64
Response
{
"code": 0,
"status": 200,
"advertiserInfo": [
{
"id": 3,
"login": "gregg.l@scaleo-up.com",
"account": -289.02,
"name": "Potato Team LTD",
"status": 1,
"fname": "Greg",
"lname": "Lifter",
"phone": "44445654443",
"email": "gregg.l@scaleo-up.com",
"country_id": 3,
"region": "Arizona",
"address": "111 Woodruff St",
"city": "Bradley",
"postal": "",
"im": "murzilka",
"im_type": 5,
"payment_terms": 4,
"payment_type": 1,
"payment_details": "1234",
"notifications": 0,
"image": "589af3085dea5.png",
"ip": "",
"last_payment": null,
"last_seen": "2018-02-01 00:56:44",
"added": "2017-02-08 13:29:28",
"unsubscribe_token": "d7962ae7c4a99e83007c22825649fe98",
"subscription_status": 1,
"custom_fields": [
{
"type": "3",
"field": "custom_2",
"title": "Check this to start",
"description": "",
"value": "1"
},
{
"type": "1",
"field": "custom_3",
"title": "Your code word here",
"description": "",
"value": "Bronson"
},
{
"type": "2",
"field": "custom_4",
"title": "Describe yourself",
"description": "",
"value": ""
}
],
}
],
}