List Locations
Retrieve all store locations.
Updated
On this page
Overview
List physical store locations configured for your organization. Useful for store locator pages and local pickup options.
SDK Usage
import dash from "@/lib/dash"
const { locations } = await dash.locations.list()
// locations = [{ id, name, address, city, state, zip, phone, hours, ... }]
Store Locator Example
// 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
GET /storefront/locations
X-API-Key: pk_live_your_key
Next Steps
- Location Details — Single location info