Skip to main content

Get chargeboxes

Description#

This endpoint is used to get your chargeboxes general registry.

Request format#

Method: GET

Endpoint: https://api.thor.tools/latest/integration/chargeboxes

Querystring parameters:

NameDefault valueAccepted valuesDescription
onlyactivetruetrue false 1 0Returns only information related to chargeboxes set as active in the administration dashboard.
cnelatnullAny valid north-east latitude valueReturns only the chargeboxes in the given coordinates boundary. Must be given along with cnelng,cswlat and cswlng.
cnelngnullAny valid north-east longitude valueReturns only the chargeboxes in the given coordinates boundary. Must be given along with cnelat,cswlat and cswlng.
cswlatnullAny valid south-west latitude valueReturns only the chargeboxes in the given coordinates boundary. Must be given along with cnelat,cnelng and cswlng.
cswlngnullAny valid south-west longitude valueReturns only the chargeboxes in the given coordinates boundary. Must be given along with cnelat,cnelng and cswlat.
typenullAny valid type of connector typeReturns only the chargeboxes with the connectors with given type

Response format#

The response is an array of chargeboxes, each containing the following fields:

Field nameTypeDescription
activeBooleanThe chargebox is set as active in the administration dashboard.
aliasStringThe chargebox name.
connectedBooleanThe chargebox is currently connected with Thor.
publicBooleanThe chargebox is set as public in the administration dashboard.
reservableBooleanThe chargebox can be reserved or not.
connectorsArrayThe list of chargebox's connectors.
connectors[].powerIntegerThe connector's power in Wh.
connectors[].typeTypeThe connector type.
connectors[].formatStringThe type of the connector. The value can be CABLE or SOCKET.
connectors[].max_amperageIntegerThe max current of the conenctor.
connectors[].power_typeStringThe type of power source. The value can be AC_1_PHASE, AC_3_PHASE or DC.
connectors[].terminal_idStringThe id of the Nayax device attached to the connector.
connectors[].tokenStringThe token used to call Nayax's API.
coordinatesObjectThe chargebox coordinates.
coordinates.latitudeFloatThe chargebox latitude.
coordinates.longitudeFloatThe chargebox longitude.
idStringThe unique chargebox identifier.
last_heartbeatIntegerThe time in ms epoch format of the last heartbeat message received.
timezoneStringThe timezone of the chargebox (based on the coordinates).
typeObjectThe chargebox type.
type.vehicleVehicleThe vehicle type that the chargebox can serve.
type.msgOCPP message formatThe format used by the chargebox to send data.
type.versionOCPP versionThe OCPP version implemented by the chargebox.

A succesful response is returned with an HTTP status code 200 - OK

Example response#

[
{
"active": true,
"alias": "Turin 1",
"connected": true,
"reservable": false,
"connectors": [
{
"power": 22000,
"type": "type_2",
"max_amperage": 32,
"format": "CABLE",
"power_type": "AC_3_PHASE",
"terminal_id": "1894563789435672",
"token": "E_X67bbrtfW--7hgj5l8Tn4DbmY32789289922-abP-pO04"
},
{
"power": 22000,
"type": "type_2",
"max_amperage": 32,
"format": "CABLE",
"power_type": "AC_3_PHASE",
"terminal_id": "9564673856378138",
"token": "E_X67bbrtfW--7hgj5l8Tn4DbmY32789289922-abP-pO04"
},
{
"power": 7000,
"type": "type_2",
"max_amperage": 32,
"format": "CABLE",
"power_type": "AC_3_PHASE",
"terminal_id": "0345674814378592",
"token": "E_X67bbrtfW--7hgj5l8Tn4DbmY32789289922-abP-pO04"
},
{
"power": 7000,
"type": "type_2",
"max_amperage": 32,
"format": "CABLE",
"power_type": "AC_3_PHASE",
"terminal_id": "0134564862345679",
"token": "E_X67bbrtfW--7hgj5l8Tn4DbmY32789289922-abP-pO04"
}
],
"coordinates": {
"latitude": 41.889451,
"longitude": 12.4898773
},
"id": "EaJ7cU9NJ3YkTNgy",
"last_heartbeat": 1599654456237,
"timezone": "Europe/Rome",
"type": {
"msg": "json",
"vehicle": "bicycle",
"version": "1.6"
}
},
{
"active": true,
"alias": "Rome 4",
"connected": false,
"reservable": false,
"connectors": [
{
"power": 300,
"type": "schuko",
"max_amperage": 16,
"format": "SOCKET",
"power_type": "AC_1_PHASE"
},
{
"power": 300,
"type": "schuko",
"max_amperage": 16,
"format": "SOCKET",
"power_type": "AC_1_PHASE"
}
],
"coordinates": {
"latitude": 45.593821,
"longitude": 11.9444289
},
"id": "XPHiIU27EFMViHat",
"last_heartbeat": 1599732073243,
"timezone": "Europe/Rome",
"type": {
"msg": "json",
"vehicle": "bicycle",
"version": "1.6"
}
}
]

Error response#

The following errors are returned if something went wrong while processing the request:

HTTP status codeMessageDescription
400BoundsTooBigThe coordinates bounds given in the querystring are too big. The latitude and longitude ranges must be less than or equal to 2.
403APIKeyNotFoundAn invalid API key was given in the header of the request.
403RestAPINotEnabledREST API integration is set as disabled in the administration dashboard.
403InvalidSourceIPAddrThe request comes from an IP address that is different from the one given in the REST API integration configuration.
500InternalServerErrorSomething unexpected went wrong while executing the request.

Enums#

Connector type#

Type: String

These are the possible types of the connectors:

  • ccs CCS (DC)
  • chademo Chademo (DC)
  • commando Commando (AC)
  • type_1 Type 1 (AC)
  • type_2 Type 2 (AC)
  • type_3a Type 3A (AC)
  • type_3c Type 3C (AC)
  • schuko Schuko standard EU (AC)

Vehicle#

Type: String

These are the possible values of the chargebox.type.vehicle field:

  • car
  • bicycle

Chargebox OCPP version#

Type: String

These are the possible values of the chargebox.type.version field:

  • 1.5
  • 1.6

Chargebox OCPP message format#

Type: String

These are the possible values of the chargebox.type.msg field:

  • json
  • soap