Goal::getTierPayouts Method

Returns the Affiliate Tier Payouts and their associated Affiliate Tier
for the specified Goal ID.

Returns an associative array indexed by Tier.id, ordered by Tier.id
ascending, with value being an associative array containing two hashes:
AffiliateTier
AffiliateTierPayout

If the Goal does not have tiered payouts enabled, returns NULL.

Sample return:

{
  3: {
       "AffiliateTier": {
         "id": "3",
         "name": "Individual",
         "status": "active",
         "level": "5",
         "is_default": "0"
       },
       "AffiliateTierPayout": {
         "offer_id": "522",
         "affiliate_tier_id": "3",
         "payout": "2.00",
         "percent_payout": null,
         "modified": "0000-00-00 00:00:00",
         "id": "63",
         "goal_id": null
       }
  },
  ...
}
NameTypeDescription
NetworkId UrlNetwork ID
NetworkToken String Network token
Target String This calls action target
Method String This calls action method
id IntegerID of Goal object

GET Response Notes

List of Affiliate Tier and Affiliate Tier Payout.

Return response will be in the following format: array.

API Call Builder

Javascript is required to use the API Call Builder.
Have a Question? Please contact support@tune.com for technical support.