Query station operator details
After you queried a station
you will be able to fetch the operator details through this operator
query. It will provide you with a wide range of information such as the name
, website
and logo
of the operator.
Query
To query the operator details you do need an operator id
. You can get this id
from the station
query that you just executed.
Arguments
id • non_null • ID
The operator ID
Frequently used fields
id • scalar • ID
Unique operator ID
name • scalar • String
Name of an operator
website • scalar • String
Link to an operator’s website
logo • object • OCPIImage
Image link to an operator’s logo
Other fields
id • scalar • ID
Unique operator ID
external_id • scalar • String
External ID of an operator provided by the operator data source
name • scalar • String
Name of an operator
website • scalar • String
Link to an operator’s website
logo • object • OCPIImage
Image link to an operator’s logo
country • scalar • String
Deprecated: Not used anymore, please use countries property instead
countries • list • CountryCodeAlpha2
ISO-3166 alpha-2 country codes an operator is active in.
contact • object • Contact
Contact information
ranking • scalar • Int
Ranking level on which the operator is placed or null in case the operator is not on any ranking level
excluded • scalar • Boolean
Flag which indicates if the operator is in the excluded list
Response
If successful, the HTTP status code in the response header is 200 and the response body contains the attributes you requested.
If unsuccessful, the header status code is an error code and the response body contains an error response object. The error response object can be any of the ones below.
Errors and warnings
ERROR_FORBIDDEN_MESSAGE
You are forbidden to execute this operation
OPERATOR_NOT_FOUND
No operator was found with the $OPERATORID ID