Affiliate Tiers

Operations for affiliate tiers

Find All

GET /v1/networks/affiliatetiers

cURL
curl --request GET 'https://api.eflow.team/v1/networks/affiliatetiers' \
--header 'X-Eflow-API-Key: <INSERT API KEY>'
Response
{
  "tiers": [
    {
      "network_affiliate_tier_id": 2,
      "network_id": 1,
      "name": "Gold10",
      "status": "active",
      "description": "Exemple",
      "network_affiliate_ids": [
        14,
        21,
        35
      ],
      "payout_margin": 10,
      "is_default_tier": false
    }
  ]
}

Find By ID

GET /v1/networks/affiliatetiers/:affiliateTierId

Path Parameters

Parameter Description
affiliateTierId The ID of the affiliate tier you want to fetch

cURL
curl --request GET 'https://api.eflow.team/v1/networks/affiliatetiers/1' \
--header 'X-Eflow-API-Key: <INSERT API KEY>'
Response
{
  "network_affiliate_tier_id": 1,
  "network_id": 1,
  "name": "Silver10",
  "status": "deleted",
  "description": "Exemple",
  "network_affiliate_ids": [
    28
  ],
  "payout_margin": 10,
  "is_default_tier": true 
}

Create

POST /v1/networks/affiliatetiers

name string

The name of the affiliate tier

status string

Status of the affiliate tier. Can be one of the following values: active , paused or deleted.

description string

Optional description

network_affiliate_ids int array

ID of the Affiliates.

payout_margin int

The affiliate’s payout margin

is_default_tier boolean

Whether or not the affiliate tier will be automatically tied to all new partners.

    {
      "network_id": 1,
      "name": "Gold10",
      "status": "active",
      "description": "Exemple",
      "network_affiliate_ids": [
        14,
        21,
        35
      ],
      "payout_margin": 10,
      "is_default_tier": false
<span style="color:#000;font-weight:bold">}</span>


Update

PUT /v1/networks/affiliatetiers/:affiliateTierId

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
affiliateTierId The ID of the affiliate tier you want to update

name string

The name of the affiliate tier

status string

Status of the affiliate tier. Can be one of the following values: active , paused or deleted.

description string

Optional description

network_affiliate_ids int array

ID of the Affiliates.

payout_margin int

The affiliate’s payout margin

is_default_tier boolean

Whether or not the affiliate tier will be automatically tied to all new partners.

{
  "network_id": 1,
  "name": "Platinum10",
  "status": "active",
  "description": "Exemple",
  "network_affiliate_ids": [
    14,
    21,
    35
  ],
  "payout_margin": 10,
  "is_default_tier": false
}