---
title: "Get Services Available for Booking"
method: GET
path: "/book_services/{location_id}"
tags: ["Online Booking"]
---

# Get Services Available for Booking

`GET /book_services/{location_id}`

The object of services available for booking has the following fields:

| Field | Type | Description |
| ------------- | ------------- | ------------- |
| categories | array of objects | Array of service categories (you can't book a category) |
| services | array of objects | Services available for booking by category |

An object from the categories array, has the following fields:

| Field | Type | Description |
| ------------- | ------------- | ------------- |
| id | number | Category ID |
| title | string | Category name |
| gender | number | Category belonging to gender (1 - male, 2 - female, 0 - not specified) |
| weight | number | Category weight. Categories are sorted by weight, heavier ones first |
| api_id | string | External Category ID |

An object from the services array, has the following fields:

| Field | Type | Description |
| ------------- | ------------- | ------------- |
| id | number | Service ID |
| title | string | Service name |
| category_id | number | Identifier of the category to which the service belongs |
| weight | number | Category weight. Services are sorted by weight, heavier ones first |
| price_min | number | The minimum cost of the service |
| price_max | number | Maximum cost of the service |
| discount | number | Service discount |
| comment | string | Comment on the service |
| active | number | Is the service active |
| prepaid | string | Online payment status |
| gender | number | Gender for which the service is provided |
| session_length | number | Service duration in seconds (only if filter by team member is set) |
| image | string | Image services |


If you need to get the services provided by a specific team member, then you need to use the filter by team member.
The following filters are available:
+ staff_id: team member ID. If you need services that only the selected team member provides
+ datetime: date (in iso8601 format). Specifies the desired appointment date. Use this parameter to retrieve services that can be booked with the selected team member on that specific date.
+ service_ids: An array of service IDs. If a team member is already selected and the time and service(s) are part of an existing appointment, this parameter should be used to select an additional service.

## Path parameters

- `location_id` number, required

## Query parameters

- `staff_id` number
- `datetime` string
- `service_ids[]` number[]

## Headers

- `Accept` string, required
- `Content-Type` string, required
- `Authorization` string, required

## Response `200`

OK

- BookServicesCompanyidDataTypes — Get a List of Services Available for appointment
  - `success` boolean — Success status (true)
  - `data` object — Object with data
    - `events` object[]
    - `services` object[] — Services
      - `id` number — Service ID
      - `title` string — Service name
      - `category_id` number — ID of the category the service belongs to
      - `price_min` number, float — The minimum cost of the service
      - `price_max` number, float — Maximum cost of the service
      - `discount` number, float — Service discount
      - `comment` string — Comment on the service
      - `weight` number — Service weight. On withdrawal, services are sorted by weight, heavier first
      - `active` number — Is the service active
      - `gender` number — Gender for which the service is provided
      - `image` string — Service image
      - `prepaid` string — Online payment status
      - `seance_length` integer, nullable — Service duration in seconds (only if filter by team member is set)
      - `abonement_restriction` integer — Subscription restriction flag
      - `prepaid_settings` object — Prepaid settings configuration
      - `is_composite` boolean — Whether service is composite
      - `is_chain` boolean — Whether service belongs to chain
      - `images` string[], nullable — Service images array
      - `composite_details` object, nullable — Composite service details
    - `category` object[] — Service categories
      - `id` number — Category ID
      - `title` string — Service category name
      - `gender` number — Gender for which the service is provided
      - `api_id` union — External Category ID
        - string
        - integer
      - `weight` number — Service category weight. Services are sorted by weight, heavier ones first.
  - `meta` object[] — Metadata (empty array)

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/alteg/apis/online-booking.md) · [All operations](https://skmtc.net/alteg/apis/online-booking/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alteg/online-booking/revisions/623dc683246f/schema)
