GET
/
fleets
/
{fleet}
/
charging_sessions
curl --request GET \
  --url https://api.chargeapi.co/v1/fleets/{fleet}/charging_sessions \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "object": "list",
  "data": [
    {
      "id": null,
      "object": null,
      "amount_due": null,
      "amount_paid": null,
      "charging_station": null,
      "connector": null,
      "country": null,
      "created": null,
      "currency": null,
      "driver": null,
      "energy_consumed": null,
      "fleet": null,
      "payment_method": null,
      "session_ended": null,
      "session_started": null,
      "status": null,
      "updated": null,
      "vehicle": null
    }
  ],
  "has_more": true,
  "url": "<string>"
}

Path Parameters

fleet
string
required

ID of the fleet to query.

Query Parameters

status
enum<string>

Filter sessions by status.

Available options:
active,
completed,
cancelled,
failed
created

Range filter on created timestamp.

limit
integer

Maximum number of sessions to return (default 10).

Required range: 1 <= x <= 100
starting_after
string

Pagination cursor; returns sessions after this ID.

ending_before
string

Pagination cursor; returns sessions before this ID.

expand
string[]

Fields to expand in each session object.

Body

application/json · object

Response

200
application/json

Successful response with fleet session list.

The response is of type object.