---
updatedAt: 2026-06-12T23:00:16.000Z
agentTools:
  projectIndex: https://developers.7shifts.com/llms.txt
---

# Create Location

**[Minimum Plan Required](https://developers.7shifts.com/docs/plan-requirements):** Comp

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "7shifts API",
    "contact": {
      "email": "api-support@7shifts.com"
    },
    "version": "2026-06-01"
  },
  "servers": [
    {
      "url": "https://api.7shifts.com",
      "description": "Production server"
    }
  ],
  "paths": {
    "/v2/company/{company_id}/locations": {
      "post": {
        "tags": [
          "Locations"
        ],
        "summary": "Create Location",
        "operationId": "createLocation",
        "x-public-api": true,
        "parameters": [
          {
            "name": "x-api-version",
            "in": "header",
            "description": "7shifts API version",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "An API version",
              "example": "2022-05-01"
            }
          },
          {
            "name": "x-company-guid",
            "in": "header",
            "description": "Company GUID",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "1310bfe1-cb3f-4f24-98a2-fde2bc504108"
          },
          {
            "name": "company_id",
            "in": "path",
            "description": "Company ID",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1234
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "example": "Quackers",
                    "description": "Location name"
                  },
                  "country": {
                    "type": "string",
                    "description": "Country two letter abbreviation",
                    "example": "CA",
                    "maxLength": 2
                  },
                  "formatted_address": {
                    "type": "string",
                    "description": "Full address",
                    "example": "701 Broadway Ave #200, MadeUpCity, SK SVN 1C3, Canada"
                  },
                  "state": {
                    "type": "string",
                    "nullable": true,
                    "example": "ON",
                    "description": "State or province"
                  },
                  "city": {
                    "type": "string",
                    "nullable": true,
                    "example": "Toronto",
                    "description": "City"
                  },
                  "latitude": {
                    "type": "string",
                    "description": "locations latitude coordinates"
                  },
                  "longitude": {
                    "type": "string",
                    "description": "locations longitude coordinates"
                  },
                  "place_id": {
                    "type": "string",
                    "description": "Google Places location Id"
                  },
                  "timezone": {
                    "type": "string",
                    "example": "America/Chicago",
                    "description": "Timezone. Valid zone info name"
                  },
                  "holiday_pay": {
                    "type": "boolean",
                    "example": false,
                    "description": "When true, holiday pay is enabled"
                  },
                  "sun_hours_close": {
                    "default": "00:00:00",
                    "description": "Sunday closing time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "mon_hours_close": {
                    "default": "00:00:00",
                    "description": "Monday closing time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "tue_hours_close": {
                    "default": "00:00:00",
                    "description": "Tuesday closing time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "wed_hours_close": {
                    "default": "00:00:00",
                    "description": "Wednesday closing time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "thu_hours_close": {
                    "default": "00:00:00",
                    "description": "Thursday closing time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "fri_hours_close": {
                    "default": "00:00:00",
                    "description": "Friday closing time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "sat_hours_close": {
                    "default": "00:00:00",
                    "description": "Saturday closing time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "sun_hours_open": {
                    "default": "07:00:00",
                    "description": "Sunday opening time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "mon_hours_open": {
                    "default": "07:00:00",
                    "nullable": true,
                    "description": "Monday opening time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "tue_hours_open": {
                    "default": "07:00:00",
                    "nullable": true,
                    "description": "Tuesday opening time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "wed_hours_open": {
                    "default": "07:00:00",
                    "nullable": true,
                    "description": "Wednesday opening time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "thu_hours_open": {
                    "default": "07:00:00",
                    "nullable": true,
                    "description": "Thursday opening time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "fri_hours_open": {
                    "default": "07:00:00",
                    "nullable": true,
                    "description": "Friday opening time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "sat_hours_open": {
                    "default": "07:00:00",
                    "nullable": true,
                    "description": "Saturday opening time",
                    "type": "string",
                    "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                    "example": 57030
                  },
                  "sun_is_closed": {
                    "type": "boolean",
                    "nullable": true,
                    "example": true,
                    "description": "If true, location is closed on Sunday"
                  },
                  "mon_is_closed": {
                    "type": "boolean",
                    "nullable": true,
                    "example": true,
                    "description": "If true, location is closed on Monday"
                  },
                  "tue_is_closed": {
                    "type": "boolean",
                    "nullable": true,
                    "example": true,
                    "description": "If true, location is closed on Tuesday"
                  },
                  "wed_is_closed": {
                    "type": "boolean",
                    "nullable": true,
                    "example": true,
                    "description": "If true, location is closed on Wednesday"
                  },
                  "thu_is_closed": {
                    "type": "boolean",
                    "nullable": true,
                    "example": true,
                    "description": "If true, location is closed on Thursday"
                  },
                  "fri_is_closed": {
                    "type": "boolean",
                    "nullable": true,
                    "example": true,
                    "description": "If true, location is closed on Friday"
                  },
                  "sat_is_closed": {
                    "type": "boolean",
                    "nullable": true,
                    "example": true,
                    "description": "If true, location is closed on Saturday"
                  },
                  "enable_shift_feedback": {
                    "type": "boolean",
                    "example": true,
                    "description": "If true end of shift feedback requests are enabled"
                  },
                  "shift_feedback": {
                    "type": "boolean",
                    "example": true,
                    "description": "If true end of shift feedback requests are enabled"
                  },
                  "coupon": {
                    "type": "string",
                    "example": "Quakers",
                    "description": "Optional coupon to apply to this location's billing",
                    "nullable": true
                  },
                  "stripe_token_id": {
                    "type": "string",
                    "example": "tok_1KG8LT2eZvKYlo2CODSv0IXB",
                    "description": "Optional stripe payment token. If this is not provided, the account's default payment information will be used."
                  },
                  "copy_from_id": {
                    "type": "integer",
                    "example": 123,
                    "description": "Optional existing location id whose department and role structure the new location should copy",
                    "nullable": true
                  }
                },
                "required": [
                  "name",
                  "country"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "location"
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 1234,
                          "description": "Location ID"
                        },
                        "company_id": {
                          "type": "integer",
                          "example": 1234,
                          "description": "Company ID"
                        },
                        "name": {
                          "type": "string",
                          "example": "Quackers",
                          "description": "Location name"
                        },
                        "country": {
                          "type": "string",
                          "example": "CA",
                          "description": "Country"
                        },
                        "state": {
                          "type": "string",
                          "nullable": true,
                          "example": "ON",
                          "description": "State or province"
                        },
                        "city": {
                          "type": "string",
                          "nullable": true,
                          "example": "Toronto",
                          "description": "City"
                        },
                        "formatted_address": {
                          "type": "string",
                          "nullable": true,
                          "example": "200 Bathurst Street, Toronto, ON, Canada",
                          "description": "Full formatted address"
                        },
                        "lat": {
                          "type": "number",
                          "example": 43.6478436,
                          "nullable": true,
                          "description": "Latitude"
                        },
                        "lng": {
                          "type": "number",
                          "example": -79.4043708,
                          "nullable": true,
                          "description": "Longitude"
                        },
                        "place_id": {
                          "type": "string",
                          "nullable": true,
                          "example": "ChIJUyrhFOc0K4gRyuFq6AUlfmE",
                          "description": "Internal use"
                        },
                        "timezone": {
                          "type": "string",
                          "example": "America/Chicago",
                          "description": "Timezone. Valid zone info name"
                        },
                        "timezone_updated": {
                          "type": "boolean",
                          "nullable": true,
                          "example": true,
                          "description": "Internal use"
                        },
                        "hash": {
                          "type": "string",
                          "description": "Internal use"
                        },
                        "mapping_id": {
                          "nullable": true,
                          "type": "string",
                          "description": "Internal use"
                        },
                        "department_based_budget": {
                          "type": "boolean",
                          "nullable": true,
                          "example": false,
                          "description": "When true, department based budgeting is enabled"
                        },
                        "holiday_pay": {
                          "type": "boolean",
                          "example": false,
                          "description": "When true, holiday pay is enabled"
                        },
                        "auto_send_log_book_time": {
                          "type": "string",
                          "nullable": true,
                          "example": "03:00",
                          "description": "Time the log book is automatically send"
                        },
                        "sun_hours_close": {
                          "default": "00:00:00",
                          "description": "Sunday closing time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "mon_hours_close": {
                          "default": "00:00:00",
                          "description": "Monday closing time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "tue_hours_close": {
                          "default": "00:00:00",
                          "description": "Tuesday closing time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "wed_hours_close": {
                          "default": "00:00:00",
                          "description": "Wednesday closing time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "thu_hours_close": {
                          "default": "00:00:00",
                          "description": "Thursday closing time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "fri_hours_close": {
                          "default": "00:00:00",
                          "description": "Friday closing time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "sat_hours_close": {
                          "default": "00:00:00",
                          "description": "Saturday closing time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "sun_hours_open": {
                          "default": "07:00:00",
                          "nullable": true,
                          "description": "Sunday opening time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "mon_hours_open": {
                          "default": "07:00:00",
                          "nullable": true,
                          "description": "Monday opening time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "tue_hours_open": {
                          "default": "07:00:00",
                          "nullable": true,
                          "description": "Tuesday opening time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "wed_hours_open": {
                          "default": "07:00:00",
                          "nullable": true,
                          "description": "Wednesday opening time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "thu_hours_open": {
                          "default": "07:00:00",
                          "nullable": true,
                          "description": "Thursday opening time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "fri_hours_open": {
                          "default": "07:00:00",
                          "nullable": true,
                          "description": "Friday opening time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "sat_hours_open": {
                          "default": "07:00:00",
                          "nullable": true,
                          "description": "Saturday opening time",
                          "type": "string",
                          "pattern": "^(?:(?:([01]?\\d|2[0-3]):)?([0-5]?\\d):)?([0-5]?\\d)$",
                          "example": 57030
                        },
                        "sun_is_closed": {
                          "type": "boolean",
                          "nullable": true,
                          "example": true,
                          "description": "If true, location is closed on Sunday"
                        },
                        "mon_is_closed": {
                          "type": "boolean",
                          "nullable": true,
                          "example": true,
                          "description": "If true, location is closed on Monday"
                        },
                        "tue_is_closed": {
                          "type": "boolean",
                          "nullable": true,
                          "example": true,
                          "description": "If true, location is closed on Tuesday"
                        },
                        "wed_is_closed": {
                          "type": "boolean",
                          "nullable": true,
                          "example": true,
                          "description": "If true, location is closed on Wednesday"
                        },
                        "thu_is_closed": {
                          "type": "boolean",
                          "nullable": true,
                          "example": true,
                          "description": "If true, location is closed on Thursday"
                        },
                        "fri_is_closed": {
                          "type": "boolean",
                          "nullable": true,
                          "example": true,
                          "description": "If true, location is closed on Friday"
                        },
                        "sat_is_closed": {
                          "type": "boolean",
                          "nullable": true,
                          "example": true,
                          "description": "If true, location is closed on Saturday"
                        },
                        "shift_feedback": {
                          "type": "boolean",
                          "example": true,
                          "description": "If true end of shift feedback requests are enabled"
                        },
                        "message": {
                          "type": "string",
                          "nullable": true,
                          "example": "msg",
                          "description": "Message visible to all employees"
                        },
                        "deleted": {
                          "type": "boolean",
                          "description": "If true the location is deleted"
                        },
                        "created": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2020-01-01T12:00:00+00:00"
                        },
                        "modified": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2020-01-02T12:00:00+00:00"
                        }
                      },
                      "required": [
                        "id",
                        "company_id",
                        "name",
                        "country",
                        "timezone",
                        "hash",
                        "sun_hours_close",
                        "mon_hours_close",
                        "tue_hours_close",
                        "wed_hours_close",
                        "thu_hours_close",
                        "fri_hours_close",
                        "sat_hours_close",
                        "sun_hours_open",
                        "mon_hours_open",
                        "tue_hours_open",
                        "wed_hours_open",
                        "thu_hours_open",
                        "fri_hours_open",
                        "sat_hours_open",
                        "sun_is_closed",
                        "mon_is_closed",
                        "tue_is_closed",
                        "wed_is_closed",
                        "thu_is_closed",
                        "fri_is_closed",
                        "sat_is_closed",
                        "shift_feedback",
                        "department_based_budget",
                        "state",
                        "city",
                        "formatted_address",
                        "place_id",
                        "message",
                        "created",
                        "modified"
                      ]
                    }
                  },
                  "required": [
                    "object",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                },
                "examples": {
                  "400": {
                    "summary": "An example of a 400 response",
                    "value": {
                      "type": "basic",
                      "title": "This is a Bad Request error message",
                      "status": 400,
                      "detail": "A human-readable explanation specific to this occurrence of the problem.",
                      "code": 400,
                      "param": "param"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                },
                "examples": {
                  "403": {
                    "summary": "An example of a 403 response",
                    "value": {
                      "type": "basic",
                      "title": "This is a Forbidden error message",
                      "status": 403,
                      "detail": "A human-readable explanation specific to this occurrence of the problem.",
                      "code": 403,
                      "param": "param"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                },
                "examples": {
                  "500": {
                    "summary": "An example of a 500 response",
                    "value": {
                      "type": "basic",
                      "title": "This is a Server error message",
                      "status": 500,
                      "detail": "A human-readable explanation specific to this occurrence of the problem.",
                      "code": 500,
                      "param": "param"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://app.7shifts.com/oauth2/token",
            "refreshUrl": "https://app.7shifts.com/oauth2/token",
            "scopes": {
              "v1_access": "Required to access APIv1 endpoints."
            }
          },
          "password": {
            "tokenUrl": "https://app.7shifts.com/oauth2/token",
            "refreshUrl": "https://app.7shifts.com/oauth2/token",
            "scopes": {
              "v1_access": "Required to access APIv1 endpoints."
            }
          },
          "authorizationCode": {
            "authorizationUrl": "https://app.7shifts.com/oauth2/authorize",
            "tokenUrl": "https://app.7shifts.com/oauth2/token",
            "refreshUrl": "https://app.7shifts.com/oauth2/token",
            "scopes": {
              "v1_access": "Required to access APIv1 endpoints."
            }
          }
        }
      },
      "cookieAuth": {
        "type": "apiKey",
        "in": "cookie",
        "name": "7session"
      }
    }
  },
  "security": [
    {
      "OAuth2": []
    },
    {
      "cookieAuth": []
    }
  ],
  "tags": [
    {
      "name": "Locations"
    }
  ]
}
```