---
title: "Get Location"
method: GET
path: "/v1/locations/{locationId}"
tags: ["Locations"]
---

# Get Location

`GET /v1/locations/{locationId}`

Returns a location object.

## Path parameters

- `locationId` string, required

## Response `200`

Returns a location object.

- LocationsGetResponseBody — This is an object representing a location.
  - `id` string, required — Unique location ID, assigned by the Voucherify API.
  - `object` 'location', required — The type of the object represented by JSON. This object stores information about a `location`.
  - `name` string, required — Location name.
  - `shape` union, required — Defines the shape and boundaries of the location.
    - object — This is an object representing a circular shape.
      - `type` 'circle', required — The type of shape being defined is a `circle`.
      - `format` 'distance', required — The location is defined in terms of a `distance` object.
      - `distance` object, required — Defines the parameters for the circle.
        - `center` string — Center of the circle identified by GPS coordinates in decimal degrees.
        - `radius` string — Defines the radius of the circle.
    - object — This is an object representing a polygon.
      - `type` 'polygon', required — The type of shape being defined is a `polygon`.
      - `format` 'geojson', required — The location is defined in terms of a `geojson` object.
      - `geojson` union, required
        - GeojsonPolygon — Defines the parameters for the polygon.
          - `type` 'Polygon', required — Type of geojson coordinates, i.e. `Polygon`.
          - `coordinates` array[], required
            - integer[]
        - GeojsonMultiPolygon — Defines the parameters for the polygon.
          - `type` 'MultiPolygon', required — Type of geojson coordinates, i.e. `MultiPolygon`.
          - `coordinates` PolygonCoordinates[], required
            - array[]
              - …
  - `created_at` string, date-time, required — Timestamp representing the date and time when the location was created. The value is shown in the ISO 8601 format.
  - `updated_at` string, date-time, nullable, required — Timestamp representing the date and time when the location was updated. The value is shown in the ISO 8601 format.

---

[API](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions.md) · [All operations](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voucherifyio/voucherify-api-async-actions/revisions/4982266e0494/schema)
