Download OpenAPI specification:
LE-KO Histories API
✨ Retrieves the activity history of a user, including sessions attended as an athlete and sessions conducted as a coach.
| userId required | string <uuid> |
| page | integer >= 0 Default: 0 |
| groupingType | string Enum: "Personal" "Group" |
| bookingStatus | string (BookingStatus) Enum: "Accepted" "Rejected" "Pending" "Canceled" "InDispute" "DisputeDone" |
| startTime | string <date-time> |
| endTime | string <date-time> |
| sportIds | Array of strings <uuid> [ items <uuid > ] |
| participationType | string Enum: "Athlete" "Coach" Filter history by participation type (Athlete for sessions attended, Coach for sessions conducted) |
| 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 |
required | Array of objects (HistoryEntry) | ||||||
Array
| |||||||
| total required | integer | ||||||
| remainingPages required | integer | ||||||
{- "entries": [
- {
- "athlete": {
- "event": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "timeslotId": "303f94bb-a246-4fe8-83ac-06660759f3c6",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "status": "Scheduled",
- "coachId": "32b8fa03-4065-4b2f-b4b6-8ce1e570e87e",
- "canceledAt": "2019-08-24T14:15:22Z",
- "canceledByRole": "Coach",
- "cancellationReasonCode": "NotFeelingWell",
- "cancellationReasonText": "string"
}, - "booking": {
- "bookingId": "9a471128-954e-4e64-bde9-e8147015df89",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",
- "status": "Accepted",
- "completed": true,
- "note": "string",
- "canceledAt": "2019-08-24T14:15:22Z",
- "canceledByRole": "Athlete",
- "cancellationReasonCode": "NotFeelingWell",
- "cancellationReasonText": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "timeslot": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459",
- "startTime": "string",
- "endTime": "string",
- "numberOfParticipants": 0,
- "slotType": "string",
- "ageStart": 0,
- "ageEnd": 0,
- "duration": 0,
- "price": 0,
- "priceCurrency": "RUB",
- "public": true,
- "level": "string",
- "eligibility": "string",
- "addressId": "785d1fc4-8ab5-48f1-8685-117cac9865d6"
}, - "session": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "serviceId": "8f8bb40f-b96b-40fe-9064-5031fbe483f9",
- "startDate": "2019-08-24T14:15:22Z",
- "repeatDays": [
- "string"
], - "stopDate": "2019-08-24T14:15:22Z"
}, - "service": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "coachId": "32b8fa03-4065-4b2f-b4b6-8ce1e570e87e",
- "description": "string",
- "sportId": "d853e53d-2208-46fd-b120-7bf69f55862f",
- "subsportId": "c4efa15b-3c3c-4761-b606-13bda2cc83a9",
- "isDraft": true,
- "inventory": "string"
}, - "address": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "formattedAddress": "string",
- "addressType": "Main",
- "latitude": 0.1,
- "longitude": 0.1,
- "entrance": "string",
- "floor": "string",
- "locationComment": "string"
}
}, - "coach": {
- "event": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "timeslotId": "303f94bb-a246-4fe8-83ac-06660759f3c6",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "status": "Scheduled",
- "coachId": "32b8fa03-4065-4b2f-b4b6-8ce1e570e87e",
- "canceledAt": "2019-08-24T14:15:22Z",
- "canceledByRole": "Coach",
- "cancellationReasonCode": "NotFeelingWell",
- "cancellationReasonText": "string"
}, - "timeslot": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459",
- "startTime": "string",
- "endTime": "string",
- "numberOfParticipants": 0,
- "slotType": "string",
- "ageStart": 0,
- "ageEnd": 0,
- "duration": 0,
- "price": 0,
- "priceCurrency": "RUB",
- "public": true,
- "level": "string",
- "eligibility": "string",
- "addressId": "785d1fc4-8ab5-48f1-8685-117cac9865d6"
}, - "session": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "serviceId": "8f8bb40f-b96b-40fe-9064-5031fbe483f9",
- "startDate": "2019-08-24T14:15:22Z",
- "repeatDays": [
- "string"
], - "stopDate": "2019-08-24T14:15:22Z"
}, - "service": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "coachId": "32b8fa03-4065-4b2f-b4b6-8ce1e570e87e",
- "description": "string",
- "sportId": "d853e53d-2208-46fd-b120-7bf69f55862f",
- "subsportId": "c4efa15b-3c3c-4761-b606-13bda2cc83a9",
- "isDraft": true,
- "inventory": "string"
}, - "address": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "formattedAddress": "string",
- "addressType": "Main",
- "latitude": 0.1,
- "longitude": 0.1,
- "entrance": "string",
- "floor": "string",
- "locationComment": "string"
}, - "bookings": [
- {
- "bookingId": "9a471128-954e-4e64-bde9-e8147015df89",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",
- "status": "Accepted",
- "completed": true,
- "note": "string",
- "canceledAt": "2019-08-24T14:15:22Z",
- "canceledByRole": "Athlete",
- "cancellationReasonCode": "NotFeelingWell",
- "cancellationReasonText": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}, - "canceledBooking": {
- "event": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "timeslotId": "303f94bb-a246-4fe8-83ac-06660759f3c6",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "status": "Scheduled",
- "coachId": "32b8fa03-4065-4b2f-b4b6-8ce1e570e87e",
- "canceledAt": "2019-08-24T14:15:22Z",
- "canceledByRole": "Coach",
- "cancellationReasonCode": "NotFeelingWell",
- "cancellationReasonText": "string"
}, - "booking": {
- "bookingId": "9a471128-954e-4e64-bde9-e8147015df89",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",
- "status": "Accepted",
- "completed": true,
- "note": "string",
- "canceledAt": "2019-08-24T14:15:22Z",
- "canceledByRole": "Athlete",
- "cancellationReasonCode": "NotFeelingWell",
- "cancellationReasonText": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "timeslot": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459",
- "startTime": "string",
- "endTime": "string",
- "numberOfParticipants": 0,
- "slotType": "string",
- "ageStart": 0,
- "ageEnd": 0,
- "duration": 0,
- "price": 0,
- "priceCurrency": "RUB",
- "public": true,
- "level": "string",
- "eligibility": "string",
- "addressId": "785d1fc4-8ab5-48f1-8685-117cac9865d6"
}, - "session": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "serviceId": "8f8bb40f-b96b-40fe-9064-5031fbe483f9",
- "startDate": "2019-08-24T14:15:22Z",
- "repeatDays": [
- "string"
], - "stopDate": "2019-08-24T14:15:22Z"
}, - "service": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "coachId": "32b8fa03-4065-4b2f-b4b6-8ce1e570e87e",
- "description": "string",
- "sportId": "d853e53d-2208-46fd-b120-7bf69f55862f",
- "subsportId": "c4efa15b-3c3c-4761-b606-13bda2cc83a9",
- "isDraft": true,
- "inventory": "string"
}, - "address": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "formattedAddress": "string",
- "addressType": "Main",
- "latitude": 0.1,
- "longitude": 0.1,
- "entrance": "string",
- "floor": "string",
- "locationComment": "string"
}
}
}
], - "total": 0,
- "remainingPages": 0
}