<- Locations API

Locations API

All versions ->

Retrieve location

GET

 /v2/locations/{location_id}

Retrieves details of a location.

You can specify "main" as the location ID to retrieve details of the main location. For more information, see Locations API Overview.

Permissions:MERCHANT_PROFILE_READ
Try in API Explorer
Link to section

Path parameters

Example code

Link to section

location_id

string

Required

The ID of the location to retrieve. If you specify the string "main", then the endpoint returns the main location.

Link to section

Response fields

Link to section

errors

Information on errors encountered during the request.

Link to section

location

The requested location.