List Team Transactions
curl --request GET \
--url https://app.plugchoice.com/api/v3/teams/{team}/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.plugchoice.com/api/v3/teams/{team}/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.plugchoice.com/api/v3/teams/{team}/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.plugchoice.com/api/v3/teams/{team}/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.plugchoice.com/api/v3/teams/{team}/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.plugchoice.com/api/v3/teams/{team}/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.plugchoice.com/api/v3/teams/{team}/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"status": "<string>",
"charger": {
"uuid": "<string>",
"identity": "<string>",
"reference": "<string>",
"site": {
"uuid": "<string>",
"name": "<string>"
},
"is_mid": true
},
"connector_id": 123,
"id_tag": "<string>",
"started_at": "<string>",
"stopped_at": "<string>",
"meter_start": 123,
"meter_stop": 123,
"total_kwh": 123,
"stop_reason": "<string>"
}
],
"filter_options": {
"statuses": [
{}
]
}
}Transactions
List Team Transactions
GET
/
v3
/
teams
/
{team}
/
transactions
List Team Transactions
curl --request GET \
--url https://app.plugchoice.com/api/v3/teams/{team}/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.plugchoice.com/api/v3/teams/{team}/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.plugchoice.com/api/v3/teams/{team}/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.plugchoice.com/api/v3/teams/{team}/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.plugchoice.com/api/v3/teams/{team}/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.plugchoice.com/api/v3/teams/{team}/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.plugchoice.com/api/v3/teams/{team}/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"status": "<string>",
"charger": {
"uuid": "<string>",
"identity": "<string>",
"reference": "<string>",
"site": {
"uuid": "<string>",
"name": "<string>"
},
"is_mid": true
},
"connector_id": 123,
"id_tag": "<string>",
"started_at": "<string>",
"stopped_at": "<string>",
"meter_start": 123,
"meter_stop": 123,
"total_kwh": 123,
"stop_reason": "<string>"
}
],
"filter_options": {
"statuses": [
{}
]
}
}Returns a paginated list of transactions across all chargers the team has sensitive access to. Uses cursor-based pagination (simple pagination) for infinite scroll support.
The UUID of the team.
Filter by transaction status. One of
active or finished.Search by transaction ID (numeric), Card UID, or Chargepoint ID.
Sort field. One of
started_at, stopped_at, total_kwh, meter_start, or meter_stop. Prefix with - for descending order. Defaults to -started_at.Page number for pagination. 25 results per page.
Response
Array of transaction objects.
Show transaction
Show transaction
The transaction ID.
The transaction status. One of
active or finished.The charger associated with this transaction. May be
null.Show charger
Show charger
The UUID of the charger.
The Chargepoint ID of the charger.
The reference label of the charger. May be
null.Whether the charger model is MID certified. May be
null if unknown.The OCPP connector ID used for this transaction. May be
null.The RFID tag or token used to authorize the transaction.
ISO 8601 timestamp of when the transaction started.
ISO 8601 timestamp of when the transaction stopped.
null for active transactions.The meter reading at the start of the transaction in Wh.
The meter reading at the end of the transaction in Wh.
null for active transactions.The total energy consumed in kWh, rounded to 2 decimal places.
The reason the transaction was stopped (e.g.,
Local, Remote, EVDisconnected). null for active transactions.⌘I