index

GET /api/v1/accounts/:account_id/locations

List all locations

Returns every physical location belonging to the specified store.

Parameters

Name Type Required Description
account_id Must be a Integer Required

Parent store ID

Error Codes

Code Description
401 Unauthorized – invalid or missing API token
404 Store not found or not accessible

Returns

Code: 200

An array of location objects

Name Type Required Description
id Must be a Integer Required

Unique location ID

account_id Must be a Integer Required

Parent store ID

name Must be a String Required

Location name (e.g. ‘Downtown Branch’)

address Must be a String Required

Full street address

latitude Must be a Float Required

Geocoded latitude (auto-derived from address)

(nil allowed)
longitude Must be a Float Required

Geocoded longitude (auto-derived from address)

(nil allowed)
created_at Must be a String Required

ISO 8601 creation timestamp

updated_at Must be a String Required

ISO 8601 last-update timestamp