You are viewing an old version of the API
Retrieve location

Retrieves details of a location

Required permissions MERCHANT_PROFILE_READ

Path Parameters

Name Description
location_id
string

Required

The ID of the location to retrieve.

Response Fields

Name Description
errors
Error [ ]

Information on errors encountered during the request.

location
Location

The requested location.

Examples

You are viewing an old version of the API
GET /v2/locations/{location_id}
cURL
  • cURL
  • Ruby
  • Python
curl https://connect.squareup.com/v2/locations/{location_id} \
  -H 'Square-Version: 2019-11-20' \
  -H 'Authorization: Bearer ACCESS_TOKEN'
Response JSON
{
  "location": {
    "id": "18YC4JDH91E1H",
    "name": "Jet Fuel Coffee - Grant Park",
    "address": {
      "address_line_1": "123 Main St",
      "locality": "San Francisco",
      "administrative_district_level_1": "CA",
      "postal_code": "94114",
      "country": "US"
    },
    "timezone": "America/Los_Angeles",
    "capabilities": [
      "CREDIT_CARD_PROCESSING"
    ],
    "status": "ACTIVE",
    "created_at": "2016-09-19T17:33:12Z",
    "merchant_id": "3MYCJG5GVYQ8Q",
    "country": "US",
    "language_code": "en-US",
    "currency": "USD",
    "phone_number": "+1 650-354-7217",
    "business_name": "Jet Fuel Coffee"
  }
}

Share Feedback

Thanks for visiting the Square API documentation. What's on your mind?