Create volume based tiers

HTTP method

Endpoint

POST

/v1/affiliate_payouts/{affiliate_payout_id}/affiliate_tiers

NOTE: Volume Based Tiers only used for CPA, CPS and CPA+CPS,and the affiliate payout ,when offers pricing type is CPC cannot create Volume Based Tiers.

In the case of Offer pricing type be CPC, event_id assignment and Volume Based Tiers would be unavailable. Volume Based Tiers is only available if event_id=1.

Path parameters

Parameter

Description

affiliate_payout_id

The unique id for the affiliate payout.

Request body parameters

Field

Type

Description

Nullable

user_id

integer

No

time_interval_type

integer

Time interval type. 1: Daily ; 2: Weekly ; 3: Monthly

No

effective_time

string

When Time Interval Type value is 0 that Custom time can be active.Print type of time must be :YYYY-MM-DD

expiration_time

string

When Time Interval Type value is 0 that Custom time can be active.Print type of time must be :YYYY-MM-DD

tier_item

No

volume_caps

integer

Volume Caps.

No

payout

string

Payout.

percent_payout

string

Percent payout.

Response body parameters

Field

Type

Description

offer_id

integer

Offer id.

affiliate_id

integer

Affiliate id.

user_id

integer

User id.

time_interval_type

integer

Time interval type. 1: Daily ; 2: Weekly ; 3: Monthly

effective_time

integer

Effective time.

expiration_time

integer

Expiration time.

create_time

integer

Create time.

tier_item

volume_caps

integer

Volume Based Tiers Volume Caps.

payout

string

Volume Based Tiers Payout.

percent_payout

string

Percent payout.

sort

integer

Volume Based Tiers Sort.

range

string

Volume Based Tiers Range.

Example request

Request POST https://{networkname}.api.offerslook.com/v1/affiliate_payouts/8/affiliate_tiers

Request POST http://{networkname}.api.offerslook.com/v1/affiliate_payouts/8/affiliate_tiers

    {
      "user_id": 1,
      "time_interval_type": 0,
      "effective_time": "2016-09-03",
      "expiration_time": "2016-10-03",
      "tier_item": [
        {
          "volume_caps": "150",
          "payout": "34",
          "percent_payout": "10"
        },
        {
          "volume_caps": 100,
          "payout": 43,
          "percent_payout": "10"
        }
      ]
    }

Example response

    {
      "code": 0,
      "message": "Success",
      "data": {
        "affiliate_tier": {
          "offer_id": 3,
          "affiliate_id": 6,
          "user_id": 1,
          "time_interval_type": 0,
          "effective_time": 1472832000,
          "expiration_time": 1475510399,
          "create_time": 1467615990,
          "tier_item": [
            {
              "volume_caps": 100,
              "payout": 34,
              "percent_payout": "10",
              "sort": 1,
              "range": "1-100"
            },
            {
              "volume_caps": 150,
              "payout": 43,
              "percent_payout": "10",
              "sort": 2,
              "range": "101-∞"
            }
          ]
        }
      }
    }

Last updated