Get charging history
zaptec_get_charge_historyRetrieve completed Zaptec EV charging sessions for a selected time range, including start, end, duration, energy in kWh, optional cost when configured, and a summary.
Instructions
Completed charging sessions in a time range (installation-local time) with start, end, duration and energy in kWh, plus a summary. Cost fields appear only when ZAPTEC_PRICE_PER_KWH is configured. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | ISO date (YYYY-MM-DD, inclusive), required for custom | |
| charger_id | No | Optional charger id. Defaults to ZAPTEC_DEFAULT_CHARGER_ID or the only charger. | |
| start_date | No | ISO date (YYYY-MM-DD), required for custom | |
| time_range | No | month |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| start | Yes | ||
| summary | Yes | ||
| sessions | Yes | ||
| timezone | Yes | ||
| truncated | Yes | ||
| time_range | Yes |