Examples
Examples of using Booking Platform in various scenarios
Examples by Business Type
| Type | Example | Features Used |
|---|---|---|
| Salon | Book haircut, manicure | Multiple service types, multiple staff |
| Clinic | Book appointment | Deposit, SMS notifications |
| Fitness | Book class slots | Group booking, weekly schedule |
| Consulting | Book consultation | Prepayment, 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:
- API Overview - API overview
- Bookings API - Manage bookings
- Customers API - Manage customers
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