Confirm Lead

Example Request

<?php
//Set up API path and method
$base_url = "https://app.paykickstart.com/api/";
$route = "leads/confirm";
$url = $base_url . $route;

//Create request data string
$data = http_build_query([
    "auth_token" => "3A0GTRFIJHYE",
    "lead_id" => "PK-L123456789",
    "lead_campaign_id" => 15
]);

//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);
curl_close($ch);

//Output Response
echo json_decode($output);

Example Response

{
    "success": true,
    "message": "Lead is confirmed"
}

Allows the user to confirm an unconfirmed lead.

ARGUMENTS

auth_token

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


lead_id

The lead’s id. This field is required.

lead_campaign_id

The Lead Campaign’s id. This field is required.