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

Request Fields

Field
Type
Description
Nullable
goal_id
string
Goal ID
Yes
pids
array
List of Publisher Long ID's
Yes
crev
integer
Override Default Revenue (0,1)
Yes
payout
float
Payout
Yes
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}/{PAYOUT-ID} \
3
-H 'Accept: */*' \
4
-H 'Content-Type: application/json' \
5
-H 'Host: api.trackier.com' \
6
-H 'X-Api-Key: {API-KEY}' \
7
-H 'content-length: 150' \
8
-b '__cfduid=de429619278fbd4b65dbadb6a65cea3d41551186229; PHPSESSID=vosaiu4kd28qno7gkfm4gvl3k6' \
9
-d '{
10
"goal_id": "5ce689b2b6920d0a303633f4",
11
"pids": ["57c6c75934243d930c8b4581"],
12
"crev": 1,
13
"revenue": 20,
14
"payout": 2,
15
"coverage": ["US", "IN"]
16
}'
Copied!

Response body

1
{
2
"success": true,
3
"message": "Publisher Specific Payout Updated 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