Discussions
Retrieve a list of charge points
6 months ago by null
The API seems /api/v1/charge-points multiple charges even though there is only one in the app.
It looks it like return chargers without a ´serialNumber´. Might be previously unsuccessful added chargers.
This is the response i am receiving.
´´´json
{
"data": [
{
"id": 2256635,
"createdAt": "2022-11-11T21:04:32Z",
"updatedAt": "2022-12-12T10:16:02Z",
"serialNumber": null,
"name": "Garage",
"visibility": "private",
"maxKW": 11,
"maxKw": 11,
"type": "ac",
"note": null,
"state": "passive",
"location": {
....
},
"connectors": [
{
"identifier": "type2",
"name": "Type 2"
}
],
"lastMeterReadingKwh": null,
"cablePluggedIn": false,
"brandName": "Zaptec",
"modelName": "Zaptec - Go",
"firmwareVersion": null
},
{
"id": 2570439,
"createdAt": "2022-12-12T10:12:50Z",
"updatedAt": "2022-12-12T10:17:09Z",
"serialNumber": null,
"name": "Garage",
"visibility": "private",
"maxKW": 20,
"maxKw": 20,
"type": "ac",
"note": null,
"state": "passive",
"location": {
....
},
"connectors": [
{
"identifier": "type2",
"name": "Type 2"
}
],
"lastMeterReadingKwh": null,
"cablePluggedIn": false,
"brandName": "Zaptec",
"modelName": "Zaptec - Go",
"firmwareVersion": null
},
{
"id": 2570441,
"createdAt": "2022-12-12T10:15:32Z",
"updatedAt": "2022-12-12T10:16:38Z",
"serialNumber": null,
"name": "Garage",
"visibility": "private",
"maxKW": 11,
"maxKw": 11,
"type": "ac",
"note": null,
"state": "passive",
"location": {
....
},
"connectors": [
{
"identifier": "type2",
"name": "Type 2"
}
],
"lastMeterReadingKwh": null,
"cablePluggedIn": false,
"brandName": "Zaptec",
"modelName": "Zaptec - Go",
"firmwareVersion": null
},
{
"id": 2570442,
"createdAt": "2022-12-12T10:17:50Z",
"updatedAt": "2022-12-12T10:19:57Z",
"serialNumber": null,
"name": "Garage",
"visibility": "private",
"maxKW": 11,
"maxKw": 11,
"type": "ac",
"note": null,
"state": "passive",
"location": {
....
},
"connectors": [
{
"identifier": "type2",
"name": "Type 2"
}
],
"lastMeterReadingKwh": null,
"cablePluggedIn": false,
"brandName": "Zaptec",
"modelName": "Zaptec - Go",
"firmwareVersion": null
},
{
"id": 2570443,
"createdAt": "2022-12-12T10:20:36Z",
"updatedAt": "2022-12-12T11:13:31Z",
"serialNumber": null,
"name": "Garage",
"visibility": "private",
"maxKW": 11,
"maxKw": 11,
"type": "ac",
"note": null,
"state": "passive",
"location": {
....
},
"connectors": [
{
"identifier": "type2",
"name": "Type 2"
}
],
"lastMeterReadingKwh": null,
"cablePluggedIn": false,
"brandName": "Zaptec",
"modelName": "Zaptec - Go",
"firmwareVersion": null
},
{
"id": 2570463,
"createdAt": "2022-12-12T11:18:32Z",
"updatedAt": "2022-12-12T11:25:23Z",
"serialNumber": null,
"name": "garage",
"visibility": "private",
"maxKW": 11,
"maxKw": 11,
"type": "ac",
"note": null,
"state": "passive",
"location": {
....
},
"connectors": [
{
"identifier": "type2",
"name": "Type 2"
}
],
"lastMeterReadingKwh": null,
"cablePluggedIn": false,
"brandName": "Zaptec",
"modelName": "Zaptec - Go",
"firmwareVersion": null
},
{
"id": 2570470,
"createdAt": "2022-12-12T11:26:31Z",
"updatedAt": "2024-03-05T14:52:10Z",
"serialNumber": "ZAP11111",
"name": "Garage",
"visibility": "private",
"maxKW": 10.8,
"maxKw": 10.8,
"type": "ac",
"note": null,
"state": "busy-scheduled",
"location": {
....
},
"connectors": [
{
"identifier": "type2",
"name": "Type 2"
}
],
"lastMeterReadingKwh": null,
"cablePluggedIn": true,
"brandName": "Zaptec",
"modelName": "Zaptec - Go",
"firmwareVersion": "2.3.1.2"
}
],
"meta": {
"itemCount": 7,
"currentPage": 0,
"perPage": 10,
"totalPageCount": 1,
"totalItemCount": 7
}
}
´´´