-
Notifications
You must be signed in to change notification settings - Fork 4
Availability Search
Brad Ploeger edited this page Apr 3, 2019
·
5 revisions
Services \ Availability \ Search
Load availability information for a specific date range.
Note: This will return a list of sessions, including their availability and pricing details. Pricing in the session can be different than the pricing of the products, in a case when a supplier overrides a price for a specific session or a ticket type. Since Rezdy introduced shared availability option for products, the product sessions can contain price overrides for all of the products, which share the sessions. Therefore it is necessary to filer only the price options matching the chosen product code on the client side, when processing /availability service responses.
$rezdyApi->availability->search($request);- Rezdy\Requests\SessionSearch: $request
- none
use Rezdy\RezdyAPI;
use Rezdy\Requests\SessionSearch;
// Initialize the API
$rezdyAPI = new RezdyAPI('your api key');
// Create the array of session search parameters
$searchParams = [
'productCode' => ['P12345', 'P67890'],
'startTimeLocal' => '2019-03-26 00:00:00',
'endTimeLocal' => '2019-03-26 23:59:59'];
// Create the Session Search Request
$search = new SessionSearch($searchParams);
// Send the request to the API
$response = $rezdyAPI->availability->search($search);
// View the Response
echo $response;Rezdy API V1 PHP Wrapper