Query station operators
Charge stations are often exploited by various operators. To get an overview of the operators in your station database you can use the operatorList
query. All operator details are available for you to query. Keeping the number of attributes as low as possible will improve performance.
Query
The entire list of operators can be accessed using the operatorList
query, along with the attributes you would like to receive. Optionally you can use pagination and filters to improve your results.
Filters
To filter your operator list you can use the filter
argument. You can then use countries
, ranking
and excluded
to specify how you want to filter the list.
Search
To search for an operator you can use the search
argument.
Arguments
query • OperatorListQuery
Deprecated
Deprecated: Replaced by filter & search params.
search • String
Search operator by name.
filter • OperatorListFilter
Filter operators by parameters.
size • Int
Number of elements (count) to return.
Default • 10
page • Int
Page number to return.
Default • 0
Frequently used fields
id • ID
Unique operator ID.
name • String
Name of an operator. This property is OCPI-compliant.
website • String
Link to an operator’s website. This property is OCPI-compliant.
logo • OCPIImage
Image link to an operator’s logo. This property is OCPI-compliant.
Other fields
external_id • String
External ID of an operator provided by the operator data source.
country • String
Deprecated
ISO-3166 alpha-2 country code an operator is active in.
countries • CountryCodeAlpha2
ISO-3166 alpha-2 country codes an operator is active in.
Show CountryCodeAlpha2 enum values
contact • Contact
Contact information.
ranking • Int
Ranking level on which the operator is placed or null in case the operator is not on any ranking level.
excluded • Boolean
Flag which indicates if the operator is in the excluded list.
Response
A response can either contain a data
or an
errors
object. The response header will always return
200
as a status code.
Data object
When successful, a data
object will be returned with the
requested fields. If there are no fields present the
data
object will return the operation name with the
appropriate return type. If the operation was a query, this output
will be an object of the schema’s query root type; if the operation
was a mutation, this output will be an object of the schema’s mutation
root type.
Error object
If unsuccessful, an errors
object will be returned with
more details in the extensions
object. The error object
can contain any of the following objects.
Error
ERROR_FORBIDDEN_MESSAGE
You are forbidden to execute this operation.
Error
OPERATION_NOT_ALLOWED
You are not allowed to execute this operation. Enable it for the current application in the dashboard or reach out to customer support.
Error
OPERATOR_RANKING_FILTER_DUPLICATE
Operator ranking filter contains duplicate values: $DUPLICATES.
Error
OPERATOR_RANKING_FILTER_NOT_ALLOWED
Operator ranking filter contains values which are not allowed: $INVALIDVALUES. Valid values from 1 till 10.
Error
PAGINATION_INVALID_PAGE
Page must be an INT value higher than 0.
Error
PAGINATION_INVALID_SIZE
Size must be an INT value between 1 and 1000.