List all referral links
HTTP method
End Point
GET
/network/referral

Sample Request

1
curl -X GET -H "X-Api-Key: {key}" -H "Cache-Control: no-cache" "http://api.trackier.com/network/referral"
Copied!

Sample Response

Here user_id in each referral object represents the publisher ID i.e for which publisher this referral link will be used.
Eg: if referrals[0]._id = HMN, then the referral link for the publisher will be
1
http://{domain}.trackier.com/publisher/register.html?referral=HMN
Copied!
1
{
2
"success": true,
3
"data": {
4
"referrals": [
5
{
6
"user_id": "string",
7
"recurring": true,
8
"type": "percentage",
9
"base": "profit",
10
"rate": 30,
11
"_id": "string",
12
"live": true,
13
"created": "2017-02-02 20:55:34",
14
"modified": "2017-05-23 13:07:51",
15
"signUps": 1
16
},
17
{
18
"user_id": "string",
19
"recurring": true,
20
"type": "percentage",
21
"base": "profit",
22
"rate": 30,
23
"_id": "string",
24
"live": false,
25
"created": "2017-05-24 17:31:56",
26
"modified": "2017-05-24 17:44:52",
27
"signUps": 0
28
}
29
],
30
"publishers": [
31
{
32
"_id": "string",
33
"name": "Publisher Demo",
34
"username": "#publisherDemo"
35
},
36
{
37
"_id": "string",
38
"name": "test pub",
39
"username": "test pub"
40
},
41
{
42
"_id": "string",
43
"name": "Awesome User",
44
"username": "Awesome User"
45
}
46
]
47
}
48
}
Copied!