Search leads

Use the searchLeads method to retrieve leads created in the 2Checkout system.

Request parameters

Parameter
Type / Description

Page

Required (string) The page in the result set.

Limit

Required (number) The number of items to be retrieved on each page.

Request sample

example.php
<?php

require ('PATH_TO_AUTH');

$LeadSearchInput = new stdClass();

$LeadSearchInput->Type = "New";
$LeadSearchInput->Language = "BG";
$LeadSearchInput->Country = "RO";
$LeadSearchInput->Page = 1;
$LeadSearchInput->Limit = 200;

try {
    $leadData = $client->searchLeads($sessionID, $LeadSearchInput);
} catch (SoapFault $e) {
    echo "searchLeads: " . $e->getMessage();
    exit;
}

var_dump("searchLeads", $leadData);

Response sample

Last updated

Was this helpful?