Get All Affiliates

Example Request

<?php
//Set up API path and method
$base_url = "https://dev.paykickstart.com/api/";
$route = "affiliate/all";
$url = $base_url . $route;
$post = false;

//Create request data string
$data = http_build_query([
    "auth_token" => "DLFJKGHW9834",
    "campaign_id" => 123,
]);

//Execute cURL request
$ch = curl_init();
if ($post) {
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
} else {
    $url = $url . "?" . $data;
}
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
$output = curl_exec($ch);
curl_close($ch);

//Output Response
echo json_decode($output);

Example Response

[
  {
    "id": 319,
    "parent_id": null,
    "role": 1,
    "first_name": "Matt",
    "last_name": "Callen",
    "username": "supermatt@gmail.com",
    "email": "supermatt@gmail.com",
    "password": "$2y$10$WfGQqIqs.UNjWpIbPptukea7BbsYv21GuJhq4HK90FsC4vFeh82RG",
    "vendor_show_quick_start": 0,
    "affiliate_show_quick_start": 0,
    "is_premium": 1,
    "is_invited_user": 0,
    "basic_purchase_id": null,
    "premium_purchase_id": null,
    "company": "iNet Innovation",
    "skype": "",
    "phone": "",
    "address_1": "550 Congressional Blvd",
    "address_2": "Suite 125",
    "city": "Carmel",
    "state": "Indiana",
    "country": "United States",
    "zip": "46032",
    "tax_form_type": "w9",
    "tax_form": "123423437204_InetInnovation_W9_2015.pdf",
    "pdf_form": null,
    "status": 1,
    "vendor_status": 1,
    "image": "https://s3.amazonaws.com/img.paykickstart.com/vendor_profile_pics/Q5RIvM3g2h4T",
    "image_auto_generated": 0,
    "token": null,
    "subdomain": "j4vrb8vx",
    "auth_token": "CdG16eYJPjiQ",
    "remember_token": "dsdnuymXPdknoRQc9USy7OQpL8eZjSCBLbl6Z1ePfWLGMlw0rUBhnSXLj9Pj",
    "paypal_email": "paypal@inet.com",
    "paypal_secret": "cktHyhhdlQhGXHNq.gJAx0zfWBc",
    "paypal_token": "ZOcrlX46.bhXaA4z.fjjsrZTNLMC2dOE1LJaOMJioamwJ8jwZBDB8A",
    "paypal_note": null,
    "ip_address": "196.215.74.50",
    "refresh_permissions": 1,
    "created_at": "2016-06-20 13:23:10",
    "updated_at": "2016-11-15 02:34:14"
  },
  {
    "id": 1,
    "parent_id": null,
    "role": 1,
    "first_name": "Mark",
    "last_name": "Thompson",
    "username": "mark@paykickstart.com",
    "email": "mark@searchcreatively.com",
    "password": "$2y$10$WfGQqIqs.UNjWpIbPptukea7BbsYv21GuJhq4HK90FsC4vFeh82RG",
    "vendor_show_quick_start": 0,
    "affiliate_show_quick_start": 0,
    "is_premium": 1,
    "is_invited_user": 0,
    "basic_purchase_id": null,
    "premium_purchase_id": null,
    "company": "Pay Kickstart",
    "skype": "",
    "phone": "",
    "address_1": "1234 Hello Dr",
    "address_2": "",
    "city": "Charlotte",
    "state": "North Carolina",
    "country": "United States",
    "zip": "27187",
    "tax_form_type": "w9",
    "tax_form": "1473450237_mark-thompson-w9.pdf",
    "pdf_form": null,
    "status": 1,
    "vendor_status": 1,
    "image": "https://s3.amazonaws.com/img.paykickstart.com/vendor_profile_pics/YiwuGUU4OlhK",
    "image_auto_generated": 0,
    "token": null,
    "subdomain": "app",
    "auth_token": "3A0CjgqBXafhE",
    "remember_token": "MRbY6Kh0ak3MHE6v5uxPQf6XHN5ufZ0jKM1UEPPjhJy7h7lDOnOo3I8mu9bC",
    "paypal_email": "mark@searchcreatively.com",
    "paypal_secret": "8RPIJfLD9VoiOZDSUORiHbn10tQ",
    "paypal_token": "PNEnKsvFhxNXn1XK.fjjsrZEDj8.Kn-QOAafKv4po6UNVPe71lwcMA",
    "paypal_note": null,
    "ip_address": "174.109.159.232",
    "refresh_permissions": 0,
    "created_at": "2015-03-30 07:37:41",
    "updated_at": "2016-11-15 08:38:46"
  },
  {
    "id": 431,
    "parent_id": null,
    "role": 3,
    "first_name": "Jasmin",
    "last_name": "Craft",
    "username": "jcraft@gmail.com",
    "email": "jcraft@gmail.com",
    "password": "$2y$10$Ba6xTd0M01hmMdrMug5n0OrZ.Am4H4aJxTFa1C8yiQqWPpDlaxPIq",
    "vendor_show_quick_start": 1,
    "affiliate_show_quick_start": 0,
    "is_premium": 0,
    "is_invited_user": 0,
    "basic_purchase_id": null,
    "premium_purchase_id": null,
    "company": null,
    "skype": "",
    "phone": "",
    "address_1": null,
    "address_2": null,
    "city": null,
    "state": "Indiana",
    "country": "United States",
    "zip": null,
    "tax_form_type": null,
    "tax_form": null,
    "pdf_form": null,
    "status": 1,
    "vendor_status": 1,
    "image": "https://s3.amazonaws.com/img.paykickstart.com/vendor_profile_pics/5s0USumyKOPL",
    "image_auto_generated": 1,
    "token": null,
    "subdomain": "app",
    "auth_token": "dCD3P7VSRkX2",
    "remember_token": "eLn4lX1aZc7dM3KqNXT7rZeokWHVPC492kH9mrYFkUd7BKa8g8qdDUxg6UXa",
    "paypal_email": null,
    "paypal_secret": null,
    "paypal_token": null,
    "paypal_note": null,
    "ip_address": "104.137.223.89",
    "refresh_permissions": 1,
    "created_at": "2016-08-25 19:29:46",
    "updated_at": "2016-09-08 19:54:01"
  }
]

Returns all the affiliate’s details for a specified campaign.

ARGUMENTS

auth_token

The Paykickstart vendor’s API Key. This field is required.


campaign_id

The affiliate’s campaign’s id. This field is required.