WebHook
POST/your-url
This endpoint enables you to subscribe to real-time notifications regarding the charging status of electric vehicles. Provide a URL, and you will receive updates on charging initiation, stoppage, and progress.
Request
Responses
- 200
- 400
- 401
- 500
Ok
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- Array [
- Array [
- ]
- ]
- ]
- ]
id string
status string
Possible values: [FINISHED, IN_PROGRESS, ORDER_INIT_AND_WAITING, NOT_PLUGGED, PAYMENT_ERROR, INTERNAL_ERROR, PROVIDER_ERROR]
amount number
commision_price number
tax_price number
provider string,
charger object
_id string
idPR string
idCupr number
lat number
lon number
status boolean
plugs number
provider string
connection string
chargerDetails object[]
_id string
charger string
name string
model string
address string
town string
state string
hasRestaurant boolean
hasMall boolean
hasCarWash boolean
hasParking boolean
hasGasStation boolean
hasShop boolean
hasCoffeeShop boolean
hasWorkshop boolean
plusCode string
accessPrice number
moreInfo string
schedule string
plugs object[]
All plugs of a charger details
_id string
chargerDetails string
logicPlugId string
lastUpdate date-time
chargeSpeedId number
provider string
physicalPlugs object[]
All physical plugs of a logic plug
_id string
logicPlug string
physicalPlugId string
conectorType number
status boolean
lastUpdate date-time
chargeMode number
maxPower number
provider string
price number
provider string
bookingType number
bookingTime number
freeCancelBookingTime number
createdAt date-time
updatedAt date-time
monday string
tuesday string
wednesday string
thursday string
friday string
saturday string
sunday string
loc string[]
createdAt date-time
updatedAt date-time
show boolean
physicalPlugs object
_id string
logicPlug string
physicalPlugId string
conectorType number
status boolean
lastUpdate date-time
chargeMode number
maxPower number
provider string
price number
plug_id string,
started date-time
finished date-time
email string
plug_price number
price_unit string,
Possible values: [kwh, minute, hour, session, free]
currency string
charged_kwh number
co2_saved number
battery_level number
user_email string
plate string
external_id string,
createdAt date-time
updatedAt date-time
outlet_number number
power_kw number
[
{
"id": "string",
"status": "FINISHED",
"amount": 0,
"commision_price": 0,
"tax_price": 0,
"charger": {
"_id": "63712f794e8aaa51a939339b",
"idPR": "5efad9e4e82ae5",
"idCupr": 0,
"lat": 43.29887,
"lon": -2.069368,
"status": true,
"plugs": 2,
"provider": "Repsol",
"connection": "direct",
"chargerDetails": [
{
"_id": "648b47cfdeccbd815984736d",
"charger": "648b47c9deccbd8159843cd4",
"name": "Fuengirola station",
"model": "Fuengirola station",
"address": "DE LA ENCARNACIÓN, 29640",
"town": "Fuengirola",
"state": "Málaga",
"hasRestaurant": false,
"hasMall": false,
"hasCarWash": true,
"hasParking": true,
"hasGasStation": true,
"hasShop": true,
"hasCoffeeShop": false,
"hasWorkshop": false,
"plusCode": 1234,
"accessPrice": 0.15,
"moreInfo": "extra info",
"schedule": "",
"plugs": [
{
"_id": "6372d0064e8aaa51a95b10cf",
"chargerDetails": "6372d0054e8aaa51a95b10a3",
"logicPlugId": 188,
"lastUpdate": "2023-11-12T01:58:47.000+00:00",
"chargeSpeedId": 3,
"provider": "EMT",
"physicalPlugs": [
{
"_id": "616b3830dca57819118cfe46",
"logicPlug": "616a0c1bdca57819117693a9",
"physicalPlugId": "101291f",
"conectorType": 20,
"status": false,
"lastUpdate": "2021-10-16T20:41:48.000+00:00",
"chargeMode": 1,
"maxPower": 11,
"provider": "EMT",
"price": 0.15
}
]
}
],
"provider": "emt",
"bookingType": 0.25,
"bookingTime": 1.3,
"freeCancelBookingTime": 1.55,
"createdAt": "2024-04-02T09:19:29.009Z",
"updatedAt": "2024-04-02T09:19:29.009Z",
"monday": "24h",
"tuesday": "24h",
"wednesday": "24h",
"thursday": "24h",
"friday": "24h",
"saturday": "24h",
"sunday": "24h"
}
],
"loc": [
-2.1564
],
"createdAt": "2024-04-02T09:19:29.009Z",
"updatedAt": "2024-04-02T09:19:29.009Z",
"show": true
},
"physicalPlugs": {
"_id": "616b3830dca57819118cfe46",
"logicPlug": "616a0c1bdca57819117693a9",
"physicalPlugId": "101291f",
"conectorType": 20,
"status": false,
"lastUpdate": "2021-10-16T20:41:48.000+00:00",
"chargeMode": 1,
"maxPower": 11,
"provider": "EMT",
"price": 0.15
},
"started": "2024-04-02T09:19:29.009Z",
"finished": "2024-04-02T09:19:29.009Z",
"email": "string",
"plug_price": 0,
"price_unit": "kwh",
"currency": "string",
"charged_kwh": 0,
"co2_saved": 0,
"battery_level": 0,
"user_email": "string",
"plate": "string",
"createdAt": "2024-04-02T09:19:29.009Z",
"updatedAt": "2024-04-02T09:19:29.009Z",
"outlet_number": 0,
"power_kw": 0
}
]
Bad request
- application/json
- Schema
- Example (from schema)
Schema
message string
statusCode number
error string
{
"message": "error message information",
"statusCode": 500,
"error": "Internal server error"
}
Unauthorized
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
message string
statusCode number
error string
{
"message": "error message information",
"statusCode": 500,
"error": "Internal server error"
}
Loading...