> 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`). > - 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: SCOPE.STORES.LOCATION_READ ## 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. - 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. - name: createdDate | type: string | description: Date and time the Stores location was created. - name: updatedDate | type: string | description: Date and time the Stores location was last updated. - 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). - name: locationType | type: LocationType | description: Location type. - enum: - VIRTUAL: Online store. - PHYSICAL: Physical location, for example, POS. - name: name | type: string | description: Stores location name. - name: defaultLocation | type: boolean | description: Whether the location is the site's default location. ``` ### 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: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.catalogV3.StoresLocationService.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 Return type: PROMISE - name: _id | type: string | description: Stores location 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. - name: _createdDate | type: Date | description: Date and time the Stores location was created. - name: _updatedDate | type: Date | description: Date and time the Stores location was last updated. - 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). - name: locationType | type: LocationType | description: Location type. - enum: - VIRTUAL: Online store. - PHYSICAL: Physical location, for example, POS. - name: name | type: string | description: Stores location name. - name: defaultLocation | type: boolean | description: Whether the location is the site's default location. ``` ### 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-hosted) Self-hosted 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); }; ``` ---