Login Customer

Example Request

//Set up API path and method
$base_url = "https://app.paykickstart.com/api/";
$route = "billing-customer";
$url = $base_url . $route;

//Create request data string
$data = http_build_query([
    "auth_token" => "3A0GTRFIJHYE",
    "email" => "donald@duck.com"

//Execute cURL request
$ch = curl_init();
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
$output = curl_exec($ch);

//Output Response
echo json_decode($output);

Example Response

  "status": true,
  "secret": "eyJpdiI6ImNkMW1RSTVDYTNwbjU5TjFcL2lmdGx3PT0iLCJ2YWx1ZSI6InVMRVc3VUZNRlcwZzlsME1zSjhyTFE9PSIsIm1hYyI6IjlhOGM1YTQyMDRkMGIxN2ZmNjk2MzkxNTZkMWZjNDljMGIxMTJmMzdkYWUxYzlhYmU3YmQ4ZmRlODdlZjBkODIifQ=="

Allows the user to fetch the login token of a customer for a customer portal iframe. This is useful for vendors who want to embed the customer portal into a membership area where the vendor already knows the customer’s email address and doesn’t want to require the customer to have to use the email verification login system on the portal (auto-login).



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


The email address of the customer.


Once you’ve received the login token in the API response, you need to modify the iframe source URL and include a new parameter called “secret”. The value of that parameter should be the token you received in the response.