Download OpenAPI specification:
LE-KO Bookings API
✨ Sends booking notifications according to the defined notification rules. This endpoint is intended to be called periodically (cron-like) to trigger the sending of notifications as part of the booking flow.
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
{- "errors": [
- {
- "code": "validation",
- "message": "string",
- "endpoint": "string",
- "requestId": "string"
}
]
}✨ Mark a specific booking as completed. The booking must have already happened.
| bookingId required | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Example: 4b72d209-debd-45e1-93cc-7640bf7d39bf The booking ID |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| completed required | boolean |
| bookingId required | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Database entity primary key uuid | ||||||||||||||||||||||||||||||
| orderId required | string <uuid> | ||||||||||||||||||||||||||||||
| userId required | string <uuid> (UserId) User ID | ||||||||||||||||||||||||||||||
| coachId required | string <uuid> | ||||||||||||||||||||||||||||||
| eventId required | string <uuid> (CoachEventId) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Event UUID | ||||||||||||||||||||||||||||||
| startAt required | string <date-time> | ||||||||||||||||||||||||||||||
| endAt required | string <date-time> | ||||||||||||||||||||||||||||||
| bookingStatus required | string (BookingStatus) Enum: "Accepted" "Rejected" "Pending" "Canceled" "InDispute" "DisputeDone" | ||||||||||||||||||||||||||||||
| eventStatus required | string or null | ||||||||||||||||||||||||||||||
| completed required | boolean | ||||||||||||||||||||||||||||||
| note required | string or null | ||||||||||||||||||||||||||||||
| canceledAt | string or null <date-time> | ||||||||||||||||||||||||||||||
| canceledByRole | string or null Enum: "Athlete" "Coach" "System" Who canceled the booking | ||||||||||||||||||||||||||||||
| cancellationReasonCode | string or null Enum: "NotFeelingWell" "NoTime" "Other" Reason code for booking cancellation | ||||||||||||||||||||||||||||||
| cancellationReasonText | string or null | ||||||||||||||||||||||||||||||
| sportId | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Database entity primary key uuid | ||||||||||||||||||||||||||||||
| serviceCardinality | integer or null The cardinality of the service (1st, 2nd, 3rd service) for this coach, or null if unavailable | ||||||||||||||||||||||||||||||
required | object (TimeSlot) | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
{- "completed": true
}{- "bookingId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "userId": "00000000-0000-1000-9000-55f01dda9dd0",
- "coachId": "32b8fa03-4065-4b2f-b4b6-8ce1e570e87e",
- "eventId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "startAt": "2019-08-24T14:15:22Z",
- "endAt": "2019-08-24T14:15:22Z",
- "bookingStatus": "Accepted",
- "eventStatus": "string",
- "completed": true,
- "note": "string",
- "canceledAt": "2019-08-24T14:15:22Z",
- "canceledByRole": "Athlete",
- "cancellationReasonCode": "NotFeelingWell",
- "cancellationReasonText": "string",
- "sportId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "serviceCardinality": 0,
- "timeslot": {
- "timeSlotId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "startTime": "12:09:53+00:00",
- "endTime": "12:09:53+00:00",
- "numberOfParticipants": 1,
- "slotType": "Online",
- "ageFrom": 18,
- "ageTo": 18,
- "duration": 15,
- "price": 0,
- "priceCurrency": "RUB",
- "paymentMethod": "Cash",
- "addressId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "public": true,
- "level": "Any",
- "eligibility": "All"
}
}✨ Add a note to a specific booking that has already happened.
| bookingId required | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Example: 4b72d209-debd-45e1-93cc-7640bf7d39bf The booking ID |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| note required | string |
| bookingId required | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Database entity primary key uuid | ||||||||||||||||||||||||||||||
| orderId required | string <uuid> | ||||||||||||||||||||||||||||||
| userId required | string <uuid> (UserId) User ID | ||||||||||||||||||||||||||||||
| coachId required | string <uuid> | ||||||||||||||||||||||||||||||
| eventId required | string <uuid> (CoachEventId) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Event UUID | ||||||||||||||||||||||||||||||
| startAt required | string <date-time> | ||||||||||||||||||||||||||||||
| endAt required | string <date-time> | ||||||||||||||||||||||||||||||
| bookingStatus required | string (BookingStatus) Enum: "Accepted" "Rejected" "Pending" "Canceled" "InDispute" "DisputeDone" | ||||||||||||||||||||||||||||||
| eventStatus required | string or null | ||||||||||||||||||||||||||||||
| completed required | boolean | ||||||||||||||||||||||||||||||
| note required | string or null | ||||||||||||||||||||||||||||||
| canceledAt | string or null <date-time> | ||||||||||||||||||||||||||||||
| canceledByRole | string or null Enum: "Athlete" "Coach" "System" Who canceled the booking | ||||||||||||||||||||||||||||||
| cancellationReasonCode | string or null Enum: "NotFeelingWell" "NoTime" "Other" Reason code for booking cancellation | ||||||||||||||||||||||||||||||
| cancellationReasonText | string or null | ||||||||||||||||||||||||||||||
| sportId | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Database entity primary key uuid | ||||||||||||||||||||||||||||||
| serviceCardinality | integer or null The cardinality of the service (1st, 2nd, 3rd service) for this coach, or null if unavailable | ||||||||||||||||||||||||||||||
required | object (TimeSlot) | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
{- "note": "string"
}{- "bookingId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "userId": "00000000-0000-1000-9000-55f01dda9dd0",
- "coachId": "32b8fa03-4065-4b2f-b4b6-8ce1e570e87e",
- "eventId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "startAt": "2019-08-24T14:15:22Z",
- "endAt": "2019-08-24T14:15:22Z",
- "bookingStatus": "Accepted",
- "eventStatus": "string",
- "completed": true,
- "note": "string",
- "canceledAt": "2019-08-24T14:15:22Z",
- "canceledByRole": "Athlete",
- "cancellationReasonCode": "NotFeelingWell",
- "cancellationReasonText": "string",
- "sportId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "serviceCardinality": 0,
- "timeslot": {
- "timeSlotId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "startTime": "12:09:53+00:00",
- "endTime": "12:09:53+00:00",
- "numberOfParticipants": 1,
- "slotType": "Online",
- "ageFrom": 18,
- "ageTo": 18,
- "duration": 15,
- "price": 0,
- "priceCurrency": "RUB",
- "paymentMethod": "Cash",
- "addressId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "public": true,
- "level": "Any",
- "eligibility": "All"
}
}✨ Dismiss a canceled booking from the user's calendar view. Only the booking owner can dismiss their own bookings, and only canceled bookings can be dismissed. This action is permanent and helps keep the calendar UI clean.
| bookingId required | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Example: 4b72d209-debd-45e1-93cc-7640bf7d39bf The booking ID to dismiss |
| userId required | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Example: userId=4b72d209-debd-45e1-93cc-7640bf7d39bf The user ID (must match the booking owner) |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
{- "errors": [
- {
- "code": "validation",
- "message": "string",
- "endpoint": "string",
- "requestId": "string"
}
]
}✨ Get all booking orders of a specific user.
| userId required | string <uuid> (UserId) Example: userId=00000000-0000-1000-9000-55f01dda9dd0 The user ID |
| startAt | string <date-time> The start date time to filter |
| endAt | string <date-time> The end date time to filter |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| orderId required | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Database entity primary key uuid | ||||||||||||||||||||||||||||||||||||
| userId required | string <uuid> (UserId) User ID | ||||||||||||||||||||||||||||||||||||
| paymentStatus required | string (BookingOrderPaymentStatus) Enum: "Pending" "Paid" "Failed" "Cash" | ||||||||||||||||||||||||||||||||||||
| createdAt required | string <date-time> | ||||||||||||||||||||||||||||||||||||
required | Array of objects (Booking) | ||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||
[- {
- "orderId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "userId": "00000000-0000-1000-9000-55f01dda9dd0",
- "paymentStatus": "Pending",
- "createdAt": "2019-08-24T14:15:22Z",
- "bookings": [
- {
- "bookingId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "userId": "00000000-0000-1000-9000-55f01dda9dd0",
- "coachId": "32b8fa03-4065-4b2f-b4b6-8ce1e570e87e",
- "eventId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "startAt": "2019-08-24T14:15:22Z",
- "endAt": "2019-08-24T14:15:22Z",
- "bookingStatus": "Accepted",
- "eventStatus": "string",
- "completed": true,
- "note": "string",
- "canceledAt": "2019-08-24T14:15:22Z",
- "canceledByRole": "Athlete",
- "cancellationReasonCode": "NotFeelingWell",
- "cancellationReasonText": "string",
- "sportId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "serviceCardinality": 0,
- "timeslot": {
- "timeSlotId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "startTime": "12:09:53+00:00",
- "endTime": "12:09:53+00:00",
- "numberOfParticipants": 1,
- "slotType": "Online",
- "ageFrom": 18,
- "ageTo": 18,
- "duration": 15,
- "price": 0,
- "priceCurrency": "RUB",
- "paymentMethod": "Cash",
- "addressId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "public": true,
- "level": "Any",
- "eligibility": "All"
}
}
]
}
]✨ Get details of a specific booking by its ID.
| bookingId required | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Example: 4b72d209-debd-45e1-93cc-7640bf7d39bf The booking ID |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| bookingId required | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Database entity primary key uuid | ||||||||||||||||||||||||||||||
| orderId required | string <uuid> | ||||||||||||||||||||||||||||||
| userId required | string <uuid> (UserId) User ID | ||||||||||||||||||||||||||||||
| coachId required | string <uuid> | ||||||||||||||||||||||||||||||
| eventId required | string <uuid> (CoachEventId) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Event UUID | ||||||||||||||||||||||||||||||
| startAt required | string <date-time> | ||||||||||||||||||||||||||||||
| endAt required | string <date-time> | ||||||||||||||||||||||||||||||
| bookingStatus required | string (BookingStatus) Enum: "Accepted" "Rejected" "Pending" "Canceled" "InDispute" "DisputeDone" | ||||||||||||||||||||||||||||||
| eventStatus required | string or null | ||||||||||||||||||||||||||||||
| completed required | boolean | ||||||||||||||||||||||||||||||
| note required | string or null | ||||||||||||||||||||||||||||||
| canceledAt | string or null <date-time> | ||||||||||||||||||||||||||||||
| canceledByRole | string or null Enum: "Athlete" "Coach" "System" Who canceled the booking | ||||||||||||||||||||||||||||||
| cancellationReasonCode | string or null Enum: "NotFeelingWell" "NoTime" "Other" Reason code for booking cancellation | ||||||||||||||||||||||||||||||
| cancellationReasonText | string or null | ||||||||||||||||||||||||||||||
| sportId | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Database entity primary key uuid | ||||||||||||||||||||||||||||||
| serviceCardinality | integer or null The cardinality of the service (1st, 2nd, 3rd service) for this coach, or null if unavailable | ||||||||||||||||||||||||||||||
required | object (TimeSlot) | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
{- "bookingId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "userId": "00000000-0000-1000-9000-55f01dda9dd0",
- "coachId": "32b8fa03-4065-4b2f-b4b6-8ce1e570e87e",
- "eventId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "startAt": "2019-08-24T14:15:22Z",
- "endAt": "2019-08-24T14:15:22Z",
- "bookingStatus": "Accepted",
- "eventStatus": "string",
- "completed": true,
- "note": "string",
- "canceledAt": "2019-08-24T14:15:22Z",
- "canceledByRole": "Athlete",
- "cancellationReasonCode": "NotFeelingWell",
- "cancellationReasonText": "string",
- "sportId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "serviceCardinality": 0,
- "timeslot": {
- "timeSlotId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "startTime": "12:09:53+00:00",
- "endTime": "12:09:53+00:00",
- "numberOfParticipants": 1,
- "slotType": "Online",
- "ageFrom": 18,
- "ageTo": 18,
- "duration": 15,
- "price": 0,
- "priceCurrency": "RUB",
- "paymentMethod": "Cash",
- "addressId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "public": true,
- "level": "Any",
- "eligibility": "All"
}
}✨ Get all bookings of a specific user or event. The user must provide either eventId or userId. If userId is provided, startAt and endAt can be used to filter the results.
| userId | string <uuid> (UserId) Example: userId=00000000-0000-1000-9000-55f01dda9dd0 The user ID. Either |
| eventId | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Example: eventId=4b72d209-debd-45e1-93cc-7640bf7d39bf The event ID. Either |
| startAt | string <date-time> The start date time to filter. Only applicable when |
| endAt | string <date-time> The end date time to filter. Only applicable when |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| bookingId required | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Database entity primary key uuid | ||||||||||||||||||||||||||||||
| orderId required | string <uuid> | ||||||||||||||||||||||||||||||
| userId required | string <uuid> (UserId) User ID | ||||||||||||||||||||||||||||||
| coachId required | string <uuid> | ||||||||||||||||||||||||||||||
| eventId required | string <uuid> (CoachEventId) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Event UUID | ||||||||||||||||||||||||||||||
| startAt required | string <date-time> | ||||||||||||||||||||||||||||||
| endAt required | string <date-time> | ||||||||||||||||||||||||||||||
| bookingStatus required | string (BookingStatus) Enum: "Accepted" "Rejected" "Pending" "Canceled" "InDispute" "DisputeDone" | ||||||||||||||||||||||||||||||
| eventStatus required | string or null | ||||||||||||||||||||||||||||||
| completed required | boolean | ||||||||||||||||||||||||||||||
| note required | string or null | ||||||||||||||||||||||||||||||
| canceledAt | string or null <date-time> | ||||||||||||||||||||||||||||||
| canceledByRole | string or null Enum: "Athlete" "Coach" "System" Who canceled the booking | ||||||||||||||||||||||||||||||
| cancellationReasonCode | string or null Enum: "NotFeelingWell" "NoTime" "Other" Reason code for booking cancellation | ||||||||||||||||||||||||||||||
| cancellationReasonText | string or null | ||||||||||||||||||||||||||||||
| sportId | string <uuid> (Id) = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... Database entity primary key uuid | ||||||||||||||||||||||||||||||
| serviceCardinality | integer or null The cardinality of the service (1st, 2nd, 3rd service) for this coach, or null if unavailable | ||||||||||||||||||||||||||||||
required | object (TimeSlot) | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
[- {
- "bookingId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "userId": "00000000-0000-1000-9000-55f01dda9dd0",
- "coachId": "32b8fa03-4065-4b2f-b4b6-8ce1e570e87e",
- "eventId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "startAt": "2019-08-24T14:15:22Z",
- "endAt": "2019-08-24T14:15:22Z",
- "bookingStatus": "Accepted",
- "eventStatus": "string",
- "completed": true,
- "note": "string",
- "canceledAt": "2019-08-24T14:15:22Z",
- "canceledByRole": "Athlete",
- "cancellationReasonCode": "NotFeelingWell",
- "cancellationReasonText": "string",
- "sportId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "serviceCardinality": 0,
- "timeslot": {
- "timeSlotId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "startTime": "12:09:53+00:00",
- "endTime": "12:09:53+00:00",
- "numberOfParticipants": 1,
- "slotType": "Online",
- "ageFrom": 18,
- "ageTo": 18,
- "duration": 15,
- "price": 0,
- "priceCurrency": "RUB",
- "paymentMethod": "Cash",
- "addressId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "public": true,
- "level": "Any",
- "eligibility": "All"
}
}
]✨ Create an order for booking events.
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| userId required | string <uuid> (UserId) User ID | ||||
| eventIds required | Array of strings <uuid> (Id) [ items <uuid > = 36 characters ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}... ] | ||||
required | object (BookEventPaymentMethod) Specifies the payment method for booking one or more events. For the project's MVP,
only | ||||
| |||||
{- "userId": "00000000-0000-1000-9000-55f01dda9dd0",
- "eventIds": [
- "4b72d209-debd-45e1-93cc-7640bf7d39bf"
], - "paymentMethod": {
- "type": "Cash",
- "methodId": "4b72d209-debd-45e1-93cc-7640bf7d39bf"
}
}{- "orderId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "userId": "00000000-0000-1000-9000-55f01dda9dd0",
- "paymentStatus": "Pending",
- "createdAt": "2019-08-24T14:15:22Z",
- "bookings": [
- {
- "bookingId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "userId": "00000000-0000-1000-9000-55f01dda9dd0",
- "coachId": "32b8fa03-4065-4b2f-b4b6-8ce1e570e87e",
- "eventId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "startAt": "2019-08-24T14:15:22Z",
- "endAt": "2019-08-24T14:15:22Z",
- "bookingStatus": "Accepted",
- "eventStatus": "string",
- "completed": true,
- "note": "string",
- "canceledAt": "2019-08-24T14:15:22Z",
- "canceledByRole": "Athlete",
- "cancellationReasonCode": "NotFeelingWell",
- "cancellationReasonText": "string",
- "sportId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "serviceCardinality": 0,
- "timeslot": {
- "timeSlotId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "startTime": "12:09:53+00:00",
- "endTime": "12:09:53+00:00",
- "numberOfParticipants": 1,
- "slotType": "Online",
- "ageFrom": 18,
- "ageTo": 18,
- "duration": 15,
- "price": 0,
- "priceCurrency": "RUB",
- "paymentMethod": "Cash",
- "addressId": "4b72d209-debd-45e1-93cc-7640bf7d39bf",
- "public": true,
- "level": "Any",
- "eligibility": "All"
}
}
]
}✨ Deletes all user-related data from the bookings system including:
If userId parameter is provided, deletes the specified user (admin only). If userId is not provided, deletes the current user (from x-current-user-id header).
| userId | string <uuid> Example: userId=4b72d209-debd-45e1-93cc-7640bf7d39bf User ID to delete. If not provided, deletes the current user (from x-current-user-id header). Only admins can delete other users. |
| x-current-user-id required | string <uuid> Example: 4b72d209-debd-45e1-93cc-7640bf7d39bf Current user ID for authentication and authorization |
{- "errors": [
- {
- "code": "validation",
- "message": "string",
- "endpoint": "string",
- "requestId": "string"
}
]
}