Skip to content

Examples

Examples of using Booking Platform in various scenarios

Examples by Business Type

TypeExampleFeatures Used
SalonBook haircut, manicureMultiple service types, multiple staff
ClinicBook appointmentDeposit, SMS notifications
FitnessBook class slotsGroup booking, weekly schedule
ConsultingBook consultationPrepayment, cancellation

API Usage Examples

Create a Booking via API

typescript
const booking = await fetch('/api/v1/bookings', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    customerId: 'cust_123',
    serviceId: 'svc_456',
    staffId: 'staff_789',
    dateTime: '2025-01-15T10:00:00Z',
  }),
});

See more at:

Widget Embed Example

html
<div id="booking-widget"
     data-tenant="YOUR_TENANT_ID"
     data-theme="light"
     data-language="en">
</div>
<script src="https://booking-platform.com/widget.js" defer></script>

See more details at Integrations

Webhook Example

typescript
const webhookEvents = [
  'booking.created',
  'booking.cancelled',
  'payment.received',
];

See more examples at Integrations

Last updated:

Released under the MIT License.