Create Custom Scrub Rate
curl --request POST \
--url https://api.eflow.team/v1/networks/custom/scrubrate \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"name": "Scrub Rate for Affiliate 7",
"custom_setting_status": "active",
"scrub_rate_percentage": 10,
"scrub_rate_status": "rejected",
"network_affiliate_id": 7,
"network_offer_id": 1
}
'import requests
url = "https://api.eflow.team/v1/networks/custom/scrubrate"
payload = {
"name": "Scrub Rate for Affiliate 7",
"custom_setting_status": "active",
"scrub_rate_percentage": 10,
"scrub_rate_status": "rejected",
"network_affiliate_id": 7,
"network_offer_id": 1
}
headers = {
"X-Eflow-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Eflow-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Scrub Rate for Affiliate 7',
custom_setting_status: 'active',
scrub_rate_percentage: 10,
scrub_rate_status: 'rejected',
network_affiliate_id: 7,
network_offer_id: 1
})
};
fetch('https://api.eflow.team/v1/networks/custom/scrubrate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eflow.team/v1/networks/custom/scrubrate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Scrub Rate for Affiliate 7',
'custom_setting_status' => 'active',
'scrub_rate_percentage' => 10,
'scrub_rate_status' => 'rejected',
'network_affiliate_id' => 7,
'network_offer_id' => 1
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Eflow-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eflow.team/v1/networks/custom/scrubrate"
payload := strings.NewReader("{\n \"name\": \"Scrub Rate for Affiliate 7\",\n \"custom_setting_status\": \"active\",\n \"scrub_rate_percentage\": 10,\n \"scrub_rate_status\": \"rejected\",\n \"network_affiliate_id\": 7,\n \"network_offer_id\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Eflow-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eflow.team/v1/networks/custom/scrubrate")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Scrub Rate for Affiliate 7\",\n \"custom_setting_status\": \"active\",\n \"scrub_rate_percentage\": 10,\n \"scrub_rate_status\": \"rejected\",\n \"network_affiliate_id\": 7,\n \"network_offer_id\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/custom/scrubrate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Scrub Rate for Affiliate 7\",\n \"custom_setting_status\": \"active\",\n \"scrub_rate_percentage\": 10,\n \"scrub_rate_status\": \"rejected\",\n \"network_affiliate_id\": 7,\n \"network_offer_id\": 1\n}"
response = http.request(request)
puts response.read_body{
"network_custom_scrub_rate_setting_id": 123,
"network_id": 123,
"network_offer_id": 123,
"network_affiliate_id": 123,
"name": "<string>",
"custom_setting_status": "active",
"scrub_rate_percentage": 123,
"scrub_rate_status": "rejected",
"time_created": 1734455015,
"time_saved": 1734455015,
"relationship": {
"affiliate": {
"network_affiliate_id": 123,
"network_id": 123,
"name": "<string>",
"account_status": "<string>",
"network_employee_id": 123,
"internal_notes": "<string>",
"has_notifications": true,
"network_traffic_source_id": 123,
"account_executive_id": 123,
"adress_id": 123,
"default_currency_id": "<string>",
"is_contact_address_enabled": true,
"enable_media_cost_tracking_links": true,
"time_created": 1734455015,
"time_saved": 1734455015,
"referrer_id": 123
},
"offer": {
"network_offer_id": 123,
"network_id": 123,
"network_advertiser_id": 123,
"network_offer_group_id": 123,
"name": "<string>",
"offer_status": "<string>",
"network_tracking_domain_id": 123,
"visibility": "<string>",
"currency_id": "<string>"
},
"ruleset": {},
"variables": {
"total": 123,
"entries": [
{
"network_custom_scrub_rate_setting_variable_id": 123,
"network_custom_scrub_rate_setting_id": 123,
"comparison_method": "<string>",
"variable": "<string>",
"variable_value": "<string>",
"variable_secondary_value": "<string>"
}
]
}
}
}Custom Scrub Rates (Throttle)
Create Custom Scrub Rate
POST
/
networks
/
custom
/
scrubrate
Create Custom Scrub Rate
curl --request POST \
--url https://api.eflow.team/v1/networks/custom/scrubrate \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"name": "Scrub Rate for Affiliate 7",
"custom_setting_status": "active",
"scrub_rate_percentage": 10,
"scrub_rate_status": "rejected",
"network_affiliate_id": 7,
"network_offer_id": 1
}
'import requests
url = "https://api.eflow.team/v1/networks/custom/scrubrate"
payload = {
"name": "Scrub Rate for Affiliate 7",
"custom_setting_status": "active",
"scrub_rate_percentage": 10,
"scrub_rate_status": "rejected",
"network_affiliate_id": 7,
"network_offer_id": 1
}
headers = {
"X-Eflow-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Eflow-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Scrub Rate for Affiliate 7',
custom_setting_status: 'active',
scrub_rate_percentage: 10,
scrub_rate_status: 'rejected',
network_affiliate_id: 7,
network_offer_id: 1
})
};
fetch('https://api.eflow.team/v1/networks/custom/scrubrate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eflow.team/v1/networks/custom/scrubrate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Scrub Rate for Affiliate 7',
'custom_setting_status' => 'active',
'scrub_rate_percentage' => 10,
'scrub_rate_status' => 'rejected',
'network_affiliate_id' => 7,
'network_offer_id' => 1
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Eflow-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eflow.team/v1/networks/custom/scrubrate"
payload := strings.NewReader("{\n \"name\": \"Scrub Rate for Affiliate 7\",\n \"custom_setting_status\": \"active\",\n \"scrub_rate_percentage\": 10,\n \"scrub_rate_status\": \"rejected\",\n \"network_affiliate_id\": 7,\n \"network_offer_id\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Eflow-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eflow.team/v1/networks/custom/scrubrate")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Scrub Rate for Affiliate 7\",\n \"custom_setting_status\": \"active\",\n \"scrub_rate_percentage\": 10,\n \"scrub_rate_status\": \"rejected\",\n \"network_affiliate_id\": 7,\n \"network_offer_id\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/custom/scrubrate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Scrub Rate for Affiliate 7\",\n \"custom_setting_status\": \"active\",\n \"scrub_rate_percentage\": 10,\n \"scrub_rate_status\": \"rejected\",\n \"network_affiliate_id\": 7,\n \"network_offer_id\": 1\n}"
response = http.request(request)
puts response.read_body{
"network_custom_scrub_rate_setting_id": 123,
"network_id": 123,
"network_offer_id": 123,
"network_affiliate_id": 123,
"name": "<string>",
"custom_setting_status": "active",
"scrub_rate_percentage": 123,
"scrub_rate_status": "rejected",
"time_created": 1734455015,
"time_saved": 1734455015,
"relationship": {
"affiliate": {
"network_affiliate_id": 123,
"network_id": 123,
"name": "<string>",
"account_status": "<string>",
"network_employee_id": 123,
"internal_notes": "<string>",
"has_notifications": true,
"network_traffic_source_id": 123,
"account_executive_id": 123,
"adress_id": 123,
"default_currency_id": "<string>",
"is_contact_address_enabled": true,
"enable_media_cost_tracking_links": true,
"time_created": 1734455015,
"time_saved": 1734455015,
"referrer_id": 123
},
"offer": {
"network_offer_id": 123,
"network_id": 123,
"network_advertiser_id": 123,
"network_offer_group_id": 123,
"name": "<string>",
"offer_status": "<string>",
"network_tracking_domain_id": 123,
"visibility": "<string>",
"currency_id": "<string>"
},
"ruleset": {},
"variables": {
"total": 123,
"entries": [
{
"network_custom_scrub_rate_setting_variable_id": 123,
"network_custom_scrub_rate_setting_id": 123,
"comparison_method": "<string>",
"variable": "<string>",
"variable_value": "<string>",
"variable_secondary_value": "<string>"
}
]
}
}
}Create a custom scrub rate (throttle) setting associated with a specific affiliate/offer combination. The scrub rate mechanism automatically filters a percentage of conversions based on the configured percentage, optional variable matching rules, and targeting ruleset. Filtered conversions are either rejected or placed on hold depending on the configured scrub action.
Authorizations
Body
application/json
Targeting ruleset for this custom scrub rate setting. Allows you to restrict when this scrub rate is applied based on geographic, device, browser, and connection criteria. See the Ruleset guide for details.
Response
200 - application/json
Was this page helpful?
