-
Notifications
You must be signed in to change notification settings - Fork 4
Bookings Cancel
Brad Ploeger edited this page Apr 3, 2019
·
2 revisions
Cancels an existing booking and send notifications about the cancellation.
NOTE: In case of an Automated Payment booking, will also refund payment.
$rezdyApi->bookings->cancel($orderNumber, $optionalSettings);- string: $orderNumber
- array: $optionalSettings
use Rezdy\RezdyAPI;
// Initialize the API
$rezdyAPI = new RezdyAPI('your api key');
// IMPORTANT! The order number must be passed as a string.
$orderNumber = '123456';
$options = [ 'sendNotifications' => false ];
// Send the request to the API
$response = $rezdyAPI->bookings->cancel($orderNumber, $options);
// View the response
echo $response;Rezdy API V1 PHP Wrapper