List locations
Request Body
Section titled “Request Body”object
Example
50Example
1object
Only physical locations whose versions have diverged: the canonical record and at least one partner copy hold different values.
Only physical locations the caller owns. Ownership is resolved server-side and is not a value the client sets.
Case-insensitive substring match on the physical location’s externalId.
Case-insensitive substring match on the physical location’s metadata.name.
Only physical locations whose canonical record has a metadata.lastUpdatedAt
strictly after this instant, for polling what has changed since the last
pass. RFC 3339.
The canonical record is what this compares against: an edit to a partner
version that leaves the agreed values unchanged does not bring the location
back. Pair it with a LOCATION_SORT_FIELD_FIRST_CREATED_AT sort, so page
boundaries hold while you walk the changed set.
LocationSort orders rows by a display-summary field (the canonical-first values), externalId ascending by default.
object
- LOCATION_SORT_FIELD_UNSPECIFIED: Defaults to sorting by externalId, ascending.
- LOCATION_SORT_FIELD_FIRST_CREATED_AT: metadata.firstCreatedAt of the canonical record. Fixed when the location is first registered, so a walk ordered by it is stable against concurrent edits in a way one ordered by a mutable field is not.
Responses
Section titled “ Responses ”A successful response.
object
LocationListItem is one physical location: display values plus every stored version, so a client can expand a row without a second call.
object
The partner version, falling back to the canonical.
object
Summary is the short list-view projection of one stored Location version — a canonical record or one partner’s latest copy.
object
The ids of this version’s Location record.
object
Client defined unique id, shared by every version of the same physical location.
Display name of the location.
The operational status of the location.
Retail chain brand name, e.g. “EDEKA”.
Distribution line / sub-chain name, e.g. “EDEKA Nordbayern”.
Store owner / contract holder name.
City of the location’s address.
Country of the location’s address.
The location’s full address.
object
ISO 3166-1 alpha-2 country code, e.g. “DE” — not the country’s name.
LocationSource tells which kind of version this is.
- LOCATION_SOURCE_CANONICAL: The canonical record — the agreement across all partners.
- LOCATION_SOURCE_LATEST: One partner’s latest copy.
The partner’s organization name; empty for the canonical version.
Every stored version of this physical location, canonical first.
LocationVersion is one stored version of a physical location.
object
Summary is the short list-view projection of one stored Location version — a canonical record or one partner’s latest copy.
object
The ids of this version’s Location record.
object
Client defined unique id, shared by every version of the same physical location.
Display name of the location.
The operational status of the location.
Retail chain brand name, e.g. “EDEKA”.
Distribution line / sub-chain name, e.g. “EDEKA Nordbayern”.
Store owner / contract holder name.
City of the location’s address.
Country of the location’s address.
The location’s full address.
object
ISO 3166-1 alpha-2 country code, e.g. “DE” — not the country’s name.
LocationSource tells which kind of version this is.
- LOCATION_SOURCE_CANONICAL: The canonical record — the agreement across all partners.
- LOCATION_SOURCE_LATEST: One partner’s latest copy.
The partner’s organization name; empty for the canonical version.
True when the versions have diverged: they hold different values.
How many devices are deployed at this physical location, counted across every version (the canonical and every partner’s) regardless of which project claims them — the count pair of LocationsGetResponse.devices.
How many of those devices are ACTIVE — the same set as deviceCount, narrowed to devices whose status is STATUS_ACTIVE. Zero means deleting the location breaks no live device.
Example
{ "locations": [ { "resource": { "summary": { "status": "STATUS_UNSPECIFIED" }, "source": "LOCATION_SOURCE_UNSPECIFIED" }, "versions": [ { "summary": { "status": "STATUS_UNSPECIFIED" }, "source": "LOCATION_SOURCE_UNSPECIFIED" } ] } ], "totalCount": 3, "totalPages": 1, "currentPage": 1}