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

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/:trackingDomainId

Path Parameters

Parameter Description
affiliateId The ID of the affiliate whose tracking domain you want to fetch
trackingDomainId The ID of the tracking domain you want to fetch

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": 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": ""
        }
      }
    }
  ]
}

Create

POST /v1/networks/affiliates/:affiliateId/trackingdomains

Path Parameters

Parameter Description
affiliateId The ID of the affiliate for whom to create a tracking domain

network_affiliate_id int

ID of the affiliate for whom to create a tracking domain.

network_tracking_domain_id int

ID of the neetwork 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.

{
    "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/:trackingDomainId

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
trackingdomainId The ID of the tracking domain you want to update

network_affiliate_id int

ID of the affiliate for whom to create a tracking domain.

network_tracking_domain_id int

ID of the neetwork tracking domain.

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.

{
    "network_affiliate_tracking_domain_id": 0,
    "network_id": 1,
    "network_affiliate_id": 7,
    "network_tracking_domain_id": 1,
    "is_apply_all_offers": false,
    "network_offer_id": 76,
    "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": 1,
            "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": 76,
            "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"
        }
    }
}