Skip to content

Customers Search

Brad Ploeger edited this page Apr 3, 2019 · 1 revision

Services \ Customers \ Search

Purpose

Search customers in the account

Basic Usage:

$rezdyApi->customers->search($request);

Required Parameters

Optional Parameters

  • none

Returns

Throws (with errors)

Code Example

use Rezdy\RezdyAPI;
use Rezdy\Requests\SimpleSearch;

// Initialize the API
$rezdyAPI = new RezdyAPI('your api key');

$searchParams = [
   'search' => 'Smith' ];

// Create a SimpleSearch request
$search = new Customer($searchParams); 

// Send the Customer request to the API
$response = $rezdyAPI->customers->search($search);

// View the response
echo $response;

Clone this wiki locally