Service Properties
This table defines the structure of the service entity, including all properties and their descriptions.
🔹 Core Properties
| Property | Type | Required | Description | Example |
|---|---|---|---|---|
id | string | Yes | Unique identifier for the service | "123e4567-e89b-12d3-a456-426614174000" |
name | string | Yes | Name of the service | "Professional Consultation" |
description | string | No | Detailed description of the service | "A comprehensive consultation service" |
imageUrl | string | No | URL of the service image | "https://example.com/image.png" |
dateRanges | array | No | Date ranges when the service is available | See Date Range Properties |
calendars | array | No | Calendars associated with this service | See Calendar Properties |
bookingOptions | object | No | Configuration for booking rules | See Booking Options Properties |
extraFields | object | No | Additional custom fields | See example below |
createdAt | string | No | ISO datetime when the service was created | "2025-05-22T10:30:00Z" |
updatedAt | string | No | ISO datetime when the service was last updated | "2025-05-22T10:30:00Z" |
📅 Date Range Properties
| Property | Type | Required | Description | Example |
|---|---|---|---|---|
start | string | Yes | Start date-time in ISO format | "2025-05-22T10:30:00Z" |
end | string | Yes | End date-time in ISO format | "2025-05-22T11:30:00Z" |
📋 Booking Options Properties
| Property | Type | Required | Description | Example |
|---|---|---|---|---|
duration | number | Yes | Duration of the service in minutes | 60 |
bufferTime | number | No | Buffer time between bookings (minutes) | 15 |
maxParticipants | number | No | Maximum number of participants | 10 |
autoAccept | boolean | No | Auto-accept bookings if true | false |
💼 Example
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Professional Consultation",
"description": "A comprehensive consultation service for your needs",
"imageUrl": "https://example.com/service-image.png",
"dateRanges": [
{
"start": "2025-05-22T10:30:00Z",
"end": "2025-05-22T18:30:00Z"
}
],
"bookingOptions": {
"duration": 60,
"bufferTime": 15,
"maxParticipants": 1,
"autoAccept": true
},
"extraFields": {
"category": "consulting",
"location": "online"
},
"createdAt": "2025-05-22T10:30:00Z",
"updatedAt": "2025-05-22T10:30:00Z"
}