show
GET
/api/v1/accounts/:account_id/locations/:id
Show a location
Returns a single location by ID.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id
|
Must be a Integer | Required |
Parent store ID |
id
|
Must be a Integer | Required |
Location ID |
Error Codes
| Code | Description |
|---|---|
401
|
Unauthorized – invalid or missing API token |
404
|
Location not found |
Returns
Code: 200
A location object
| 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 |