Skip to content

Bookings Get

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

Services \ Bookings \ Get

Purpose

Load an existing booking by Order Number.

Basic Usage:

$rezdyApi->bookings->get($orderNumber);

Required Parameters

  • string: $orderNumber

Optional Parameters

  • none

Returns

Throws (with errors)

Code Example

use Rezdy\RezdyAPI;

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

// IMPORTANT! The order number must be passed as a string.
$orderNumber = '123456';

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

// View the response
echo $response;

Clone this wiki locally