Create Payout
HTTP method
End Point
POST
/campaign/pub-payout/{CAMPAIGN-ID}

Request Fields

Field
Type
Description
Nullable
goal_id
string
Goal ID
No
pids
array
List of Publisher Long ID's
No
crev
integer
Override Default Revenue (0,1)
No
payout
float
Payout
No
revenue
float
Revenue (Required if crev is 1)
Yes
coverage
array
List of GEOs
Yes

Example Request

1
curl -X POST \
2
http://api.trackier.com/campaign/pub-payout/{CAMPAIGN-ID} \
3
-H 'Accept: */*' \
4
-H 'Content-Type: application/json' \
5
-H 'Host: api.trackier.com' \
6
-H 'X-Api-Key: {API-KEY}' \
7
-d '{
8
"goal_id": "5ce689b2b6920d0a303633f4",
9
"pids": ["57c6c75934243d930c8b4581"],
10
"crev": 1,
11
"revenue": 20,
12
"payout": 2,
13
"coverage": ["US", "IN"]
14
}'
Copied!

Response body

1
{
2
"success": true,
3
"message": "Publisher Specific Payout Created Successfully",
4
"data": {
5
"payouts": [
6
{
7
"ad_id": "5c865f33b6920d5fb344418e",
8
"goal_id": "5ce689b2b6920d0a303633f4",
9
"user_id": "57c6c75934243d930c8b4581",
10
"rate": 2,
11
"coverage": [
12
"US",
13
"IN"
14
],
15
"pids": [
16
"57c6c75934243d930c8b4581"
17
],
18
"crev": 1,
19
"_id": "5ce9234adc713827912df235"
20
}
21
]
22
}
23
}
Copied!
Last modified 2yr ago