Skip to content

Bookings Search

Brad Ploeger edited this page Apr 3, 2019 · 3 revisions

Services \ Bookings \ Search

Purpose

Search bookings in the account.

Basic Usage:

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

Required Parameters

Optional Parameters

  • none

Returns

Throws (with errors)

Code Example

use Rezdy\RezdyAPI;
use Rezdy\Requests\BookingSearch;

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

$searchParams =	[
   'orderStatus' => 'CONFIRMED',
   'productCode' => [ 'P12345', 'P67890' ],
   'minTourStartTime' => '2019-03-26 00:00:00',
   'maxTourStartTime' => '2019-03-27 23:59:59' ];

// Create the Booking Search Request
$search = new BookingSearch($searchParams);

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

// View the response
echo $response;

Clone this wiki locally