Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Ishaq74/concordia/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Services API allows you to manage service listings, bookings, availability schedules, categories, and media. All Services API endpoints require admin authentication.Service Listings
List Services
From/src/pages/api/admin/services/services.ts:20-112:
Query Parameters
Page number
Items per page (max: 100)
Search by slug
Filter by status:
draft, active, suspended, archivedFilter featured services
Filter services displayed on homepage
Filter by category ID
Filter by organization ID
Fetch single service with full details (translations, media)
Create Service
From/src/pages/api/admin/services/services.ts:136-206:
Request Body
Must be
"create"URL-friendly service slug
Category ID (nullable)
User ID of service provider
Organization ID (nullable)
Service status:
draft, active, suspended, archivedService price (decimal string, e.g., “150.00”)
Pricing model:
hourly, fixed, per_session, customISO currency code (EUR, USD, etc.)
Service duration in minutes
Service available at customer location
Maximum participants per booking
Minimum hours required before booking
Hours before booking when cancellation is allowed
Mark as featured
Show on homepage
Enable customer reviews
Array of translation objects with
inLanguage, title, description, etc.Array of media objects with
mediaId, type (cover/gallery), positionUpdate Service
From/src/pages/api/admin/services/services.ts:208-286:
Other Service Actions
From/src/pages/api/admin/services/services.ts:288-371:
status: "draft" and unique slug.
Service Categories
List Categories
From/src/pages/api/admin/services/categories.ts:19-99:
Query Parameters
Fetch single category by ID (includes service count)
Return all categories for selectors
Filter by parent ID (use
"root" for top-level)Filter featured categories
Filter categories displayed on homepage
Filter categories shown in menu
Create Category
From/src/pages/api/admin/services/categories.ts:124-155:
Update/Delete Category
From/src/pages/api/admin/services/categories.ts:157-216:
categoryId to null).
Availability
List Availability Slots
From/src/pages/api/admin/services/availability.ts:13-30:
Response
Manage Availability
From/src/pages/api/admin/services/availability.ts:36-127:
Bookings
List Bookings
From/src/pages/api/admin/services/bookings.ts:14-96:
Query Parameters
Filter by status:
pending, confirmed, cancelled_by_customer, cancelled_by_provider, completed, no_showFilter by service ID
Search in customer messages
Filter bookings from date (ISO 8601)
Filter bookings to date (ISO 8601)
Response
Update Booking Status
From/src/pages/api/admin/services/bookings.ts:102-154:
PATCH /api/admin/services/bookings
Service Media
List Service Media
From/src/pages/api/admin/services/media.ts:20-51:
Upload Service Media
From/src/pages/api/admin/services/media.ts:57-208:
Configuration
- Upload directory:
public/uploads/services - Max file size: 10 MB
- Allowed types: JPEG, PNG, WebP, AVIF, GIF, SVG
Update/Delete Service Media
Common Response Codes
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Invalid request |
| 403 | Not admin (forbidden) |
| 404 | Resource not found |
| 500 | Server error |
Audit Logging
All Services API actions are logged:service.createservice.updateservice.deleteservice.duplicateservice_category.createservice_category.updateservice_category.deleteservices.media.uploadservices.media.delete
Related Resources
Blog API
Manage blog content
Organizations API
Organization management