GET
/
reports
/
{report}
curl --request GET \
  --url https://api.chargeapi.co/v1/reports/{report} \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "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
}

Path Parameters

report
string
required

ID of the report to retrieve.

Query Parameters

expand
string[]

Specifies related objects to expand (for example, expand[]=fleet).

Body

application/json · object

Response

200
application/json

Returns the Report object for a valid identifier. If the report is still being generated, its status field is pending and url is null. When generation succeeds, status becomes succeeded, succeeded_at is populated, and url contains a downloadable link. Raises an error otherwise.