---
title: "Returns all variations and its respective pricings for a specific location."
method: GET
path: "/variations"
tags: ["Variations"]
---

# Returns all variations and its respective pricings for a specific location.

`GET /variations`

Note: Variations are defined by location through pricing. Deleted variations do not belong to any location

## Query parameters

- `location_partner_id` string
- `location_mytime_id` string
- `with_deleted` boolean

## Headers

- `X-Subdomain` string
- `X-Partner` string

## Response `200`

variations response

- Variations[]
  - `variations` ServiceVariation[], required
    - `name` string
    - `service_name` string
    - `description` string
    - `external_id` string
    - `id` integer
    - `duration` integer
    - `add_on` boolean
    - `bookable` boolean
    - `pricings` VariationPricings[]
      - unknown
    - `segment_templates` SegmentTemplate[]
      - `id` integer
      - `kind` string
      - `position` integer
      - `duration` integer
      - `variation_id` integer
      - `durations` Duration[]
        - `id` integer
        - `employee_id` integer, nullable
        - `location_id` integer, nullable
        - `segment_template_id` integer
        - `time_span` integer

## Other responses

- `401` — Unauthorized
- `422` — Invalid parameters
- `500` — Internal Server Error
- `504` — Gateway Timeout

---

[API](https://skmtc.net/mytime/apis/mytime-partners-api.md) · [All operations](https://skmtc.net/mytime/apis/mytime-partners-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mytime/mytime-partners-api/versions/65d3a27fcb1a/schema)
