-
Notifications
You must be signed in to change notification settings - Fork 4
Bookings Search
Brad Ploeger edited this page Apr 3, 2019
·
3 revisions
Search bookings in the account.
$rezdyApi->bookings->search($request);- Rezdy\Requests\BookingSearch: $request
- none
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;Rezdy API V1 PHP Wrapper