List localities (a locality is a site).
List localities (a locality is a site).
Authorization
bearerAuth AuthorizationBearer <token>
Access token from POST /directory/connect/token. Scope olifyapi.
In: header
Query Parameters
$search?string
$filter?string
$orderby?string
$select?string
$expand?string
$count?boolean
$top?integer
Page size. Host OData:MaxTop is 10000.
Range
0 <= value <= 10000$skip?integer
Range
0 <= valueHeader Parameters
Olify-Tenant-Id*string
Tenant GUID the caller is allowed to access.
Format
uuidResponse Body
Localityapplication/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/localities" \ -H "Olify-Tenant-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "value": [ { "region": { "code": "string", "name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "customer": { "roles": [ "Manufacturer" ], "identificationNumber": "string", "emailAddress": "string", "phoneNumber": "string", "address": { "streetAddress1": "string", "streetAddress2": "string", "streetAddress3": "string", "city": "string", "cityDistrict": "string", "postalCode": "string", "coordinates": { "latitude": "string", "longitude": "string" }, "countryCode": "string" }, "extensionValues": {}, "name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "code": "string", "name": "string", "note": "string", "address": { "streetAddress1": "string", "streetAddress2": "string", "streetAddress3": "string", "city": "string", "cityDistrict": "string", "postalCode": "string", "coordinates": { "latitude": "string", "longitude": "string" }, "countryCode": "string" }, "levelEntityCategoryId": "32f29979-b26a-4b9a-aa34-af49e6995ee1", "levelEntityCategory": { "code": "string", "name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "extensionValues": {}, "creationDate": "2019-08-24T14:15:22Z", "lastChangeDate": "2019-08-24T14:15:22Z", "classId": "f0846d40-4884-40d5-8fc5-9f2c5ef371c4", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" } ], "count": 0}