Create Advertiser
curl --request POST \
--url https://api.eflow.team/v1/networks/advertisers \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"name": "DocTest Advertiser Create",
"account_status": "active",
"network_employee_id": 2,
"default_currency_id": "USD",
"reporting_timezone_id": 90,
"offer_id_macro": "oid",
"affiliate_id_macro": "affid",
"billing": {
"billing_frequency": "monthly",
"details": {
"day_of_month": 1
},
"default_invoice_is_hidden": true,
"tax_id": "123-45-6789",
"is_invoice_creation_auto": true,
"auto_invoice_start_date": "2026-04-01",
"invoice_amount_threshold": 100,
"invoice_generation_days_delay": 7,
"default_payment_terms": 30
},
"sales_manager_id": 2,
"internal_notes": "Test internal notes",
"labels": [
"test-label",
"doctest"
],
"verification_token": "abc123token",
"is_contact_address_enabled": true,
"contact_address": {
"address_1": "123 Main St",
"address_2": "Suite 100",
"country_code": "US",
"city": "New York",
"region_code": "NY",
"zip_postal_code": "10001"
},
"platform_name": "Shopify",
"platform_url": "https://shopify.com",
"platform_username": "testuser",
"accounting_contact_email": "accounting@test.com",
"settings": {
"exposed_variables": {
"affiliate_id": true,
"affiliate": true,
"sub1": true,
"sub2": false,
"sub3": false,
"sub4": false,
"sub5": false,
"sub6": false,
"sub7": false,
"sub8": false,
"sub9": false,
"sub10": false,
"source_id": true,
"offer_url": false
}
}
}
'import requests
url = "https://api.eflow.team/v1/networks/advertisers"
payload = {
"name": "DocTest Advertiser Create",
"account_status": "active",
"network_employee_id": 2,
"default_currency_id": "USD",
"reporting_timezone_id": 90,
"offer_id_macro": "oid",
"affiliate_id_macro": "affid",
"billing": {
"billing_frequency": "monthly",
"details": { "day_of_month": 1 },
"default_invoice_is_hidden": True,
"tax_id": "123-45-6789",
"is_invoice_creation_auto": True,
"auto_invoice_start_date": "2026-04-01",
"invoice_amount_threshold": 100,
"invoice_generation_days_delay": 7,
"default_payment_terms": 30
},
"sales_manager_id": 2,
"internal_notes": "Test internal notes",
"labels": ["test-label", "doctest"],
"verification_token": "abc123token",
"is_contact_address_enabled": True,
"contact_address": {
"address_1": "123 Main St",
"address_2": "Suite 100",
"country_code": "US",
"city": "New York",
"region_code": "NY",
"zip_postal_code": "10001"
},
"platform_name": "Shopify",
"platform_url": "https://shopify.com",
"platform_username": "testuser",
"accounting_contact_email": "accounting@test.com",
"settings": { "exposed_variables": {
"affiliate_id": True,
"affiliate": True,
"sub1": True,
"sub2": False,
"sub3": False,
"sub4": False,
"sub5": False,
"sub6": False,
"sub7": False,
"sub8": False,
"sub9": False,
"sub10": False,
"source_id": True,
"offer_url": False
} }
}
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: 'DocTest Advertiser Create',
account_status: 'active',
network_employee_id: 2,
default_currency_id: 'USD',
reporting_timezone_id: 90,
offer_id_macro: 'oid',
affiliate_id_macro: 'affid',
billing: {
billing_frequency: 'monthly',
details: {day_of_month: 1},
default_invoice_is_hidden: true,
tax_id: '123-45-6789',
is_invoice_creation_auto: true,
auto_invoice_start_date: '2026-04-01',
invoice_amount_threshold: 100,
invoice_generation_days_delay: 7,
default_payment_terms: 30
},
sales_manager_id: 2,
internal_notes: 'Test internal notes',
labels: ['test-label', 'doctest'],
verification_token: 'abc123token',
is_contact_address_enabled: true,
contact_address: {
address_1: '123 Main St',
address_2: 'Suite 100',
country_code: 'US',
city: 'New York',
region_code: 'NY',
zip_postal_code: '10001'
},
platform_name: 'Shopify',
platform_url: 'https://shopify.com',
platform_username: 'testuser',
accounting_contact_email: 'accounting@test.com',
settings: {
exposed_variables: {
affiliate_id: true,
affiliate: true,
sub1: true,
sub2: false,
sub3: false,
sub4: false,
sub5: false,
sub6: false,
sub7: false,
sub8: false,
sub9: false,
sub10: false,
source_id: true,
offer_url: false
}
}
})
};
fetch('https://api.eflow.team/v1/networks/advertisers', 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/advertisers",
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' => 'DocTest Advertiser Create',
'account_status' => 'active',
'network_employee_id' => 2,
'default_currency_id' => 'USD',
'reporting_timezone_id' => 90,
'offer_id_macro' => 'oid',
'affiliate_id_macro' => 'affid',
'billing' => [
'billing_frequency' => 'monthly',
'details' => [
'day_of_month' => 1
],
'default_invoice_is_hidden' => true,
'tax_id' => '123-45-6789',
'is_invoice_creation_auto' => true,
'auto_invoice_start_date' => '2026-04-01',
'invoice_amount_threshold' => 100,
'invoice_generation_days_delay' => 7,
'default_payment_terms' => 30
],
'sales_manager_id' => 2,
'internal_notes' => 'Test internal notes',
'labels' => [
'test-label',
'doctest'
],
'verification_token' => 'abc123token',
'is_contact_address_enabled' => true,
'contact_address' => [
'address_1' => '123 Main St',
'address_2' => 'Suite 100',
'country_code' => 'US',
'city' => 'New York',
'region_code' => 'NY',
'zip_postal_code' => '10001'
],
'platform_name' => 'Shopify',
'platform_url' => 'https://shopify.com',
'platform_username' => 'testuser',
'accounting_contact_email' => 'accounting@test.com',
'settings' => [
'exposed_variables' => [
'affiliate_id' => true,
'affiliate' => true,
'sub1' => true,
'sub2' => false,
'sub3' => false,
'sub4' => false,
'sub5' => false,
'sub6' => false,
'sub7' => false,
'sub8' => false,
'sub9' => false,
'sub10' => false,
'source_id' => true,
'offer_url' => false
]
]
]),
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/advertisers"
payload := strings.NewReader("{\n \"name\": \"DocTest Advertiser Create\",\n \"account_status\": \"active\",\n \"network_employee_id\": 2,\n \"default_currency_id\": \"USD\",\n \"reporting_timezone_id\": 90,\n \"offer_id_macro\": \"oid\",\n \"affiliate_id_macro\": \"affid\",\n \"billing\": {\n \"billing_frequency\": \"monthly\",\n \"details\": {\n \"day_of_month\": 1\n },\n \"default_invoice_is_hidden\": true,\n \"tax_id\": \"123-45-6789\",\n \"is_invoice_creation_auto\": true,\n \"auto_invoice_start_date\": \"2026-04-01\",\n \"invoice_amount_threshold\": 100,\n \"invoice_generation_days_delay\": 7,\n \"default_payment_terms\": 30\n },\n \"sales_manager_id\": 2,\n \"internal_notes\": \"Test internal notes\",\n \"labels\": [\n \"test-label\",\n \"doctest\"\n ],\n \"verification_token\": \"abc123token\",\n \"is_contact_address_enabled\": true,\n \"contact_address\": {\n \"address_1\": \"123 Main St\",\n \"address_2\": \"Suite 100\",\n \"country_code\": \"US\",\n \"city\": \"New York\",\n \"region_code\": \"NY\",\n \"zip_postal_code\": \"10001\"\n },\n \"platform_name\": \"Shopify\",\n \"platform_url\": \"https://shopify.com\",\n \"platform_username\": \"testuser\",\n \"accounting_contact_email\": \"accounting@test.com\",\n \"settings\": {\n \"exposed_variables\": {\n \"affiliate_id\": true,\n \"affiliate\": true,\n \"sub1\": true,\n \"sub2\": false,\n \"sub3\": false,\n \"sub4\": false,\n \"sub5\": false,\n \"sub6\": false,\n \"sub7\": false,\n \"sub8\": false,\n \"sub9\": false,\n \"sub10\": false,\n \"source_id\": true,\n \"offer_url\": false\n }\n }\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/advertisers")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"DocTest Advertiser Create\",\n \"account_status\": \"active\",\n \"network_employee_id\": 2,\n \"default_currency_id\": \"USD\",\n \"reporting_timezone_id\": 90,\n \"offer_id_macro\": \"oid\",\n \"affiliate_id_macro\": \"affid\",\n \"billing\": {\n \"billing_frequency\": \"monthly\",\n \"details\": {\n \"day_of_month\": 1\n },\n \"default_invoice_is_hidden\": true,\n \"tax_id\": \"123-45-6789\",\n \"is_invoice_creation_auto\": true,\n \"auto_invoice_start_date\": \"2026-04-01\",\n \"invoice_amount_threshold\": 100,\n \"invoice_generation_days_delay\": 7,\n \"default_payment_terms\": 30\n },\n \"sales_manager_id\": 2,\n \"internal_notes\": \"Test internal notes\",\n \"labels\": [\n \"test-label\",\n \"doctest\"\n ],\n \"verification_token\": \"abc123token\",\n \"is_contact_address_enabled\": true,\n \"contact_address\": {\n \"address_1\": \"123 Main St\",\n \"address_2\": \"Suite 100\",\n \"country_code\": \"US\",\n \"city\": \"New York\",\n \"region_code\": \"NY\",\n \"zip_postal_code\": \"10001\"\n },\n \"platform_name\": \"Shopify\",\n \"platform_url\": \"https://shopify.com\",\n \"platform_username\": \"testuser\",\n \"accounting_contact_email\": \"accounting@test.com\",\n \"settings\": {\n \"exposed_variables\": {\n \"affiliate_id\": true,\n \"affiliate\": true,\n \"sub1\": true,\n \"sub2\": false,\n \"sub3\": false,\n \"sub4\": false,\n \"sub5\": false,\n \"sub6\": false,\n \"sub7\": false,\n \"sub8\": false,\n \"sub9\": false,\n \"sub10\": false,\n \"source_id\": true,\n \"offer_url\": false\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/advertisers")
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\": \"DocTest Advertiser Create\",\n \"account_status\": \"active\",\n \"network_employee_id\": 2,\n \"default_currency_id\": \"USD\",\n \"reporting_timezone_id\": 90,\n \"offer_id_macro\": \"oid\",\n \"affiliate_id_macro\": \"affid\",\n \"billing\": {\n \"billing_frequency\": \"monthly\",\n \"details\": {\n \"day_of_month\": 1\n },\n \"default_invoice_is_hidden\": true,\n \"tax_id\": \"123-45-6789\",\n \"is_invoice_creation_auto\": true,\n \"auto_invoice_start_date\": \"2026-04-01\",\n \"invoice_amount_threshold\": 100,\n \"invoice_generation_days_delay\": 7,\n \"default_payment_terms\": 30\n },\n \"sales_manager_id\": 2,\n \"internal_notes\": \"Test internal notes\",\n \"labels\": [\n \"test-label\",\n \"doctest\"\n ],\n \"verification_token\": \"abc123token\",\n \"is_contact_address_enabled\": true,\n \"contact_address\": {\n \"address_1\": \"123 Main St\",\n \"address_2\": \"Suite 100\",\n \"country_code\": \"US\",\n \"city\": \"New York\",\n \"region_code\": \"NY\",\n \"zip_postal_code\": \"10001\"\n },\n \"platform_name\": \"Shopify\",\n \"platform_url\": \"https://shopify.com\",\n \"platform_username\": \"testuser\",\n \"accounting_contact_email\": \"accounting@test.com\",\n \"settings\": {\n \"exposed_variables\": {\n \"affiliate_id\": true,\n \"affiliate\": true,\n \"sub1\": true,\n \"sub2\": false,\n \"sub3\": false,\n \"sub4\": false,\n \"sub5\": false,\n \"sub6\": false,\n \"sub7\": false,\n \"sub8\": false,\n \"sub9\": false,\n \"sub10\": false,\n \"source_id\": true,\n \"offer_url\": false\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"network_advertiser_id": 67,
"network_id": 1,
"name": "DocTest Advertiser Create",
"account_status": "active",
"network_employee_id": 2,
"internal_notes": "Test internal notes",
"address_id": 1,
"is_contact_address_enabled": true,
"sales_manager_id": 2,
"is_expose_publisher_reporting_data": null,
"default_currency_id": "USD",
"platform_name": "Shopify",
"platform_url": "https://shopify.com",
"platform_username": "testuser",
"reporting_timezone_id": 90,
"accounting_contact_email": "accounting@test.com",
"verification_token": "abc123token",
"offer_id_macro": "oid",
"affiliate_id_macro": "affid",
"time_created": 1774618466,
"time_saved": 1774618466,
"relationship": {
"labels": {
"total": 2,
"entries": [
"doctest",
"test-label"
]
},
"users": {
"total": 0,
"entries": []
},
"account_manager": {
"first_name": "Justin",
"last_name": "Black",
"email": "jblack@example.com",
"work_phone": "9781243585",
"cell_phone": "",
"instant_messaging_id": 0,
"instant_messaging_identifier": ""
},
"contact_address": {
"address_id": 1,
"network_id": 1,
"address_1": "123 Main St",
"address_2": "Suite 100",
"city": "New York",
"region_code": "NY",
"country_id": 227,
"country_code": "US",
"zip_postal_code": "10001"
},
"sale_manager": {
"first_name": "Justin",
"last_name": "Black",
"email": "jblack@example.com",
"work_phone": "9781243585",
"cell_phone": "",
"instant_messaging_id": 0,
"instant_messaging_identifier": ""
}
},
"attribution_method": "last_touch",
"email_attribution_method": "last_affiliate_attribution",
"attribution_priority": "click"
}Advertisers
Create Advertiser
POST
/
networks
/
advertisers
Create Advertiser
curl --request POST \
--url https://api.eflow.team/v1/networks/advertisers \
--header 'Content-Type: application/json' \
--header 'X-Eflow-Api-Key: <api-key>' \
--data '
{
"name": "DocTest Advertiser Create",
"account_status": "active",
"network_employee_id": 2,
"default_currency_id": "USD",
"reporting_timezone_id": 90,
"offer_id_macro": "oid",
"affiliate_id_macro": "affid",
"billing": {
"billing_frequency": "monthly",
"details": {
"day_of_month": 1
},
"default_invoice_is_hidden": true,
"tax_id": "123-45-6789",
"is_invoice_creation_auto": true,
"auto_invoice_start_date": "2026-04-01",
"invoice_amount_threshold": 100,
"invoice_generation_days_delay": 7,
"default_payment_terms": 30
},
"sales_manager_id": 2,
"internal_notes": "Test internal notes",
"labels": [
"test-label",
"doctest"
],
"verification_token": "abc123token",
"is_contact_address_enabled": true,
"contact_address": {
"address_1": "123 Main St",
"address_2": "Suite 100",
"country_code": "US",
"city": "New York",
"region_code": "NY",
"zip_postal_code": "10001"
},
"platform_name": "Shopify",
"platform_url": "https://shopify.com",
"platform_username": "testuser",
"accounting_contact_email": "accounting@test.com",
"settings": {
"exposed_variables": {
"affiliate_id": true,
"affiliate": true,
"sub1": true,
"sub2": false,
"sub3": false,
"sub4": false,
"sub5": false,
"sub6": false,
"sub7": false,
"sub8": false,
"sub9": false,
"sub10": false,
"source_id": true,
"offer_url": false
}
}
}
'import requests
url = "https://api.eflow.team/v1/networks/advertisers"
payload = {
"name": "DocTest Advertiser Create",
"account_status": "active",
"network_employee_id": 2,
"default_currency_id": "USD",
"reporting_timezone_id": 90,
"offer_id_macro": "oid",
"affiliate_id_macro": "affid",
"billing": {
"billing_frequency": "monthly",
"details": { "day_of_month": 1 },
"default_invoice_is_hidden": True,
"tax_id": "123-45-6789",
"is_invoice_creation_auto": True,
"auto_invoice_start_date": "2026-04-01",
"invoice_amount_threshold": 100,
"invoice_generation_days_delay": 7,
"default_payment_terms": 30
},
"sales_manager_id": 2,
"internal_notes": "Test internal notes",
"labels": ["test-label", "doctest"],
"verification_token": "abc123token",
"is_contact_address_enabled": True,
"contact_address": {
"address_1": "123 Main St",
"address_2": "Suite 100",
"country_code": "US",
"city": "New York",
"region_code": "NY",
"zip_postal_code": "10001"
},
"platform_name": "Shopify",
"platform_url": "https://shopify.com",
"platform_username": "testuser",
"accounting_contact_email": "accounting@test.com",
"settings": { "exposed_variables": {
"affiliate_id": True,
"affiliate": True,
"sub1": True,
"sub2": False,
"sub3": False,
"sub4": False,
"sub5": False,
"sub6": False,
"sub7": False,
"sub8": False,
"sub9": False,
"sub10": False,
"source_id": True,
"offer_url": False
} }
}
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: 'DocTest Advertiser Create',
account_status: 'active',
network_employee_id: 2,
default_currency_id: 'USD',
reporting_timezone_id: 90,
offer_id_macro: 'oid',
affiliate_id_macro: 'affid',
billing: {
billing_frequency: 'monthly',
details: {day_of_month: 1},
default_invoice_is_hidden: true,
tax_id: '123-45-6789',
is_invoice_creation_auto: true,
auto_invoice_start_date: '2026-04-01',
invoice_amount_threshold: 100,
invoice_generation_days_delay: 7,
default_payment_terms: 30
},
sales_manager_id: 2,
internal_notes: 'Test internal notes',
labels: ['test-label', 'doctest'],
verification_token: 'abc123token',
is_contact_address_enabled: true,
contact_address: {
address_1: '123 Main St',
address_2: 'Suite 100',
country_code: 'US',
city: 'New York',
region_code: 'NY',
zip_postal_code: '10001'
},
platform_name: 'Shopify',
platform_url: 'https://shopify.com',
platform_username: 'testuser',
accounting_contact_email: 'accounting@test.com',
settings: {
exposed_variables: {
affiliate_id: true,
affiliate: true,
sub1: true,
sub2: false,
sub3: false,
sub4: false,
sub5: false,
sub6: false,
sub7: false,
sub8: false,
sub9: false,
sub10: false,
source_id: true,
offer_url: false
}
}
})
};
fetch('https://api.eflow.team/v1/networks/advertisers', 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/advertisers",
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' => 'DocTest Advertiser Create',
'account_status' => 'active',
'network_employee_id' => 2,
'default_currency_id' => 'USD',
'reporting_timezone_id' => 90,
'offer_id_macro' => 'oid',
'affiliate_id_macro' => 'affid',
'billing' => [
'billing_frequency' => 'monthly',
'details' => [
'day_of_month' => 1
],
'default_invoice_is_hidden' => true,
'tax_id' => '123-45-6789',
'is_invoice_creation_auto' => true,
'auto_invoice_start_date' => '2026-04-01',
'invoice_amount_threshold' => 100,
'invoice_generation_days_delay' => 7,
'default_payment_terms' => 30
],
'sales_manager_id' => 2,
'internal_notes' => 'Test internal notes',
'labels' => [
'test-label',
'doctest'
],
'verification_token' => 'abc123token',
'is_contact_address_enabled' => true,
'contact_address' => [
'address_1' => '123 Main St',
'address_2' => 'Suite 100',
'country_code' => 'US',
'city' => 'New York',
'region_code' => 'NY',
'zip_postal_code' => '10001'
],
'platform_name' => 'Shopify',
'platform_url' => 'https://shopify.com',
'platform_username' => 'testuser',
'accounting_contact_email' => 'accounting@test.com',
'settings' => [
'exposed_variables' => [
'affiliate_id' => true,
'affiliate' => true,
'sub1' => true,
'sub2' => false,
'sub3' => false,
'sub4' => false,
'sub5' => false,
'sub6' => false,
'sub7' => false,
'sub8' => false,
'sub9' => false,
'sub10' => false,
'source_id' => true,
'offer_url' => false
]
]
]),
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/advertisers"
payload := strings.NewReader("{\n \"name\": \"DocTest Advertiser Create\",\n \"account_status\": \"active\",\n \"network_employee_id\": 2,\n \"default_currency_id\": \"USD\",\n \"reporting_timezone_id\": 90,\n \"offer_id_macro\": \"oid\",\n \"affiliate_id_macro\": \"affid\",\n \"billing\": {\n \"billing_frequency\": \"monthly\",\n \"details\": {\n \"day_of_month\": 1\n },\n \"default_invoice_is_hidden\": true,\n \"tax_id\": \"123-45-6789\",\n \"is_invoice_creation_auto\": true,\n \"auto_invoice_start_date\": \"2026-04-01\",\n \"invoice_amount_threshold\": 100,\n \"invoice_generation_days_delay\": 7,\n \"default_payment_terms\": 30\n },\n \"sales_manager_id\": 2,\n \"internal_notes\": \"Test internal notes\",\n \"labels\": [\n \"test-label\",\n \"doctest\"\n ],\n \"verification_token\": \"abc123token\",\n \"is_contact_address_enabled\": true,\n \"contact_address\": {\n \"address_1\": \"123 Main St\",\n \"address_2\": \"Suite 100\",\n \"country_code\": \"US\",\n \"city\": \"New York\",\n \"region_code\": \"NY\",\n \"zip_postal_code\": \"10001\"\n },\n \"platform_name\": \"Shopify\",\n \"platform_url\": \"https://shopify.com\",\n \"platform_username\": \"testuser\",\n \"accounting_contact_email\": \"accounting@test.com\",\n \"settings\": {\n \"exposed_variables\": {\n \"affiliate_id\": true,\n \"affiliate\": true,\n \"sub1\": true,\n \"sub2\": false,\n \"sub3\": false,\n \"sub4\": false,\n \"sub5\": false,\n \"sub6\": false,\n \"sub7\": false,\n \"sub8\": false,\n \"sub9\": false,\n \"sub10\": false,\n \"source_id\": true,\n \"offer_url\": false\n }\n }\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/advertisers")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"DocTest Advertiser Create\",\n \"account_status\": \"active\",\n \"network_employee_id\": 2,\n \"default_currency_id\": \"USD\",\n \"reporting_timezone_id\": 90,\n \"offer_id_macro\": \"oid\",\n \"affiliate_id_macro\": \"affid\",\n \"billing\": {\n \"billing_frequency\": \"monthly\",\n \"details\": {\n \"day_of_month\": 1\n },\n \"default_invoice_is_hidden\": true,\n \"tax_id\": \"123-45-6789\",\n \"is_invoice_creation_auto\": true,\n \"auto_invoice_start_date\": \"2026-04-01\",\n \"invoice_amount_threshold\": 100,\n \"invoice_generation_days_delay\": 7,\n \"default_payment_terms\": 30\n },\n \"sales_manager_id\": 2,\n \"internal_notes\": \"Test internal notes\",\n \"labels\": [\n \"test-label\",\n \"doctest\"\n ],\n \"verification_token\": \"abc123token\",\n \"is_contact_address_enabled\": true,\n \"contact_address\": {\n \"address_1\": \"123 Main St\",\n \"address_2\": \"Suite 100\",\n \"country_code\": \"US\",\n \"city\": \"New York\",\n \"region_code\": \"NY\",\n \"zip_postal_code\": \"10001\"\n },\n \"platform_name\": \"Shopify\",\n \"platform_url\": \"https://shopify.com\",\n \"platform_username\": \"testuser\",\n \"accounting_contact_email\": \"accounting@test.com\",\n \"settings\": {\n \"exposed_variables\": {\n \"affiliate_id\": true,\n \"affiliate\": true,\n \"sub1\": true,\n \"sub2\": false,\n \"sub3\": false,\n \"sub4\": false,\n \"sub5\": false,\n \"sub6\": false,\n \"sub7\": false,\n \"sub8\": false,\n \"sub9\": false,\n \"sub10\": false,\n \"source_id\": true,\n \"offer_url\": false\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eflow.team/v1/networks/advertisers")
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\": \"DocTest Advertiser Create\",\n \"account_status\": \"active\",\n \"network_employee_id\": 2,\n \"default_currency_id\": \"USD\",\n \"reporting_timezone_id\": 90,\n \"offer_id_macro\": \"oid\",\n \"affiliate_id_macro\": \"affid\",\n \"billing\": {\n \"billing_frequency\": \"monthly\",\n \"details\": {\n \"day_of_month\": 1\n },\n \"default_invoice_is_hidden\": true,\n \"tax_id\": \"123-45-6789\",\n \"is_invoice_creation_auto\": true,\n \"auto_invoice_start_date\": \"2026-04-01\",\n \"invoice_amount_threshold\": 100,\n \"invoice_generation_days_delay\": 7,\n \"default_payment_terms\": 30\n },\n \"sales_manager_id\": 2,\n \"internal_notes\": \"Test internal notes\",\n \"labels\": [\n \"test-label\",\n \"doctest\"\n ],\n \"verification_token\": \"abc123token\",\n \"is_contact_address_enabled\": true,\n \"contact_address\": {\n \"address_1\": \"123 Main St\",\n \"address_2\": \"Suite 100\",\n \"country_code\": \"US\",\n \"city\": \"New York\",\n \"region_code\": \"NY\",\n \"zip_postal_code\": \"10001\"\n },\n \"platform_name\": \"Shopify\",\n \"platform_url\": \"https://shopify.com\",\n \"platform_username\": \"testuser\",\n \"accounting_contact_email\": \"accounting@test.com\",\n \"settings\": {\n \"exposed_variables\": {\n \"affiliate_id\": true,\n \"affiliate\": true,\n \"sub1\": true,\n \"sub2\": false,\n \"sub3\": false,\n \"sub4\": false,\n \"sub5\": false,\n \"sub6\": false,\n \"sub7\": false,\n \"sub8\": false,\n \"sub9\": false,\n \"sub10\": false,\n \"source_id\": true,\n \"offer_url\": false\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"network_advertiser_id": 67,
"network_id": 1,
"name": "DocTest Advertiser Create",
"account_status": "active",
"network_employee_id": 2,
"internal_notes": "Test internal notes",
"address_id": 1,
"is_contact_address_enabled": true,
"sales_manager_id": 2,
"is_expose_publisher_reporting_data": null,
"default_currency_id": "USD",
"platform_name": "Shopify",
"platform_url": "https://shopify.com",
"platform_username": "testuser",
"reporting_timezone_id": 90,
"accounting_contact_email": "accounting@test.com",
"verification_token": "abc123token",
"offer_id_macro": "oid",
"affiliate_id_macro": "affid",
"time_created": 1774618466,
"time_saved": 1774618466,
"relationship": {
"labels": {
"total": 2,
"entries": [
"doctest",
"test-label"
]
},
"users": {
"total": 0,
"entries": []
},
"account_manager": {
"first_name": "Justin",
"last_name": "Black",
"email": "jblack@example.com",
"work_phone": "9781243585",
"cell_phone": "",
"instant_messaging_id": 0,
"instant_messaging_identifier": ""
},
"contact_address": {
"address_id": 1,
"network_id": 1,
"address_1": "123 Main St",
"address_2": "Suite 100",
"city": "New York",
"region_code": "NY",
"country_id": 227,
"country_code": "US",
"zip_postal_code": "10001"
},
"sale_manager": {
"first_name": "Justin",
"last_name": "Black",
"email": "jblack@example.com",
"work_phone": "9781243585",
"cell_phone": "",
"instant_messaging_id": 0,
"instant_messaging_identifier": ""
}
},
"attribution_method": "last_touch",
"email_attribution_method": "last_affiliate_attribution",
"attribution_priority": "click"
}Create a new advertiser account. You can also include users, contact address, and labels in the same request. When
is_contact_address_enabled is true, provide the contact_address object.Authorizations
Query Parameters
Body
application/json
Adds an additional layer of security by requiring a unique encrypted ID to be passed in the Advertiser Postback, which can help prevent fraudulent conversions from being fired to Everflow. If the token doesn't match, conversions will be rejected. Supports up to 50 alphanumeric characters.
Maximum string length:
50Response
200 - application/json
Advertiser created successfully.
Was this page helpful?
