POST
/
reports
curl --request POST \
  --url https://api.chargeapi.co/v1/reports \
  --header 'Content-Type: application/json' \
  --data '{
  "parameters": {
    "type": "charging_summary",
    "period_start": 1711929600,
    "period_end": 1714608000
  },
  "fleet": "fleet_12345"
}'
{
  "id": null,
  "object": null,
  "account": null,
  "created": null,
  "fleet": null,
  "parameters": {
    "filters": {
      "vehicle": null
    },
    "group_by": null,
    "period_start": null,
    "period_end": null,
    "type": null
  },
  "size": null,
  "status": null,
  "succeeded_at": null,
  "type": null,
  "url": null
}

Body

application/json

Response

200
application/json

Returns the newly created Report object. The report’s status is set to pending until generation completes. Use the status field (or the succeeded_at timestamp) to track when the report is ready.