DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsLocationsList Locations
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Analytics & Tracking
Locations
List LocationsLocation Details
Tax
Global Data
SEO
Error Handling
Geography
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
REST API
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

List Locations

Retrieve all store locations.

Updated March 29, 2026

On this page
  • Overview
  • SDK Usage
  • Store Locator Example
  • REST API
  • Next Steps

Overview

List physical store locations configured for your organization. Useful for store locator pages and local pickup options.

SDK Usage

typescript
import dash from "@/lib/dash"

const { locations } = await dash.locations.list()
// locations = [{ id, name, address, city, state, zip, phone, hours, ... }]

Store Locator Example

typescript
// app/locations/page.tsx
import dash from "@/lib/dash"

export default async function LocationsPage() {
  const { locations } = await dash.locations.list()

  return (
    <div>
      <h1>Our Locations</h1>
      {locations.map(loc => (
        <div key={loc.id} className="border rounded p-4 mb-4">
          <h2>{loc.name}</h2>
          <p>{loc.address}, {loc.city}, {loc.state} {loc.zip}</p>
          <p>Phone: {loc.phone}</p>
        </div>
      ))}
    </div>
  )
}

REST API

shell
GET /storefront/locations
X-API-Key: pk_live_your_key

Next Steps

  • Location Details — Single location info
PreviousFirst-Party Analytics (Insights)NextLocation Details

On this page

  • Overview
  • SDK Usage
  • Store Locator Example
  • REST API
  • Next Steps