Chargefox
Help
Fleets API

Fleets API (1.0)

Download OpenAPI specification:

Fleets

usage

Lists all charge sessions completed by a fleet's managed vehicles on the Chargefox network. You can specify a date range to filter results. Both date parameters can be used together to define a period, or individually to filter usage records from or until a specific date. The returned list is a paginated set of 100 results per page.

Authorizations:
bearerAuth
query Parameters
date_from
string

Filters the results to include only those usage records that were completed on or after the specified date. This parameter sets the start date for the filter.

date_to
string

Filters the results to include only those usage records that were completed on or before the specified date. This parameter sets the end date for the filter.

page
integer

Specifies the page number of the results to retrieve. The page parameter is used to request a specific page of the results, starting from 1 (the first page). If not provided, the default is to return the first page of results.

Responses

Response Schema: application/json
required
object
Array of objects
Array
uuid
required
string <uuid>

UUID of the charge session

auth_id
required
string

RFID card used to start charge session

required
object

Details of the vehicle

required
object

Details of the fleet managing the vehicle

required
object

Details of the location

start_date_time
required
string <date-time>

Start time of the charge session

stop_date_time
required
string <date-time>

End time of the charge session

total_time
required
integer

Total duration of the charge session in minutes

cost_to_driver
number <float>

Amount charged for the charge session

consumption
number <float>

Total energy consumed in kWh

total_parking_time
required
integer

Total duration of parking time during the charge session in minutes

invoice_number
required
string or null

Unique record number assigned to each invoice

Array of objects

List of the charging blocks

required
object
next
string

The URI for the next page of results, if available

total_entries
integer

Total number of queried usage records

Response Headers
X-RateLimit-Limit
integer
Example: "5"

The maximum number of requests allowed per period

X-RateLimit-Remaining
integer
Example: "0"

The number of requests remaining in the current period (always 0 for a 429 response)

X-RateLimit-Reset
integer
Example: "1715433600"

Unix timestamp (seconds since epoch) when the rate limit window resets

Response samples

Content type
application/json
{
  • "data": {
    },
  • "pagination": {
    }
}

sessions

Lists all charge sessions completed on a fleet's owned charge stations. You can specify a date range to filter results. Both date parameters can be used together to define a period, or individually to filter charge sessions from or until a specific date. The returned list is a paginated set of 100 results per page.

Authorizations:
bearerAuth
query Parameters
date_from
string

Filters the results to include only those charge session records that were completed on or after the specified date. This parameter sets the start date for the filter.

date_to
string

Filters the results to include only those charge session records that were completed on or before the specified date. This parameter sets the end date for the filter.

page
integer

Specifies the page number of the results to retrieve. The page parameter is used to request a specific page of the results, starting from 1 (the first page). If not provided, the default is to return the first page of results.

Responses

Response Schema: application/json
required
object
Array of objects
Array
uuid
required
string <uuid>

UUID of the charge session

auth_id
required
string

RFID card used to start charge session

required
object

Details of the location

start_date_time
required
string <date-time>

Start time of the charge session

stop_date_time
required
string <date-time>

End time of the charge session

total_time
required
integer

Total duration of the charge session in minutes

consumption
required
number <int32>

Total energy consumed during the charge session in kWh

total_parking_time
required
integer

Total duration of parking time during the charge session in minutes

total_revenue
required
number <float>

Total revenue generated from the charge session

gst_on_total_revenue
required
number <float>

Total GST applied to the total revenue

total_cost
required
number <float>

Total cost of the charge session

gst_on_total_cost
required
number <float>

Total GST applied to the total cost

currency
required
string

Currency used for the charge session

required
Array of objects

List of the charging blocks

required
object
next
string <uri>

The URI for the next page of results, if available

total_entries
integer

Total number of queried charge sessions

Response Headers
X-RateLimit-Limit
integer
Example: "5"

The maximum number of requests allowed per period

X-RateLimit-Remaining
integer
Example: "0"

The number of requests remaining in the current period (always 0 for a 429 response)

X-RateLimit-Reset
integer
Example: "1715433600"

Unix timestamp (seconds since epoch) when the rate limit window resets

Response samples

Content type
application/json
{
  • "data": {
    },
  • "pagination": {
    }
}

vehicles

Lists all vehicles managed by a fleet on the Chargefox platform.

Authorizations:
bearerAuth
query Parameters
page
integer

Specifies the page number of the results to retrieve. The page parameter is used to request a specific page of the results, starting from 1 (the first page). If not provided, the default is to return the first page of results.

Responses

Response Schema: application/json
required
object
Array of objects
Array
uuid
required
string <uuid>

UUID of the vehicle

contract_number
required
string or null

Contract number of the vehicle

vin
required
string

VIN of the vehicle, has to be unique

registration_number
required
string

Registration number of the vehicle

effective_from
required
string <date>

The date the vehicle was activated

effective_to
required
string or null <date>

The date the vehicle is retired

required
object

Details of the fleet managing the vehicle

required
Array of objects

Details of all the active id cards attached to the vehicle

required
object
next
string

The URI for the next page of results, if available

total_entries
integer

Total number of queried vehicles

Response samples

Content type
application/json
{
  • "data": {
    },
}

invoices

Lists all invoices for a fleet's organisation. This includes both fleet and site host invoices. You can specify a date range to filter results. Both date parameters can be used together to define a period, or individually to filter invoices from or until a specific date. The returned list is a paginated set of 100 results per page.

Authorizations:
bearerAuth
query Parameters
date_from
string

Filters the results to include only those invoice records that were invoiced on or after the specified date. This parameter sets the start date for the filter.

date_to
string

Filters the results to include only those invoice records that were invoiced on or before the specified date. This parameter sets the end date for the filter.

page
integer

Specifies the page number of the results to retrieve. The page parameter is used to request a specific page of the results, starting from 1 (the first page). If not provided, the default is to return the first page of results.

Responses

Response Schema: application/json
required
object
Array of objects
Array
uuid
required
string <uuid>

UUID of the invoice

invoice_number
required
integer

Unique record number assigned to each invoice

invoice_date
required
string <date>

Date of the invoice

description
required
string or null

Invoice description

status
required
string

Invoice status

currency
required
string

Currency used for the invoice

total_tax
required
number

Total GST charged for this invoice

total_amount_incl_tax
required
number

Total amount charged including GST

total_paid_incl_tax
required
number

Total amount paid

total_due_incl_tax
required
number

Total amount due to be paid

reference
required
string or null

Invoice reference

required
Array of objects

Details of Invoice line items

required
Array of objects

List of fleet vehicles that were billed for this invoice period at a price per vehicle rate

required
Array of objects

List of charge sessions

required
object
next
string

The URI for the next page of results, if available

total_entries
integer

Total number of queried invoices

Response Headers
X-RateLimit-Limit
integer
Example: "5"

The maximum number of requests allowed per period

X-RateLimit-Remaining
integer
Example: "0"

The number of requests remaining in the current period (always 0 for a 429 response)

X-RateLimit-Reset
integer
Example: "1715433600"

Unix timestamp (seconds since epoch) when the rate limit window resets

Response samples

Content type
application/json
{
  • "data": {
    },
  • "pagination": {
    }
}