sap-labs-france / ev-server

The Open e-Mobility Charging Station management backend server (check also ev-dashboard and ev-mobile)
https://open-e-mobility.fr/
Apache License 2.0
141 stars 132 forks source link

Return transaction ID after starting charging #4233

Open gasparuff opened 2 months ago

gasparuff commented 2 months ago

I'm trying to work with the ev-server through the REST API because I need to integrate it with another platform. I managed to successfully call the /remote/start and /stop endpoints and it does what it should. But for fetching the charging status after starting the charging, I need the transaction ID. Also for stopping the charging I need it. So what I did now, is to call {{baseUrl}}/api/charging-stations/:id and get the currentTransactionID from the connectors array response. But this seems kinda clunky to me... is there any way to get the transaction ID back in a response from the remote/start/ request?