# Get Online Booking Details

Endpoint: GET /book_record/{location_id}/{record_id}/{record_hash}
Version: 1.0.0
Security: BearerPartner

## Security:

  - `BearerPartner` (unknown)
    http bearer Bearer {PartnerToken}

## Path parameters:

  - `location_id` (number, required)
    location ID

  - `record_id` (number, required)
    Post ID (enough to view the post if the user is logged in)

  - `record_hash` (string, required)
    HASH appointments (required to view the appointment if the user is not authorized)

## Header parameters:

  - `Accept` (string, required)
    e.g. application/vnd.api.v2+json

  - `Content-Type` (string, required)
    application/json

  - `Authorization` (string, required)
    Bearer partner_token, User user_token

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `id` (number)
    Appointment ID

  - `services` (array)
    Service ID List

  - `services.id` (number)
    Service ID

  - `services.title` (string)
    Service name

  - `services.amount` (integer)
    Number of ordered services

  - `services.seance_length` (integer)
    Service duration in seconds (only if filter by team member is set)

  - `services.cost` (number)
    Service cost

  - `services.price_min` (number)
    Minimum service price

  - `services.price_max` (number)
    Maximum service price

  - `services.discount` (number)
    Discount amount

  - `company` (object)
    location parameters

  - `company.id` (number)
    location ID

  - `company.title` (string)
    location name

  - `company.country_id` (number)
    Country ID

  - `company.country` (string)
    The name of the country in which the organization is located

  - `company.city_id` (number)
    City ID

  - `company.city` (string)
    Name of the city where the organization is located

  - `company.phone` (string)
    location phone

  - `company.phones` (array)

  - `company.timezone` (string)
    location time zone

  - `company.address` (string)
    location address

  - `company.coordinate_lat` (number)
    Latitude

  - `company.coordinate_lon` (number)
    Longitude

  - `company.allow_delete_record` (boolean)

  - `company.allow_change_record` (boolean)

  - `company.site` (string)

  - `company.currency_short_title` (string)

  - `company.allow_change_record_delay_step` (integer)

  - `company.allow_delete_record_delay_step` (integer)

  - `staff` (object)
    team member parameters

  - `staff.id` (number)
    team member ID

  - `staff.name` (string)
    team member name

  - `staff.specialization` (string)
    team member specialization

  - `staff.position` (object)
    team member's position

  - `staff.position.id` (number)
    Job ID

  - `staff.position.title` (string)
    Job title

  - `staff.show_rating` (number)
    Whether to show team member rating (1 - show, 0 - do not show)

  - `staff.rating` (number)
    team member rating (from 0 to 5)

  - `staff.votes_count` (number)
    Number of votes that rated the team member

  - `staff.avatar` (string)
    Path to team member profile picture

  - `staff.comments_count` (number)
    Number of comments to a team member

  - `clients_count` (integer)

  - `date` (string)
    04-02T12:00:00Z' (required, string) - Session date

  - `datetime` (string)
    Session date in ISO

  - `create_date` (string)
    04-02T12:00:00Z' (required, string) - Appointment creation date

  - `comment` (string)
    Appointment Comment

  - `deleted` (boolean)
    Whether the appointment was made (true if removed)

  - `attendance` (number)
    2 - the user confirmed the appointment, 1 - the user came, the services were provided, 0 - the user was waiting, -1 - the user did not show'

  - `length` (number)
    Session duration

  - `notify_by_sms` (number)
    Specifies how many hours in advance an SMS reminder should be sent before the appointment. Set to 0 to disable SMS reminders

  - `notify_by_email` (number)
    Specifies how many hours in advance an email reminder should be sent before the appointment. Set to 0 to disable email reminders

  - `master_requested` (boolean)
    Indicates whether a specific team member was selected for the appointment. Set to false if the "any team member" option was chosen.

  - `online` (boolean)
    Indicates whether the appointment was created online by the client (true) or manually by an administrator (false)

  - `api_id` (string)
    External appointment ID

  - `last_change_date` (string)
    The date and time when the appointment was last modified

  - `prepaid` (boolean)
    Indicates whether online payment is available for the appointment

  - `prepaid_confirmed` (boolean)
    Online payment status

  - `activity_id` (number)
    group  event ID

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object)
    Additional response data.

  - `meta.message` (string)
    Error message.
    Example: Authentication needed.

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object)
    Additional response data.

  - `meta.message` (string)
    Error message.
    Example: Access denied.

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object | array)
    Additional response data (empty object or empty array)
    Example: {}

