Confirm existing Booking

When a booking is created in Manual mode, you will have an option to Confirm or Decline this booking. This endpoint is specifically used for confirming existing tentative bookings.

Authentication

This endpoint needs app token for authentication.

MethodPUT
Token TypeApp Token
Endpointv1/bookings/:uuid/confirm
HeadersAccept: application/json 
Authorization: Bearer <base64_encoded_token> 

When you have a booking with a single or more resources vs single or more customers, the confirm endpoint requires the following payload for this specific endpoint:

Request Body:

This endpoint requires following parameters to be sent via a post body:

Param NameRequiredDescription
resource_idtrueResource uuid who is confirming
customer_idtrueCustomer who needs confirmation

Example Request:

The following code shows how to send request to confirm a single customer:

  • PHP SDK
  • NodeJS SDK
require 'vendor/autoload.php';

use Slotify\Slotify;

$slotify = new Slotify('your_api_key');

$response = $slotify->confirmBooking([
    "resource_id" => "9ba699e2-3469-4061-9c64-18879621a36f",
    "customer_id" => "2cc23365-0696-4856-aeab-02ad5a05a94b"
]);

if ($response->isSuccess()) {
    echo "Booking confirmed successfully!";
} else {
    echo "Failed to confirm booking: " . $response->getError();
}
const Slotify = require('slotify-sdk');

const slotify = new Slotify({ apiKey: 'your_api_key' });

slotify.confirmBooking({
    resource_id: "9ba699e2-3469-4061-9c64-18879621a36f",
    customer_id: "2cc23365-0696-4856-aeab-02ad5a05a94b"
})
.then(response => {
    console.log('Booking confirmed successfully:', response);
})
.catch(error => {
    console.error('Failed to confirm booking:', error);
});

Example Response:

Following response will be provided by Slotify server when this endpoint is called:

  • 204 No Content