Get driver sites
x-ms-visibility: "important"
Retrieve a list of all sites associated with the specified driver.
Path Parameters
id int64 required
The ID of the driver for which sites are to be fetched.
Query Parameters
page int32
Page to be fetched. Default: 1
limit int32
Limit (No. of records per page). Max value: 100. Default: 100.
search string
Free text filter for driver name.
sortKey string
Field to be used for sorting. Default: name
sortDescending boolean
Set to 'true' to sort descending based on sort key. Default: 'false'
showOnlyRootSites boolean
Enable showing only root sites. Default: 'false'
Responses
- 200
- 400
- 401
List of driver sites accessible by the user.
application/json
Schema
Example (from schema)
Schema
- Array [
- Array [
- ]
- Array [
- ]
- ]
page int32
limit int32
totalRecords int32
hasNextPage boolean
hasPreviousPage boolean
items object[]
id int64 nullable
name string nullable
publicName string
isPublicSite boolean nullable
groupType string
externalId string
streetAddress string
city string
postalCode string
country string
latitude double nullable
longitude double nullable
timezone string
parentSiteId int64 nullable
payerId int64 nullable
costId string
paymentRecipientId int64 nullable
parkingType string
parentName string
numberOfChargers int64 nullable
numberOfSubsites int64 nullable
sitePath object[]
siteId int64
siteName string
tariffReferences object[]
groupId string
tariffId string
usageType int32 nullable
Possible values: [0
, 1
]
Default value: 0
metadata string[]
notes string
{
"page": 0,
"limit": 0,
"totalRecords": 0,
"hasNextPage": true,
"hasPreviousPage": true,
"items": [
{
"id": 0,
"name": "string",
"publicName": "string",
"isPublicSite": true,
"groupType": "string",
"externalId": "string",
"streetAddress": "string",
"city": "string",
"postalCode": "string",
"country": "string",
"latitude": 0,
"longitude": 0,
"timezone": "string",
"parentSiteId": 0,
"payerId": 0,
"costId": "string",
"paymentRecipientId": 0,
"parkingType": "string",
"parentName": "string",
"numberOfChargers": 0,
"numberOfSubsites": 0,
"sitePath": [
{
"siteId": 0,
"siteName": "string"
}
],
"tariffReferences": [
{
"groupId": "string",
"tariffId": "string",
"usageType": 0
}
],
"metadata": [
"string"
],
"notes": "string"
}
]
}
Exception Details
application/json
Schema
Example (from schema)
Schema
errorCode string
message string
errorNumber int32
helpLink string
{
"errorCode": "string",
"message": "string",
"errorNumber": 0,
"helpLink": "string"
}
User not authorised
Loading...