Example Request
<?php //Set up API path and method $base_url = "https://app.paykickstart.com/api/"; $route = "licenses/enable"; $url = $base_url . $route; $post = true; //Create request data string $data = http_build_query([ 'auth_token' => '3A0GTRFIJHYE', 'license_key' => 'D3WS-UCTG-IDFZ-ASHU' ]); //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
{ "success": 1, "message": "License successfully enabled.", "data": [] }
This POST request enables the license for being activated and verified
ARGUMENTS
license_key
The customer’s license key
auth_token
The Paykickstart vendor’s API Key