List nearby stores
Stores
List nearby stores
Find the nearest merchant locations from a latitude and longitude.
GET
List nearby stores
Returns stores sorted by distance from a reference point. Use this endpoint when the customer shares their location and you need the closest stores up to a given limit — for example, a map view or a “nearest location” picker.
Requires a Fire spark access token obtained through token
exchange. For a full paginated catalog,
use list stores.
Headers
| Header | Required | Description |
|---|---|---|
x-brand-id | No | Filter stores by brand. External brand identifier — alphanumeric characters, _, and - only. 1–64 characters. When omitted, all stores for the merchant are returned. |
Query parameters
| Parameter | Required | Description |
|---|---|---|
latitude | Yes | Reference latitude. Between -90 and 90. |
longitude | Yes | Reference longitude. Between -180 and 180. |
limit | Yes | Maximum number of stores to return. 1–100. |
Request
Response
The response wraps an array of store objects indata, ordered from nearest to farthest. Each object uses the same shape as list stores, including cms_template_id and cms when a CMS template is assigned. Only ACTIVE stores are included.
How distance is calculated
Fire spark ranks stores by straight-line distance from the provided coordinates to each store’slocation.latitude and location.longitude. Delivery coverage zones are not applied at this stage — check channels[channel].fulfillment[type].coverage_zones after the customer selects a store.
Store fields
See list stores for the full store schema.Error responses
| Status | Description |
|---|---|
400 | Missing or invalid latitude, longitude, or limit. |
401 | Missing or invalid access token. |
403 | Token does not have access to this merchant’s stores. |