Get Booking Service
This endpoint allows you to retrieve information about specific booking services and list all services with optional filtering and pagination.
πΉ Endpoint Detailsβ
Get Single Serviceβ
GET /api/v1/services/{id}
List Servicesβ
GET /api/v1/services
π Authenticationβ
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | Must be application/json |
| Authorization | Yes | Format: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature |
π Request Parametersβ
Path Parameters (Get Single Service)β
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| id | string (UUID) | Yes | Unique identifier of the service | 1610c525-f19a-40d0-8cd1-03daba3d2d98 |
Query Parameters (List Services)β
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
| page | number | No | Page number for pagination | 1 |
| limit | number | No | Items per page | 20 |
| userGroupId | string | No | Filter by user group ID | - |
| search | string | No | Search in service name | - |
| typeId | string | No | Filter by service type | - |
| name | string | No | Filter by exact name | - |
| startDate | string | No | Filter by availability start date | - |
| endDate | string | No | Filter by availability end date | - |
π§© Request Examplesβ
Get Single Serviceβ
curl -X GET "https://openapi.onlive.site/api/v1/services/1610c525-f19a-40d0-8cd1-03daba3d2d98" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature"
List Services with Filteringβ
curl -X GET "https://openapi.onlive.site/api/v1/services?page=1&limit=10&userGroupId=f329fe97-452f-4d12-aef0-f526a74569cc" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature"
π€ Response Formatβ
Single Service Response (200 OK)β
{
"id": "1610c525-f19a-40d0-8cd1-03daba3d2d98",
"deletedAt": null,
"createdAt": "2025-03-09T19:32:03.735Z",
"updatedAt": "2025-03-09T19:32:06.669Z",
"name": "Test Drive Standard",
"duration": 30,
"timeBetween": 30,
"minTimeToSchedule": 0,
"maxTimeToSchedule": 90,
"incrementTime": 30,
"condition": "one",
"extraFields": {
"area": "Barcelona",
"city": "Mollet Del Valles",
"street": "Avenida. Rabassaires, 22-26",
"country": "Spain"
},
"deniedMultipleAppointment": false,
"image": "https://cdn.onlive.site/assets/cupra/cupra-terramar-img1.webp",
"userGroupId": "f329fe97-452f-4d12-aef0-f526a74569cc",
"allowOverlapping": true,
"hasICall": false,
"active": true,
"typeId": "e3fb21fb-83ef-4051-916b-a8e96effe81f",
"dateRanges": [
{
"startDate": "2024-10-13T22:00:00.000Z",
"endDate": "2025-10-14T21:59:59.000Z"
}
],
"calendarIds": [
"75704ec6-8370-445d-90a1-913e096952da",
"6447bff2-a384-49f8-9641-ec2e7178a174",
"cdbab668-4938-445f-8ccf-3c88cfbf56ad"
]
}
List Response (200 OK)β
{
"items": [
{
// Service object as shown above
}
],
"total": 1,
"page": 1,
"limit": 10,
"pages": 1
}
β Error Responsesβ
This endpoint follows the standard error format.
π Notesβ
- All timestamps are in ISO 8601 format with UTC timezone
- The list endpoint supports pagination through
pageandlimitparameters - The
organizationIdis automatically derived from your authentication token - Date filters (
startDate,endDate) must be in ISO 8601 format - Results are sorted by creation date in descending order (newest first)
β Common Use Casesβ
- π Service Lookup: Find specific services by ID
- π Service Directory: List all available services
- ποΈ Date-based Filtering: Find services available in specific periods
- π₯ Group Management: List services for specific user groups
- π± Pagination: Handle large numbers of services efficiently
π Filtering Tipsβ
-
Date Range Filtering
- Use
startDateandendDatetogether for specific periods - Dates must be in ISO 8601 format
- Times are optional in date parameters
- Use
-
Performance
- Use appropriate page sizes (10-50 items)
- Include specific filters when possible
- Cache frequently accessed service details