> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetStoresLocation

# Package: catalogV3

# Namespace: StoresLocationService

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/stores-locations-v3/get-stores-location.md

## Permission Scopes:
Read Stores Locations in v3 catalog (PII): SCOPE.STORES.LOCATION_READ_LIMITED

## Introduction

Retrieves a Stores location.

---

## REST API

### Schema

```
 Method: getStoresLocation
 Description: Retrieves a Stores location.
 URL: https://www.wixapis.com/stores/v3/locations/{storesLocationId}
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  storesLocationId
 Method parameters: 
   param name: storesLocationId | type:   none | required: true 
 Return type: GetStoresLocationResponse
  - name: storesLocation | type: StoresLocation | description: Stores location.  
     - name: id | type: string | description: Stores location GUID.  | read-only: true | validation: format GUID
     - name: revision | type: string | description: Revision number, which increments by 1 each time the Stores location is updated. To prevent conflicting changes, the current revision must be passed when updating the Stores location.  Ignored when creating a Stores location.  | read-only: true | validation: format int64
     - name: createdDate | type: string | description: Date and time the Stores location was created.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time the Stores location was last updated.  | read-only: true | validation: format date-time
     - name: wixLocationId | type: string | description: Wix location GUID. Learn more about the [Locations API](https://dev.wix.com/docs/api-reference/business-management/locations/introduction.md).  | validation: format GUID, immutable
     - name: locationType | type: LocationType | description: Location type.  | read-only: true 
         - enum:
         -     VIRTUAL: Online store.
         -     PHYSICAL: Physical location, for example, POS.
     - name: name | type: string | description: Stores location name.  | read-only: true | validation: minLength 1, maxLength 150
     - name: defaultLocation | type: boolean | description: Whether the location is the site's default location.  | read-only: true 


```

### Examples

### Get StoresLocation
Get single StoresLocation by id

```curl
curl -X GET \
'https://www.wixapis.com/stores/v3/locations/5b0059cf-db7d-4685-a3d3-4e9ae6b2094d' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.stores.storesLocationsV3.getStoresLocation(storesLocationId)
 Description: Retrieves a Stores location.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  storesLocationId
 Method parameters: 
   param name: storesLocationId | type: string | description: Stores location GUID. | required: true | validation: format GUID
 Return type: PROMISE<StoresLocation>
  - name: _id | type: string | description: Stores location GUID.  | read-only: true | validation: format GUID
  - name: revision | type: string | description: Revision number, which increments by 1 each time the Stores location is updated. To prevent conflicting changes, the current revision must be passed when updating the Stores location.  Ignored when creating a Stores location.  | read-only: true | validation: format int64
  - name: _createdDate | type: Date | description: Date and time the Stores location was created.  | read-only: true 
  - name: _updatedDate | type: Date | description: Date and time the Stores location was last updated.  | read-only: true 
  - name: wixLocationId | type: string | description: Wix location GUID. Learn more about the [Locations API](https://dev.wix.com/docs/api-reference/business-management/locations/introduction.md).  | validation: format GUID, immutable
  - name: locationType | type: LocationType | description: Location type.  | read-only: true 
     - enum:
     -     VIRTUAL: Online store.
     -     PHYSICAL: Physical location, for example, POS.
  - name: name | type: string | description: Stores location name.  | read-only: true | validation: minLength 1, maxLength 150
  - name: defaultLocation | type: boolean | description: Whether the location is the site's default location.  | read-only: true 


```

### Examples

### getStoresLocation
```javascript
import { storesLocationsV3 } from '@wix/stores';

async function getStoresLocation(storesLocationId) {
  const response = await storesLocationsV3.getStoresLocation(storesLocationId);
};
```

### getStoresLocation (with elevated permissions)
```javascript
import { storesLocationsV3 } from '@wix/stores';
import { auth } from '@wix/essentials';

async function myGetStoresLocationMethod(storesLocationId) {
  const elevatedGetStoresLocation = auth.elevate(storesLocationsV3.getStoresLocation);
  const response = await elevatedGetStoresLocation(storesLocationId);
}
```

### getStoresLocation (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { storesLocationsV3 } from '@wix/stores';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { storesLocationsV3 },
  // Include the auth strategy and host as relevant
});


async function getStoresLocation(storesLocationId) {
  const response = await myWixClient.storesLocationsV3.getStoresLocation(storesLocationId);
};
```

---