Locations

Retrieve Location

get/v2/company/{company_id}/locations/{location_id}

Request

  • Base URL
    https://api.7shifts.com
  • Auth
    • OAuth 2
      Authorization codehttps://app.7shifts.com/oauth2/authorize
      Client credentials
      Password
      Token URLhttps://app.7shifts.com/oauth2/token
    • or API key in cookie 7session

Path parameters

company_idinteger required

Company ID

location_idinteger required

Location ID

Headers

x-api-versionstring

An API version

Example:2022-05-01

7shifts API version

x-company-guidstring uuid

Company GUID

Response

OK

object'location' required

Example response

{
  "data": {
    "id": 1234,
    "company_id": 1234,
    "name": "Quackers",
    "country": "CA",
    "state": "ON",
    "city": "Toronto",
    "formatted_address": "200 Bathurst Street, Toronto, ON, Canada",
    "lat": 43.6478436,
    "lng": -79.4043708,
    "place_id": "ChIJUyrhFOc0K4gRyuFq6AUlfmE",
    "timezone": "America/Chicago",
    "timezone_updated": true,
    "auto_send_log_book_time": "03:00",
    "sun_is_closed": true,
    "mon_is_closed": true,
    "tue_is_closed": true,
    "wed_is_closed": true,
    "thu_is_closed": true,
    "fri_is_closed": true,
    "sat_is_closed": true,
    "shift_feedback": true,
    "message": "msg",
    "created": "2020-01-01T12:00:00+00:00",
    "modified": "2020-01-02T12:00:00+00:00"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.