Affiliate Tracking Domains
Operations for affiliate tracking domains
Find All
GET
/v1/networks/affiliates/:affiliateId/trackingdomains
Path Parameters
Parameter | Description |
---|---|
affiliateId | The ID of the affiliate whose tracking domain you want to fetch |
Request Example
cURL
curl --request GET 'https://api.eflow.team/v1/networks/affiliates/7/trackingdomains' \
--header 'X-Eflow-API-Key: <INSERT API KEY>'
Response
{
"tracking_domains": [
{
"network_affiliate_tracking_domain_id": 1,
"network_id": 1,
"network_affiliate_id": 7,
"network_tracking_domain_id": 1,
"is_apply_all_offers": true,
"network_offer_id": 0,
"relationship": {
"affiliate": {
"network_affiliate_id": 7,
"network_id": 1,
"name": "Teddy Hopper Inc.",
"account_status": "active",
"network_traffic_source_id": 0
},
"tracking_domain": {
"network_tracking_domain_id": 1,
"network_id": 1,
"url": "www.servetrack.test",
"is_primary_domain": true,
"domain_status": "active",
"is_ssl_enabled": false,
"notes": "",
"renewal_date": "",
"ownership": "internal",
"html_static_redirect": "",
"url_redirect": ""
}
}
}
]
}
Find By ID
GET
/v1/networks/affiliates/:affiliateId/trackingdomains/:affilliatetrackingDomainId
Path Parameters
Parameter | Description |
---|---|
affiliateId | The ID of the affiliate whose tracking domain you want to fetch |
affilliatetrackingDomainId | The ID of the specific affiliate tracking ID setting you are trying to fetch AKA. network_affiliate_tracking_domain_id |
Request Example
cURL
curl --request GET 'https://api.eflow.team/v1/networks/affiliates/1/trackingdomains/17' \
--header 'X-Eflow-API-Key: <INSERT API KEY>'
Response
{
"tracking_domains": [
{
"network_affiliate_tracking_domain_id": 17,
"network_id": 1,
"network_affiliate_id": 7,
"network_tracking_domain_id": 1,
"is_apply_all_offers": true,
"network_offer_id": 0,
"relationship": {
"affiliate": {
"network_affiliate_id": 7,
"network_id": 1,
"name": "Teddy Hopper Inc.",
"account_status": "active",
"network_traffic_source_id": 0
},
"tracking_domain": {
"network_tracking_domain_id": 1,
"network_id": 1,
"url": "www.servetrack.test",
"is_primary_domain": true,
"domain_status": "active",
"is_ssl_enabled": false,
"notes": "",
"renewal_date": "",
"ownership": "internal",
"html_static_redirect": "",
"url_redirect": ""
}
}
}
]
}
Create
POST
/v1/networks/affiliates/:affiliateId/trackingdomains
Path Parameters
Parameter | Description |
---|---|
affiliateId | The ID of the affiliate for whom to create a tracking domain |
Body Params
network_affiliate_id
int
ID of the affiliate for whom to create a tracking domain.
network_tracking_domain_id
int
ID of the network tracking domain.
is_apply_all_offers
boolean
Whether or not this tracking domain apply to all offer.
network_offer_ids
array[int]
List of offer IDs to which the tracking domain will apply.
Payload Example
{
"tracking_domains": [
{
"network_affiliate_tracking_domain_id": 4,
"network_id": 1,
"network_affiliate_id": 7,
"network_tracking_domain_id": 2,
"is_apply_all_offers": false,
"network_offer_id": 42,
"relationship": {
"affiliate": {
"network_affiliate_id": 7,
"network_id": 1,
"name": "Ayumi Henry Inc.",
"account_status": "active",
"network_traffic_source_id": 0
},
"tracking_domain": {
"network_tracking_domain_id": 2,
"network_id": 1,
"url": "www.servetrack1.test",
"is_primary_domain": false,
"domain_status": "active",
"is_ssl_enabled": false,
"notes": "",
"time_created": 1603203203,
"time_saved": 1603203203,
"renewal_date": "",
"ownership": "internal",
"html_static_redirect": "",
"url_redirect": ""
},
"offer": {
"network_offer_id": 42,
"network_id": 1,
"network_advertiser_id": 26,
"network_offer_group_id": 0,
"name": "Car Uber",
"offer_status": "active",
"network_tracking_domain_id": 1,
"visibility": "public",
"currency_id": "USD"
}
}
}
]
}
Update
PUT
/v1/networks/affiliates/:affiliateId/trackingdomains
You must specify all the fields, not only the ones you wish to update.
If you omit a field that is not marked as required, its default value will be used.
Path Parameters
Parameter | Description |
---|---|
affiliateId | The ID of the affiliate whose tracking domain you want to update |
Body Params
network_affiliate_id
int
ID of the affiliate for whom to create a tracking domain.
network_tracking_domain_id
int
ID of the network tracking domain.
network_affiliate_tracking_domain_id
int
The ID of the specific affiliate tracking ID setting to be updated
is_apply_all_offers
boolean
Whether or not this tracking domain apply to all offer.
network_offer_id
int
ID of the offer to which the tracking domain will apply.
Payload Example
{
"network_offer_id": 42,
"network_tracking_domain_id": 2,
"network_affiliate_id": 7,
"is_apply_all_offers": false,
"network_affiliate_tracking_domain_id": 17
}
Request Example
cURL
curl --request GET 'https://api.eflow.team/v1/networks/affiliates/7/trackingdomains' \
--header 'X-Eflow-API-Key: <INSERT API KEY>'\
--header 'content-type: application/json' \
--data '<INSERT PAYLOAD>'
{
"network_affiliate_tracking_domain_id": 17,
"network_id": 1,
"network_affiliate_id": 7,
"network_tracking_domain_id": 2,
"is_apply_all_offers": false,
"network_offer_id": 42,
"relationship": {
"affiliate": {
"network_affiliate_id": 7,
"network_id": 1,
"name": "Ayumi Henry Inc.",
"account_status": "active",
"network_traffic_source_id": 0
},
"tracking_domain": {
"network_tracking_domain_id": 2,
"network_id": 1,
"url": "www.servetrack.test",
"is_primary_domain": true,
"domain_status": "active",
"is_ssl_enabled": false,
"notes": "",
"time_created": 1602783082,
"time_saved": 1602783082,
"renewal_date": "",
"ownership": "internal",
"html_static_redirect": "",
"url_redirect": ""
},
"offer": {
"network_offer_id": 42,
"network_id": 1,
"network_advertiser_id": 39,
"network_offer_group_id": 0,
"name": "Cash Cash",
"offer_status": "active",
"network_tracking_domain_id": 1,
"visibility": "require_approval",
"currency_id": "USD"
}
}
}
Delete
DELETE
/v1/networks/affiliates/:affiliateId/trackingdomains/:affilliatetrackingDomainId
Delete an existing specific tracking domain setting base on it’s ID
Path Parameters
Parameter | Description |
---|---|
affiliateId | The ID of the affiliate whose tracking domain you want to fetch |
affilliatetrackingDomainId | The ID of the specific affiliate tracking ID setting you are trying to fetch AKA. network_affiliate_tracking_domain_id |
Request Example
cURL
curl --request DELETE '/v1/networks/affiliates/:affiliateId/trackingdomains/:affilliatetrackingDomainId' \
--header 'X-Eflow-API-Key: <INSERT API KEY>'
Response
{
"success": true
}