---
title: "CreateLocation"
method: POST
path: "/v2/locations"
tags: ["Locations"]
---

# CreateLocation

`POST /v2/locations`

Creates a location.

## Request body

- CreateLocationRequest — Request object for the [CreateLocation](https://developer.squareup.com/reference/square_2021-08-18/locations-api/create-location) endpoint.
  - `location` Location
    - `address` Address — Represents a postal address in a country. The address format is based on an [open-source library from Google](https://github.com/google/libaddressinput). For more information, see [AddressValidationMetadata](https://github.com/google/libaddressinput/wiki/AddressValidationMetadata). This format has dedicated fields for four address components: postal code, locality (city), administrative district (state, prefecture, or province), and sublocality (town or village). These components have dedicated fields in the `Address` object because software sometimes behaves differently based on them. For example, sales tax software may charge different amounts of sales tax based on the postal code, and some software is only available in certain states due to compliance reasons. For the remaining address components, the `Address` type provides the `address_line_1` and `address_line_2` fields for free-form data entry. These fields are free-form because the remaining address components have too many variations around the world and typical software does not parse these components. These fields enable users to enter anything they want. Note that, in the current implementation, all other `Address` type fields are blank. These include `address_line_3`, `sublocality_2`, `sublocality_3`, `administrative_district_level_2`, `administrative_district_level_3`, `first_name`, `last_name`, and `organization`. When it comes to localization, the seller's language preferences (see [Language preferences](https://developer.squareup.com/docs/locations-api#location-specific-and-seller-level-language-preferences)) are ignored for addresses. Even though Square products (such as Square Point of Sale and the Seller Dashboard) mostly use a seller's language preference in communication, when it comes to addresses, they will use English for a US address, Japanese for an address in Japan, and so on.
      - `address_line_1` string — The first line of the address. Fields that start with `address_line` provide the address's most specific details, like street number, street name, and building name. They do *not* provide less specific details like city, state/province, or country (these details are provided in other fields).
      - `address_line_2` string — The second line of the address, if any.
      - `address_line_3` string — The third line of the address, if any.
      - `administrative_district_level_1` string — A civil entity within the address's country. In the US, this is the state.
      - `administrative_district_level_2` string — A civil entity within the address's `administrative_district_level_1`. In the US, this is the county.
      - `administrative_district_level_3` string — A civil entity within the address's `administrative_district_level_2`, if any.
      - `country` string — The address's country, in ISO 3166-1-alpha-2 format.
      - `first_name` string — Optional first name when it's representing recipient.
      - `last_name` string — Optional last name when it's representing recipient.
      - `locality` string — The city or town of the address.
      - `organization` string — Optional organization name when it's representing recipient.
      - `postal_code` string — The address's postal code.
      - `sublocality` string — A civil region within the address's `locality`, if any.
      - `sublocality_2` string — A civil region within the address's `sublocality`, if any.
      - `sublocality_3` string — A civil region within the address's `sublocality_2`, if any.
    - `business_email` string — The email of the location. This email is visible to the customers of the location. For example, the email appears on customer receipts. For example, `help&#64;squareup.com`.
    - `business_hours` BusinessHours — Represents the hours of operation for a business location.
      - `periods` BusinessHoursPeriod[] — The list of time periods during which the business is open. There may be at most 10 periods per day.
        - `day_of_week` string — The day of week for this time period.
        - `end_local_time` string — The end time of a business hours period, specified in local time using partial-time RFC 3339 format.
        - `start_local_time` string — The start time of a business hours period, specified in local time using partial-time RFC 3339 format.
    - `business_name` string — The business name of the location This is the name visible to the customers of the location. For example, this name appears on customer receipts.
    - `capabilities` string[] — The Square features that are enabled for the location. See [LocationCapability](https://developer.squareup.com/reference/square_2021-08-18/enums/LocationCapability) for possible values.
    - `coordinates` Coordinates — Latitude and longitude coordinates.
      - `latitude` number — The latitude of the coordinate expressed in degrees.
      - `longitude` number — The longitude of the coordinate expressed in degrees.
    - `country` string — The country of the location, in ISO 3166-1-alpha-2 format. See [Country](https://developer.squareup.com/reference/square_2021-08-18/enums/Country) for possible values.
    - `created_at` string — The time when the location was created, in RFC 3339 format. For more information, see [Working with Dates](https://developer.squareup.com/docs/build-basics/working-with-dates).
    - `currency` string — The currency used for all transactions at this location, in ISO 4217 format. See [Currency](https://developer.squareup.com/reference/square_2021-08-18/enums/Currency) for possible values.
    - `description` string — The description of the location.
    - `facebook_url` string — The Facebook profile URL of the location. The URL should begin with 'facebook.com/'. For example, `https://www.facebook.com/square`.
    - `full_format_logo_url` string — The URL of a full-format logo image for the location. The Seller must choose this logo in the Seller dashboard (Receipts section) for the logo to appear on transactions (such as receipts, invoices) that Square generates on behalf of the Seller. This image can have an aspect ratio of 2:1 or greater and is recommended to be at least 1280x648 pixels.
    - `id` string — The Square-issued ID of the location.
    - `instagram_username` string — The Instagram username of the location without the '&#64;' symbol. For example, `square`.
    - `language_code` string — The language associated with the location, in [BCP 47 format](https://tools.ietf.org/html/bcp47#appendix-A). For more information, see [Location language code](https://developer.squareup.com/docs/locations-api#location-language-code).
    - `logo_url` string — The URL of the logo image for the location. The Seller must choose this logo in the Seller dashboard (Receipts section) for the logo to appear on transactions (such as receipts, invoices) that Square generates on behalf of the Seller. This image should have an aspect ratio close to 1:1 and is recommended to be at least 200x200 pixels.
    - `mcc` string — The merchant category code (MCC) of the location, as standardized by ISO 18245. The MCC describes the kind of goods or services sold at the location.
    - `merchant_id` string — The ID of the merchant that owns the location.
    - `name` string — The name of the location. This information appears in the dashboard as the nickname. A location name must be unique within a seller account.
    - `phone_number` string — The phone number of the location in human readable format. For example, `+353 80 0 098 8099`.
    - `pos_background_url` string — The URL of the Point of Sale background image for the location.
    - `status` string — The status of the location, either active or inactive.
    - `tax_ids` TaxIds — The tax IDs that a Location is operating under.
      - `eu_vat` string — The EU VAT number for this location. For example, "IE3426675K". If the EU VAT number is present, it is well-formed and has been validated with VIES, the VAT Information Exchange System.
      - `fr_naf` string — The French government uses the NAF (Nomenclature des Activités Françaises) to display and track economic statistical data. This is also called the APE (Activite Principale de l’Entreprise) code. For example, 6910Z.
      - `fr_siret` string — The SIRET (Système d'Identification du Répertoire des Entreprises et de leurs Etablissements) number is a 14 digits code issued by the French INSEE. For example, "39922799000021".
    - `timezone` string — The [IANA Timezone](https://www.iana.org/time-zones) identifier for the timezone of the location.
    - `twitter_username` string — The Twitter username of the location without the '&#64;' symbol. For example, `Square`.
    - `type` string — The type of the location, either physical or mobile.
    - `website_url` string — The website URL of the location. For example, `https://squareup.com`.

## Response `200`

Success

- CreateLocationResponse — Response object returned by the [CreateLocation](https://developer.squareup.com/reference/square_2021-08-18/locations-api/create-location) endpoint.
  - `errors` Error[] — Information on errors encountered during the request.
    - `category` string, required — The high-level category for the error.
    - `code` string, required — The specific code of the error.
    - `detail` string — A human-readable description of the error for debugging purposes.
    - `field` string — The name of the field provided in the original request (if any) that the error pertains to.
  - `location` Location
    - `address` Address — Represents a postal address in a country. The address format is based on an [open-source library from Google](https://github.com/google/libaddressinput). For more information, see [AddressValidationMetadata](https://github.com/google/libaddressinput/wiki/AddressValidationMetadata). This format has dedicated fields for four address components: postal code, locality (city), administrative district (state, prefecture, or province), and sublocality (town or village). These components have dedicated fields in the `Address` object because software sometimes behaves differently based on them. For example, sales tax software may charge different amounts of sales tax based on the postal code, and some software is only available in certain states due to compliance reasons. For the remaining address components, the `Address` type provides the `address_line_1` and `address_line_2` fields for free-form data entry. These fields are free-form because the remaining address components have too many variations around the world and typical software does not parse these components. These fields enable users to enter anything they want. Note that, in the current implementation, all other `Address` type fields are blank. These include `address_line_3`, `sublocality_2`, `sublocality_3`, `administrative_district_level_2`, `administrative_district_level_3`, `first_name`, `last_name`, and `organization`. When it comes to localization, the seller's language preferences (see [Language preferences](https://developer.squareup.com/docs/locations-api#location-specific-and-seller-level-language-preferences)) are ignored for addresses. Even though Square products (such as Square Point of Sale and the Seller Dashboard) mostly use a seller's language preference in communication, when it comes to addresses, they will use English for a US address, Japanese for an address in Japan, and so on.
      - `address_line_1` string — The first line of the address. Fields that start with `address_line` provide the address's most specific details, like street number, street name, and building name. They do *not* provide less specific details like city, state/province, or country (these details are provided in other fields).
      - `address_line_2` string — The second line of the address, if any.
      - `address_line_3` string — The third line of the address, if any.
      - `administrative_district_level_1` string — A civil entity within the address's country. In the US, this is the state.
      - `administrative_district_level_2` string — A civil entity within the address's `administrative_district_level_1`. In the US, this is the county.
      - `administrative_district_level_3` string — A civil entity within the address's `administrative_district_level_2`, if any.
      - `country` string — The address's country, in ISO 3166-1-alpha-2 format.
      - `first_name` string — Optional first name when it's representing recipient.
      - `last_name` string — Optional last name when it's representing recipient.
      - `locality` string — The city or town of the address.
      - `organization` string — Optional organization name when it's representing recipient.
      - `postal_code` string — The address's postal code.
      - `sublocality` string — A civil region within the address's `locality`, if any.
      - `sublocality_2` string — A civil region within the address's `sublocality`, if any.
      - `sublocality_3` string — A civil region within the address's `sublocality_2`, if any.
    - `business_email` string — The email of the location. This email is visible to the customers of the location. For example, the email appears on customer receipts. For example, `help&#64;squareup.com`.
    - `business_hours` BusinessHours — Represents the hours of operation for a business location.
      - `periods` BusinessHoursPeriod[] — The list of time periods during which the business is open. There may be at most 10 periods per day.
        - `day_of_week` string — The day of week for this time period.
        - `end_local_time` string — The end time of a business hours period, specified in local time using partial-time RFC 3339 format.
        - `start_local_time` string — The start time of a business hours period, specified in local time using partial-time RFC 3339 format.
    - `business_name` string — The business name of the location This is the name visible to the customers of the location. For example, this name appears on customer receipts.
    - `capabilities` string[] — The Square features that are enabled for the location. See [LocationCapability](https://developer.squareup.com/reference/square_2021-08-18/enums/LocationCapability) for possible values.
    - `coordinates` Coordinates — Latitude and longitude coordinates.
      - `latitude` number — The latitude of the coordinate expressed in degrees.
      - `longitude` number — The longitude of the coordinate expressed in degrees.
    - `country` string — The country of the location, in ISO 3166-1-alpha-2 format. See [Country](https://developer.squareup.com/reference/square_2021-08-18/enums/Country) for possible values.
    - `created_at` string — The time when the location was created, in RFC 3339 format. For more information, see [Working with Dates](https://developer.squareup.com/docs/build-basics/working-with-dates).
    - `currency` string — The currency used for all transactions at this location, in ISO 4217 format. See [Currency](https://developer.squareup.com/reference/square_2021-08-18/enums/Currency) for possible values.
    - `description` string — The description of the location.
    - `facebook_url` string — The Facebook profile URL of the location. The URL should begin with 'facebook.com/'. For example, `https://www.facebook.com/square`.
    - `full_format_logo_url` string — The URL of a full-format logo image for the location. The Seller must choose this logo in the Seller dashboard (Receipts section) for the logo to appear on transactions (such as receipts, invoices) that Square generates on behalf of the Seller. This image can have an aspect ratio of 2:1 or greater and is recommended to be at least 1280x648 pixels.
    - `id` string — The Square-issued ID of the location.
    - `instagram_username` string — The Instagram username of the location without the '&#64;' symbol. For example, `square`.
    - `language_code` string — The language associated with the location, in [BCP 47 format](https://tools.ietf.org/html/bcp47#appendix-A). For more information, see [Location language code](https://developer.squareup.com/docs/locations-api#location-language-code).
    - `logo_url` string — The URL of the logo image for the location. The Seller must choose this logo in the Seller dashboard (Receipts section) for the logo to appear on transactions (such as receipts, invoices) that Square generates on behalf of the Seller. This image should have an aspect ratio close to 1:1 and is recommended to be at least 200x200 pixels.
    - `mcc` string — The merchant category code (MCC) of the location, as standardized by ISO 18245. The MCC describes the kind of goods or services sold at the location.
    - `merchant_id` string — The ID of the merchant that owns the location.
    - `name` string — The name of the location. This information appears in the dashboard as the nickname. A location name must be unique within a seller account.
    - `phone_number` string — The phone number of the location in human readable format. For example, `+353 80 0 098 8099`.
    - `pos_background_url` string — The URL of the Point of Sale background image for the location.
    - `status` string — The status of the location, either active or inactive.
    - `tax_ids` TaxIds — The tax IDs that a Location is operating under.
      - `eu_vat` string — The EU VAT number for this location. For example, "IE3426675K". If the EU VAT number is present, it is well-formed and has been validated with VIES, the VAT Information Exchange System.
      - `fr_naf` string — The French government uses the NAF (Nomenclature des Activités Françaises) to display and track economic statistical data. This is also called the APE (Activite Principale de l’Entreprise) code. For example, 6910Z.
      - `fr_siret` string — The SIRET (Système d'Identification du Répertoire des Entreprises et de leurs Etablissements) number is a 14 digits code issued by the French INSEE. For example, "39922799000021".
    - `timezone` string — The [IANA Timezone](https://www.iana.org/time-zones) identifier for the timezone of the location.
    - `twitter_username` string — The Twitter username of the location without the '&#64;' symbol. For example, `Square`.
    - `type` string — The type of the location, either physical or mobile.
    - `website_url` string — The website URL of the location. For example, `https://squareup.com`.

---

[API](https://skmtc.net/square/apis/squareup.md) · [All operations](https://skmtc.net/square/apis/squareup/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/square/squareup/revisions/8d95e3639487/schema)
