# Create an Account
Source: https://docs.chargeapi.co/api-reference/accounts/create
POST /accounts
Creates an account. Accounts are the top-level container for vehicles, drivers, charging stations, payments, and reporting. Use this endpoint to onboard a fleet, platform integration, or business entity into Charge.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/accounts \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"email": "example@example.com",
"name": "Example",
"type": "business"
}'
```
```json Response theme={null}
{
"id": "acct_yYg01pWLFArG9cUEz7yQtqNLkbxFWnqQ",
"object": "account",
"billing_details": {
"billing_address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
}
},
"business_type": null,
"contact": {
"email": "example@example.com",
"name": "Example",
"phone": "+33189000010"
},
"created": "2026-04-01T00:34:57.156Z",
"default_currency": "eur",
"description": null,
"email": "example@example.com",
"metadata": {},
"metric_system": "metric",
"name": "Example Account",
"plan": "professional",
"preferences": {
"billing_cycle": "monthly",
"default_currency": "eur",
"default_payment_method": null,
"notifications": true,
"report_frequency": "weekly",
"reporting_enabled": true
},
"registration_number": null,
"status": "active",
"type": "business",
"updated": "2026-04-01T02:35:21.644Z",
"wallet_balance": 0
}
```
## Parameters
ISO-4217 currency code.
Primary contact email.
Display name of the account.
Subscription plan.
Legal entity type.
Available options: `individual`, `business`
## More parameters
Set of key-value pairs that you can attach to an object.
Preferred measurement system.
Available options: `metric`, `imperial`
Settings for billing, notifications, and reporting.
Billing cycle preference (`monthly`, `weekly`, etc.).
Preferred default currency code.
ID of the default payment method used for billing.
Whether the account receives charging session notifications.
Frequency of scheduled reports.
Whether reporting is enabled for the account.
## Returns
Returns the created account.
# The Account object
Source: https://docs.chargeapi.co/api-reference/accounts/object
```json The Account object theme={null}
{
"id": "acct_1Ys68AQSkEx2u9QejR24oCTB5Nck3veR",
"object": "account",
"billing_details": {
"billing_address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
}
},
"business_type": null,
"contact": {
"email": "example@example.com",
"name": "Example",
"phone": "+33189000010"
},
"created": "2026-04-01T00:34:12.489Z",
"default_currency": "eur",
"description": null,
"email": "example@example.com",
"metadata": {},
"metric_system": "metric",
"name": "Example Account",
"plan": "professional",
"preferences": {
"billing_cycle": "monthly",
"default_currency": "eur",
"default_payment_method": null,
"notifications": true,
"report_frequency": "weekly",
"reporting_enabled": true
},
"registration_number": null,
"status": "active",
"type": "business",
"updated": "2026-04-01T02:34:06.174Z",
"wallet_balance": 42850
}
```
```json The Account object theme={null}
{
"id": "acct_1Ys68AQSkEx2u9QejR24oCTB5Nck3veR",
"object": "account",
"billing_details": {
"billing_address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
}
},
"business_type": null,
"contact": {
"email": "example@example.com",
"name": "Example",
"phone": "+33189000010"
},
"created": "2026-04-01T00:34:12.489Z",
"default_currency": "eur",
"description": null,
"email": "example@example.com",
"metadata": {},
"metric_system": "metric",
"name": "Example Account",
"plan": "professional",
"preferences": {
"billing_cycle": "monthly",
"default_currency": "eur",
"default_payment_method": null,
"notifications": true,
"report_frequency": "weekly",
"reporting_enabled": true
},
"registration_number": null,
"status": "active",
"type": "business",
"updated": "2026-04-01T02:34:06.174Z",
"wallet_balance": 42850
}
```
This object represents an account in Charge. Use it to manage drivers, vehicles, payment methods, charging activity, invoices, and reports under one business entity.
## Attributes
Unique identifier for the object.
Three-letter ISO currency code for default billing and pricing.
Email address associated with the account (may duplicate contact.email).
Display name or registered name of the account.
Subscription or feature plan assigned to the account.
Settings for billing, notifications, and reporting.
Billing cycle preference (`monthly`, `weekly`, etc.).
Preferred default currency code.
ID of the default payment method used for billing.
Whether the account receives charging session notifications.
Frequency of scheduled reports.
Whether reporting is enabled for the account.
Type of account.
## More attributes
String representing the object's type.
Billing information used for invoicing and reports.
Physical address used for billing purposes.
City, district, suburb, or town.
Two-letter ISO country code.
First line of the address.
Second line of the address.
ZIP or postal code.
State, county, province, or region.
Type of legal entity associated with the account.
Primary contact person for the account.
Contact email address.
Full name of the contact person.
Phone number for contact.
Time at which the account was created. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Optional description or label for the account.
Set of key-value pairs that you can attach to an object.
Preferred measurement system.
Government-issued registration number (for businesses).
Current operational status of the account.
Available options: `active`, `suspended`, `archived`
Time at which the account was last updated. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Current account wallet balance in the smallest currency unit.
# Retrieve an Account
Source: https://docs.chargeapi.co/api-reference/accounts/retrieve
GET /accounts/{account}
Retrieves an account.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/accounts/acct_cdxZGYZlXIlJYGA3TaAkXFI2YnUXR6Bv \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "acct_cdxZGYZlXIlJYGA3TaAkXFI2YnUXR6Bv",
"object": "account",
"billing_details": {
"billing_address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
}
},
"business_type": null,
"contact": {
"email": "example@example.com",
"name": "Example",
"phone": "+33189000010"
},
"created": "2026-04-01T00:32:04.021Z",
"default_currency": "eur",
"description": null,
"email": "example@example.com",
"metadata": {},
"metric_system": "metric",
"name": "Example Account",
"plan": "professional",
"preferences": {
"billing_cycle": "monthly",
"default_currency": "eur",
"default_payment_method": null,
"notifications": true,
"report_frequency": "weekly",
"reporting_enabled": true
},
"registration_number": null,
"status": "active",
"type": "business",
"updated": "2026-04-01T02:31:57.659Z",
"wallet_balance": 42850
}
```
## Parameters
No parameters.
## Returns
Returns the account.
# Update an Account
Source: https://docs.chargeapi.co/api-reference/accounts/update
POST /accounts/{account}
Updates an account. Parameters you omit keep their current values.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/accounts/acct_R0WW9U61sLoQP1WdE5Mw0W9Vqlbnk6tA \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"metadata": {
"account_segment": "enterprise"
}
}'
```
```json Response theme={null}
{
"id": "acct_R0WW9U61sLoQP1WdE5Mw0W9Vqlbnk6tA",
"object": "account",
"billing_details": {
"billing_address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
}
},
"business_type": null,
"contact": {
"email": "example@example.com",
"name": "Example",
"phone": "+33189000010"
},
"created": "2026-04-01T00:12:16.501Z",
"default_currency": "eur",
"description": null,
"email": "example@example.com",
"metadata": {
"account_segment": "enterprise"
},
"metric_system": "metric",
"name": "Example Account",
"plan": "professional",
"preferences": {
"billing_cycle": "monthly",
"default_currency": "eur",
"default_payment_method": null,
"notifications": true,
"report_frequency": "weekly",
"reporting_enabled": true
},
"registration_number": null,
"status": "active",
"type": "business",
"updated": "2026-04-01T02:11:41.598Z",
"wallet_balance": 42850
}
```
## Parameters
Internal description or note.
Updated contact email.
New display name for the account.
Change the subscription plan.
## More parameters
Set of key-value pairs that you can attach to an object.
Updated measurement system preference.
Available options: `metric`, `imperial`
Settings for billing, notifications, and reporting.
Billing cycle preference (`monthly`, `weekly`, etc.).
Preferred default currency code.
ID of the default payment method used for billing.
Whether the account receives charging session notifications.
Frequency of scheduled reports.
Whether reporting is enabled for the account.
Set operational status for the account.
Available options: `active`, `suspended`, `archived`
## Returns
Returns the updated account.
# Create a Charging Session
Source: https://docs.chargeapi.co/api-reference/charging_sessions/create
POST /charging_sessions
Creates a charging session and starts power delivery on the requested connector. The session remains `active` until you end it or the charging station stops delivering power. On success, the response returns the live session object with its start time and any authorization details.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/charging_sessions \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"charging_station": "chst_dxNYlw4nSLzUm4GWwPJ5ochwR3myCKsA",
"connector": "connector_a1",
"driver": "drv_AxAS7yPHekpPhbGMcO4wAAZrt3OA9mEc",
"payment_method": "pm_BEAD5NIY9aCx3nSplzYUe7cxJ6QkI1BD",
"vehicle": "veh_s2hlA8r7yI5C1Xo8bjJyglHiJBegvTA3"
}'
```
```json Response theme={null}
{
"id": "cs_ccJe4CNvGc5CRBiPnoPEPrZUuCfPqUbY",
"object": "charging_session",
"amount_due": 1842,
"amount_paid": 0,
"charging_station": "chst_dxNYlw4nSLzUm4GWwPJ5ochwR3myCKsA",
"connector": "connector_a1",
"country": "FR",
"created": "2026-04-01T01:09:14.087Z",
"currency": "eur",
"driver": "drv_AxAS7yPHekpPhbGMcO4wAAZrt3OA9mEc",
"energy_consumed": 0,
"fleet": "flt_VPncsNUF64r6IMozGsQXGXBrA3USpxxb",
"payment_method": "pm_BEAD5NIY9aCx3nSplzYUe7cxJ6QkI1BD",
"session_ended": null,
"session_limit": null,
"session_started": "2026-04-01T01:15:03.983Z",
"status": "active",
"updated": "2026-04-01T01:18:50.258Z",
"vehicle": "veh_s2hlA8r7yI5C1Xo8bjJyglHiJBegvTA3"
}
```
## Parameters
ID of the station where charging will occur.
ID of the specific connector to activate.
ID of the driver starting the session.
ID of the payment method to authorize and bill for this session.
ID of the vehicle being charged.
## More parameters
Optional energy limit in watt-hours to auto-stop charging when reached.
## Returns
Returns the created charging session.
# End a Charging Session
Source: https://docs.chargeapi.co/api-reference/charging_sessions/end
POST /charging_sessions/{charging_session}/end
Ends an active charging session and finalizes billing. On success, the returned session has `status` set to `completed` and includes the final energy and amount totals.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/charging_sessions/cs_F3gRSFFv59kJdbDfVJLByxIkAciECgc8/end \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{}'
```
```json Response theme={null}
{
"id": "cs_F3gRSFFv59kJdbDfVJLByxIkAciECgc8",
"object": "charging_session",
"amount_due": 1842,
"amount_paid": 1842,
"charging_station": "chst_cUFSXSByCOnqy5bbXtJFLoZA2ZQAX6IQ",
"connector": "connector_a1",
"country": "FR",
"created": "2026-04-01T01:21:48.263Z",
"currency": "eur",
"driver": "drv_qOtUn8LEZDRPqpwGt33lT0w0U0UBHQG2",
"energy_consumed": 18250,
"fleet": "flt_TZg7AWjPqjdKoAIglpiVVT7D3miTL2vv",
"payment_method": "pm_gAHZlvrC6iWBaHnxNYnDlepnAFg6RK1u",
"session_ended": "2026-04-01T03:07:21.968Z",
"session_limit": null,
"session_started": "2026-04-01T01:27:36.980Z",
"status": "completed",
"updated": "2026-04-01T03:08:41.681Z",
"vehicle": "veh_k5PksqPmD8AqbtrxBATVEri4u0XAbiAp"
}
```
## Parameters
No parameters.
## Returns
Returns the updated charging session.
# List Charging Sessions
Source: https://docs.chargeapi.co/api-reference/charging_sessions/list
GET /charging_sessions
Returns a paginated list of charging session objects. Use `driver`, `fleet`, or `vehicle` to scope results, then follow the returned page URLs to continue through the result set.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/charging_sessions \
-H "Authorization: Bearer ch_sk_test_..." \
-d driver=drv_MeVPeA4p1YkuWfAFBkMw7ic0tFccgUth \
-d limit=10
```
```json Response theme={null}
{
"data": [
{
"id": "cs_AL1gQKYwRle76eKq2ecf3AR88uVOoAj4",
"object": "charging_session",
"amount_due": 1842,
"amount_paid": 0,
"charging_station": "chst_l3AWdoy5rP8bBPVJODn8TPpdxQTAsYAK",
"connector": "connector_a1",
"country": "FR",
"created": "2026-04-01T01:18:22.807Z",
"currency": "eur",
"driver": "drv_MeVPeA4p1YkuWfAFBkMw7ic0tFccgUth",
"energy_consumed": 12480,
"fleet": "flt_OA3cCKUR7yRYIp0WX0pVUZ4Uw6OoBWJk",
"payment_method": "pm_siAYwdA3MAc9Hs0oMtgWhDXSbA3xfqiU",
"session_ended": null,
"session_limit": null,
"session_started": "2026-04-01T01:24:13.285Z",
"status": "active",
"updated": "2026-04-01T01:53:58.446Z",
"vehicle": "veh_CAfwCp0gh3fVUUqhbaPupXynUVgbdQxr"
}
],
"next_page_url": "https://api.chargeapi.co/v1/charging_sessions?page=page_vTAqG8c9R32ps8le7rxCVudUeguIaNstI0LBO09jrOg&driver=drv_MeVPeA4p1YkuWfAFBkMw7ic0tFccgUth&limit=10",
"previous_page_url": null
}
```
## Parameters
Limit results to charging sessions for this driver.
Limit results to charging sessions for this fleet.
Maximum number of objects to return (default 10).
Page token from a previous list response.
Filter charging sessions by status.
Available options: `active`, `completed`, `cancelled`, `failed`
Limit results to charging sessions for this vehicle.
## More parameters
Range filter on the `created` time. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Minimum `created` time (exclusive). RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Minimum `created` time (inclusive). RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Maximum `created` time (exclusive). RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Maximum `created` time (inclusive). RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
## Returns
Returns a page of charging sessions.
Array of charging session objects.
URL for the next page of results, or `null` when there is no next page.
URL for the previous page of results, or `null` when there is no previous page.
# The Charging Session object
Source: https://docs.chargeapi.co/api-reference/charging_sessions/object
```json The Charging Session object theme={null}
{
"id": "cs_l22tJO0CuTskKYpTv729awh03sRWnijk",
"object": "charging_session",
"amount_due": 1842,
"amount_paid": 0,
"charging_station": "chst_AEoFA0Hzg73oTdE4A78y1AwQ1qqB8aUZ",
"connector": "connector_a1",
"country": "FR",
"created": "2026-04-01T01:27:11.867Z",
"currency": "eur",
"driver": "drv_IsyNzuUkgSd0RAThYiU4nmteVRpI7kPl",
"energy_consumed": 12480,
"fleet": "flt_hoPDrnmp1zSdbAA5NanAPDIwSQg88sfy",
"payment_method": "pm_ItBHV1QUL1PAnNZmCFX2aBJdppmeiJTz",
"session_ended": null,
"session_limit": null,
"session_started": "2026-04-01T01:32:56.030Z",
"status": "active",
"updated": "2026-04-01T02:02:58.111Z",
"vehicle": "veh_KnqAScicQNI3X1Fj0RL79Y1H0TA2bVMt"
}
```
```json The Charging Session object theme={null}
{
"id": "cs_l22tJO0CuTskKYpTv729awh03sRWnijk",
"object": "charging_session",
"amount_due": 1842,
"amount_paid": 0,
"charging_station": "chst_AEoFA0Hzg73oTdE4A78y1AwQ1qqB8aUZ",
"connector": "connector_a1",
"country": "FR",
"created": "2026-04-01T01:27:11.867Z",
"currency": "eur",
"driver": "drv_IsyNzuUkgSd0RAThYiU4nmteVRpI7kPl",
"energy_consumed": 12480,
"fleet": "flt_hoPDrnmp1zSdbAA5NanAPDIwSQg88sfy",
"payment_method": "pm_ItBHV1QUL1PAnNZmCFX2aBJdppmeiJTz",
"session_ended": null,
"session_limit": null,
"session_started": "2026-04-01T01:32:56.030Z",
"status": "active",
"updated": "2026-04-01T02:02:58.111Z",
"vehicle": "veh_KnqAScicQNI3X1Fj0RL79Y1H0TA2bVMt"
}
```
This object represents a charging session in Charge. It captures the operational and billing record for a vehicle charging at a station.
## Attributes
Unique identifier for the object.
Total cost of the charging session, in the smallest currency unit.
ID of the charging station used for the session.
ID of the driver associated with the session.
ID of the payment method used for the session.
Current status of the session.
Available options: `active`, `completed`, `cancelled`, `failed`
ID of the vehicle associated with the session.
## More attributes
String representing the object's type.
Amount already paid for the charging session, in the smallest currency unit.
ID of the specific connector used during the session.
Country code (ISO 3166-1 alpha-2) where the session took place.
Time at which the charging session was created or initialized. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
ISO 4217 three-letter currency code.
Amount of energy delivered during the session, in watt-hours (Wh).
ID of the fleet associated with the session, if any.
Time at which the charging session ended, if completed. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Optional energy limit in watt-hours that automatically stops the session when reached.
Time at which the charging session started. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Time at which the session was last updated. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
# Retrieve a Charging Session
Source: https://docs.chargeapi.co/api-reference/charging_sessions/retrieve
GET /charging_sessions/{charging_session}
Retrieves a charging session. If the session is still active, the response includes live status. Otherwise it includes finalized energy and billing details.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/charging_sessions/cs_QitsCV7qAsAkAqA1z6EwGIWK4gDctg0m \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "cs_QitsCV7qAsAkAqA1z6EwGIWK4gDctg0m",
"object": "charging_session",
"amount_due": 1842,
"amount_paid": 0,
"charging_station": "chst_JABhTfqrsNdARPe8CPFoaAoYzjRWHlJV",
"connector": "connector_a1",
"country": "FR",
"created": "2026-04-01T01:45:11.639Z",
"currency": "eur",
"driver": "drv_ud4uFp05HP1SgAdCAXAgNbFhAoB2Mkvm",
"energy_consumed": 12480,
"fleet": "flt_5spUq3yqHf7Ksgc1ozTulU4J6dihCNtn",
"payment_method": "pm_yDyIY85UzgcGmlAbep4ZBq3SqzIzoq8A",
"session_ended": null,
"session_limit": null,
"session_started": "2026-04-01T01:50:35.907Z",
"status": "active",
"updated": "2026-04-01T02:20:40.378Z",
"vehicle": "veh_LdZwZb3XVZc9IX5Xi7APwgrlVa3t4H1w"
}
```
## Parameters
No parameters.
## Returns
Returns the charging session.
# List Charging Stations
Source: https://docs.chargeapi.co/api-reference/charging_stations/list
GET /charging_stations
Returns a paginated list of charging station objects. Use the available query parameters to filter by location, compatibility, availability, proximity, favorites, or route context.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/charging_stations \
-H "Authorization: Bearer ch_sk_test_..." \
-d limit=10
```
```json Response theme={null}
{
"data": [
{
"id": "chst_3PWdYA62gD9YdJldE9Pj9OrcIV1wrmAl",
"object": "charging_station",
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"availability": {
"connectors_available": 3,
"connectors_total": 8,
"opening_hours": [
{
"day": "mon",
"from": "08:00",
"until": "20:00"
}
],
"range": [
{
"from": "2026-04-01T01:30:55.103Z",
"until": "2026-04-01T02:31:20.332Z"
}
]
},
"capabilities": {
"24_7_access": false,
"amenities": ["cafe", "restrooms", "wifi"],
"payment_methods": ["credit_card", "rfid"],
"requires_membership": false,
"reservable": true
},
"connectors": [
{
"id": "connector_a1",
"power": 150,
"status": "available",
"type": "CCS"
},
{
"id": "connector_a2",
"power": 150,
"status": "occupied",
"type": "CCS"
}
],
"created": "2026-04-01T00:31:02.493Z",
"location": {
"latitude": 48.8698,
"longitude": 2.3319
},
"name": "Example Station",
"operator": "Example Operator",
"operator_contact": "support@example.com",
"pricing": [
{
"currency": "eur",
"price": 42,
"step_size": 1,
"tax": "vat",
"type": "ENERGY"
}
],
"status": "active",
"updated": "2026-04-01T01:31:12.733Z"
}
],
"next_page_url": "https://api.chargeapi.co/v1/charging_stations?page=page_CGNmZusEe5g4KFtalA2ylrjlKVAMGwwLohsA8K8azbQ&limit=10",
"previous_page_url": null
}
```
## Parameters
Maximum number of objects to return (default 10).
Page token from a previous list response.
## Returns
Returns a page of charging stations.
Array of charging station objects.
URL for the next page of results, or `null` when there is no next page.
URL for the previous page of results, or `null` when there is no previous page.
# The Charging Station object
Source: https://docs.chargeapi.co/api-reference/charging_stations/object
```json The Charging Station object theme={null}
{
"id": "chst_iMb1nAbiUhyudabADX74SMtWaNhC4Z1t",
"object": "charging_station",
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"availability": {
"connectors_available": 3,
"connectors_total": 8,
"opening_hours": [
{
"day": "mon",
"from": "08:00",
"until": "20:00"
}
],
"range": [
{
"from": "2026-04-01T01:42:32.276Z",
"until": "2026-04-01T02:41:49.904Z"
}
]
},
"capabilities": {
"24_7_access": false,
"amenities": ["cafe", "restrooms", "wifi"],
"payment_methods": ["credit_card", "rfid"],
"requires_membership": false,
"reservable": true
},
"connectors": [
{
"id": "connector_a1",
"power": 150,
"status": "available",
"type": "CCS"
},
{
"id": "connector_a2",
"power": 150,
"status": "occupied",
"type": "CCS"
}
],
"created": "2026-04-01T00:41:56.862Z",
"location": {
"latitude": 48.8698,
"longitude": 2.3319
},
"name": "Example Station",
"operator": "Example Operator",
"operator_contact": "support@example.com",
"pricing": [
{
"currency": "eur",
"price": 42,
"step_size": 1,
"tax": "vat",
"type": "ENERGY"
}
],
"status": "active",
"updated": "2026-04-01T01:41:54.099Z"
}
```
```json The Charging Station object theme={null}
{
"id": "chst_iMb1nAbiUhyudabADX74SMtWaNhC4Z1t",
"object": "charging_station",
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"availability": {
"connectors_available": 3,
"connectors_total": 8,
"opening_hours": [
{
"day": "mon",
"from": "08:00",
"until": "20:00"
}
],
"range": [
{
"from": "2026-04-01T01:42:32.276Z",
"until": "2026-04-01T02:41:49.904Z"
}
]
},
"capabilities": {
"24_7_access": false,
"amenities": ["cafe", "restrooms", "wifi"],
"payment_methods": ["credit_card", "rfid"],
"requires_membership": false,
"reservable": true
},
"connectors": [
{
"id": "connector_a1",
"power": 150,
"status": "available",
"type": "CCS"
},
{
"id": "connector_a2",
"power": 150,
"status": "occupied",
"type": "CCS"
}
],
"created": "2026-04-01T00:41:56.862Z",
"location": {
"latitude": 48.8698,
"longitude": 2.3319
},
"name": "Example Station",
"operator": "Example Operator",
"operator_contact": "support@example.com",
"pricing": [
{
"currency": "eur",
"price": 42,
"step_size": 1,
"tax": "vat",
"type": "ENERGY"
}
],
"status": "active",
"updated": "2026-04-01T01:41:54.099Z"
}
```
This object represents a charging station in Charge. It includes location, connector availability, pricing, and other operational details.
## Attributes
Unique identifier for the object.
List of connectors available at the station.
Unique identifier for the connector.
Maximum power output in kW.
Current status of the connector.
Connector type supported by this connector.
GPS coordinates of the station.
Latitude of the charging station.
Longitude of the charging station.
Optional user-facing name for the station.
Name of the operator (CPO).
Pricing components for the station.
Currency code in ISO 4217 format.
Price in the smallest currency unit.
Billing increment step for this price component.
Currency or tax label associated with the component.
Type of price component.
Current status of the station.
## More attributes
String representing the object's type.
Physical location of the charging station.
City, town, or district where the station is located.
Two-letter ISO country code.
First line of the street address.
Second line of the address.
ZIP or postal code.
State, province, or administrative region.
Availability data for the station.
Number of connectors currently available for use.
Total number of connectors at this station.
Weekly operating hours of the station, if not 24/7.
Day of the week using the short lowercase weekday code.
Start time in 24-hour format.
End time in 24-hour format.
Future time ranges when at least one connector will be available.
Start of the availability window. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
End of the availability window. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Capabilities and service features provided at the station.
Indicates if the station is accessible 24/7.
List of amenities offered at the station.
Accepted payment methods.
Whether a membership is required to use this station.
Indicates if the station supports reservations.
Time at which the charging station was created. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Contact information for station support or issues.
Time at which the station was last updated. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
# Retrieve a Charging Station
Source: https://docs.chargeapi.co/api-reference/charging_stations/retrieve
GET /charging_stations/{charging_station}
Retrieves a charging station.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/charging_stations/chst_7YLjJnEZhLmErrgYaTze9lFzdwjjHJl8 \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "chst_7YLjJnEZhLmErrgYaTze9lFzdwjjHJl8",
"object": "charging_station",
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"availability": {
"connectors_available": 3,
"connectors_total": 8,
"opening_hours": [
{
"day": "mon",
"from": "08:00",
"until": "20:00"
}
],
"range": [
{
"from": "2026-04-01T01:17:07.327Z",
"until": "2026-04-01T02:17:45.561Z"
}
]
},
"capabilities": {
"24_7_access": false,
"amenities": ["cafe", "restrooms", "wifi"],
"payment_methods": ["credit_card", "rfid"],
"requires_membership": false,
"reservable": true
},
"connectors": [
{
"id": "connector_a1",
"power": 150,
"status": "available",
"type": "CCS"
},
{
"id": "connector_a2",
"power": 150,
"status": "occupied",
"type": "CCS"
}
],
"created": "2026-04-01T00:17:29.837Z",
"location": {
"latitude": 48.8698,
"longitude": 2.3319
},
"name": "Example Station",
"operator": "Example Operator",
"operator_contact": "support@example.com",
"pricing": [
{
"currency": "eur",
"price": 42,
"step_size": 1,
"tax": "vat",
"type": "ENERGY"
}
],
"status": "active",
"updated": "2026-04-01T01:17:30.640Z"
}
```
## Parameters
No parameters.
## Returns
Returns the charging station.
# Attach a driver
Source: https://docs.chargeapi.co/api-reference/drivers/attach
POST /drivers/{driver}/attach
Attaches a driver to a fleet. After the attach succeeds, the driver appears in fleet-scoped charging sessions and transactions.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/drivers/drv_pG7WUA9VqdyE5aecCMG52LHfe9GriKAS/attach \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"fleet": "flt_AIquEM0HEys6hfT24YqvYcfoAGnj3ZAI"
}'
```
```json Response theme={null}
{
"id": "drv_pG7WUA9VqdyE5aecCMG52LHfe9GriKAS",
"object": "driver",
"created": "2026-04-01T00:13:30.836Z",
"email": "example@example.com",
"fleets": ["flt_AIquEM0HEys6hfT24YqvYcfoAGnj3ZAI"],
"license_number": null,
"metadata": {},
"name": "Example Driver",
"phone": null,
"policy_ids": ["pol_xfyXXHSkulv2zRfNglV1hBe9wl4bY1Xy"],
"preferences": {
"charging_speed": "fast",
"currency": "eur",
"default_payment_method": null,
"max_price_per_kwh": null,
"notifications": true,
"preferred_charging_stations": ["chst_OO72mx3zdAd5mswmTda2fpXHvLFYzAbm"],
"preferred_cpos": ["example_operator"]
},
"status": "active",
"updated": "2026-04-01T01:13:23.895Z",
"vehicles": ["veh_GSNdIjaKyEAjtJRJOxTSecFn2eRshZwT"],
"wallet_balance": 1875
}
```
## Parameters
ID of the fleet to attach or detach.
## Returns
Returns the driver.
# Create a Driver
Source: https://docs.chargeapi.co/api-reference/drivers/create
POST /drivers
Creates a driver. Drivers store identity, licensing, and notification settings for vehicle and charging-session activity.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/drivers \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"email": "example@example.com",
"name": "Example Driver"
}'
```
```json Response theme={null}
{
"id": "drv_AhymM2g1ZLXkzuE0mmB4cpAKMyHfMvys",
"object": "driver",
"created": "2026-04-01T00:34:24.471Z",
"email": "example@example.com",
"fleets": [],
"license_number": null,
"metadata": {},
"name": "Example Driver",
"phone": null,
"policy_ids": [],
"preferences": {
"charging_speed": "fast",
"currency": "eur",
"default_payment_method": null,
"max_price_per_kwh": null,
"notifications": true,
"preferred_charging_stations": ["chst_myKhsjlZbts1baxuaNNF6OKR73vUdTev"],
"preferred_cpos": ["example_operator"]
},
"status": "active",
"updated": "2026-04-01T01:34:37.293Z",
"vehicles": [],
"wallet_balance": 0
}
```
## Parameters
Contact email address.
Full name of the driver.
Optional phone number.
## More parameters
Driver's license or certification number.
Set of key-value pairs that you can attach to an object.
Driver preferences for charging behavior and routing.
Preferred charging speed.
Preferred currency for cost display and billing.
Default payment method ID assigned to the driver.
Optional upper limit on acceptable charging price, in the smallest currency unit per kWh.
Whether to receive notifications about charging status and session progress.
List of preferred charging station IDs.
List of preferred charging network (CPO) IDs.
## Returns
Returns the created driver.
# Delete a Driver
Source: https://docs.chargeapi.co/api-reference/drivers/delete
DELETE /drivers/{driver}
Permanently deletes a driver. Historical charging data remains available for reporting.
```bash cURL theme={null}
curl -X DELETE https://api.chargeapi.co/v1/drivers/drv_J5bsPUcHdvGZC7IEzJUTso0xl6OvtdZ8 \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "drv_J5bsPUcHdvGZC7IEzJUTso0xl6OvtdZ8",
"object": "driver",
"deleted": true
}
```
## Parameters
No parameters.
## Returns
Returns the deleted driver.
# Detach a driver
Source: https://docs.chargeapi.co/api-reference/drivers/detach
POST /drivers/{driver}/detach
Detaches a driver from a fleet. The driver remains in Charge and can be attached again later.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/drivers/drv_jFme4vQtEAyhWAWt18YgmYvHSUL4AXx5/detach \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"fleet": "flt_HpGdGBwWHWAAZnAxuxiPdUiO8uLj8Kk8"
}'
```
```json Response theme={null}
{
"id": "drv_jFme4vQtEAyhWAWt18YgmYvHSUL4AXx5",
"object": "driver",
"created": "2026-04-01T00:15:50.826Z",
"email": "example@example.com",
"fleets": [],
"license_number": null,
"metadata": {},
"name": "Example Driver",
"phone": null,
"policy_ids": ["pol_63Y8tKmKLDoFZzg2OtBQp4RHJ8zFT4Lq"],
"preferences": {
"charging_speed": "fast",
"currency": "eur",
"default_payment_method": null,
"max_price_per_kwh": null,
"notifications": true,
"preferred_charging_stations": ["chst_4FZiRdOLdrq4vqnFI8mycph4eAuqoJsU"],
"preferred_cpos": ["example_operator"]
},
"status": "active",
"updated": "2026-04-01T01:16:32.263Z",
"vehicles": ["veh_Qy85Av6BkY1gGKQM5fhqc543tAXpxsAk"],
"wallet_balance": 1875
}
```
## Parameters
ID of the fleet to attach or detach.
## Returns
Returns the driver.
# List Drivers
Source: https://docs.chargeapi.co/api-reference/drivers/list
GET /drivers
Returns a paginated list of driver objects. Filter by `fleet` or `vehicle`, then follow the returned page URLs to continue through the result set.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/drivers \
-H "Authorization: Bearer ch_sk_test_..." \
-d fleet=flt_cb4mG1v23U4O4yo5FmfSdlfYBs4P1Yvy \
-d limit=10
```
```json Response theme={null}
{
"data": [
{
"id": "drv_AJASUAMPlJ1wb08CYreqlKp3VzSXyv1h",
"object": "driver",
"created": "2026-04-01T00:31:50.123Z",
"email": "example@example.com",
"fleets": ["flt_ZfAR51ZcdY4kD5iGDCoO54XxNBnvut9A"],
"license_number": null,
"metadata": {},
"name": "Example Driver",
"phone": null,
"policy_ids": ["pol_tOj9AM6C9NmHzPhe5nL2hJA6I8qxMBaH"],
"preferences": {
"charging_speed": "fast",
"currency": "eur",
"default_payment_method": null,
"max_price_per_kwh": null,
"notifications": true,
"preferred_charging_stations": ["chst_MX4W8KNDAkqQ4dsIF20bAIFP1cG8vd35"],
"preferred_cpos": ["example_operator"]
},
"status": "active",
"updated": "2026-04-01T01:31:12.889Z",
"vehicles": ["veh_R7WSj5phl1GsQShw0ZmhsXF1HpIBObAO"],
"wallet_balance": 1875
}
],
"next_page_url": "https://api.chargeapi.co/v1/drivers?page=page_7OgQMYt5hfPHsdDCa6pbupMyxLxTnoTBCsDV7Wp2rlw&fleet=flt_cb4mG1v23U4O4yo5FmfSdlfYBs4P1Yvy&limit=10",
"previous_page_url": null
}
```
## Parameters
Limit results to drivers attached to this fleet.
Maximum number of objects to return (default 10).
Page token from a previous list response.
Limit results to drivers attached to this vehicle.
## Returns
Returns a page of drivers.
Array of driver objects.
URL for the next page of results, or `null` when there is no next page.
URL for the previous page of results, or `null` when there is no previous page.
# The Driver object
Source: https://docs.chargeapi.co/api-reference/drivers/object
```json The Driver object theme={null}
{
"id": "drv_rc5aCZyDxMT6ZAORNxsNnsFXvdP1CqB3",
"object": "driver",
"created": "2026-04-01T00:14:04.075Z",
"email": "example@example.com",
"fleets": ["flt_eHX2bF02REQ3CkjidnUeY8nvq8yJiWA3"],
"license_number": null,
"metadata": {},
"name": "Example Driver",
"phone": null,
"policy_ids": ["pol_jVkWoUmJo3AuAyK1sHuRrNAu3Cj7rxSn"],
"preferences": {
"charging_speed": "fast",
"currency": "eur",
"default_payment_method": null,
"max_price_per_kwh": null,
"notifications": true,
"preferred_charging_stations": ["chst_qtwELQheAdAmnYLZ4F6RgJZet3f7ZbrA"],
"preferred_cpos": ["example_operator"]
},
"status": "active",
"updated": "2026-04-01T01:13:51.435Z",
"vehicles": ["veh_ASPMuIbvn8wrb9un5Zg2sQAoDXAxWLHt"],
"wallet_balance": 1875
}
```
```json The Driver object theme={null}
{
"id": "drv_rc5aCZyDxMT6ZAORNxsNnsFXvdP1CqB3",
"object": "driver",
"created": "2026-04-01T00:14:04.075Z",
"email": "example@example.com",
"fleets": ["flt_eHX2bF02REQ3CkjidnUeY8nvq8yJiWA3"],
"license_number": null,
"metadata": {},
"name": "Example Driver",
"phone": null,
"policy_ids": ["pol_jVkWoUmJo3AuAyK1sHuRrNAu3Cj7rxSn"],
"preferences": {
"charging_speed": "fast",
"currency": "eur",
"default_payment_method": null,
"max_price_per_kwh": null,
"notifications": true,
"preferred_charging_stations": ["chst_qtwELQheAdAmnYLZ4F6RgJZet3f7ZbrA"],
"preferred_cpos": ["example_operator"]
},
"status": "active",
"updated": "2026-04-01T01:13:51.435Z",
"vehicles": ["veh_ASPMuIbvn8wrb9un5Zg2sQAoDXAxWLHt"],
"wallet_balance": 1875
}
```
This object represents a driver in Charge. Use it to manage charging access, preferences, vehicle assignments, and fleet membership.
## Attributes
Unique identifier for the object.
Email address used for login and notifications.
Full name of the driver.
Optional phone number for communication and account recovery.
Driver preferences for charging behavior and routing.
Preferred charging speed.
Preferred currency for cost display and billing.
Default payment method ID assigned to the driver.
Optional upper limit on acceptable charging price, in the smallest currency unit per kWh.
Whether to receive notifications about charging status and session progress.
List of preferred charging station IDs.
List of preferred charging network (CPO) IDs.
Current status of the driver account.
Available options: `active`, `suspended`, `archived`
## More attributes
String representing the object's type.
Time at which the driver was created. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
List of fleet IDs currently linked to the driver.
Driver's license number, if applicable.
Set of key-value pairs that you can attach to an object.
A list of policy IDs to apply to this driver.
Time at which the driver object was last updated. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
List of vehicle IDs currently linked to the driver.
Driver's wallet or prepaid balance in the smallest currency unit.
# Retrieve a Driver
Source: https://docs.chargeapi.co/api-reference/drivers/retrieve
GET /drivers/{driver}
Retrieves a driver.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/drivers/drv_vL27I3mnfuAHP1tQLAlnAwpXLffDYGqI \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "drv_vL27I3mnfuAHP1tQLAlnAwpXLffDYGqI",
"object": "driver",
"created": "2026-04-01T00:07:57.986Z",
"email": "example@example.com",
"fleets": ["flt_iT7ncmj6jVrXL29ovsduO7AqNILxGstk"],
"license_number": null,
"metadata": {},
"name": "Example Driver",
"phone": null,
"policy_ids": ["pol_T2LvzdAMQbFAPwr8t1nQaMeIssb8ZfbA"],
"preferences": {
"charging_speed": "fast",
"currency": "eur",
"default_payment_method": null,
"max_price_per_kwh": null,
"notifications": true,
"preferred_charging_stations": ["chst_CAbiW1XL68kLj6gKAxb6N0MfQAo2Vo8Y"],
"preferred_cpos": ["example_operator"]
},
"status": "active",
"updated": "2026-04-01T01:07:53.659Z",
"vehicles": ["veh_e1dH606K9tYiTGOLGCIhkqhOnFakiMde"],
"wallet_balance": 1875
}
```
## Parameters
No parameters.
## Returns
Returns the driver.
# Update a Driver
Source: https://docs.chargeapi.co/api-reference/drivers/update
POST /drivers/{driver}
Updates a driver. Parameters you omit keep their current values.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/drivers/drv_ETjCYs2UoLbMuKHS0CKfu8EUxXGMMj2V \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"phone": "+33189000029"
}'
```
```json Response theme={null}
{
"id": "drv_ETjCYs2UoLbMuKHS0CKfu8EUxXGMMj2V",
"object": "driver",
"created": "2026-04-01T00:36:43.890Z",
"email": "example@example.com",
"fleets": ["flt_grOWx6EexbLtcXYJiCsSmRVeA5r1rbEc"],
"license_number": null,
"metadata": {},
"name": "Example Driver",
"phone": "+33189000029",
"policy_ids": ["pol_dhAZs1vmCVr8gAkknRkPzJQ5u8EMQwFh"],
"preferences": {
"charging_speed": "fast",
"currency": "eur",
"default_payment_method": null,
"max_price_per_kwh": null,
"notifications": true,
"preferred_charging_stations": ["chst_uiIgEAEpjxf5JVAowpX8AUuhy2x3wAMd"],
"preferred_cpos": ["example_operator"]
},
"status": "active",
"updated": "2026-04-01T01:36:42.785Z",
"vehicles": ["veh_6T4Jc2F3VnFFAPu6dpWop9lduX6iBAbu"],
"wallet_balance": 1875
}
```
## Parameters
Updated contact email.
Updated full name.
Updated phone number.
Set driver status.
Available options: `active`, `suspended`, `archived`
## More parameters
Driver's license number to store or update.
Set of key-value pairs that you can attach to an object.
Driver preferences for charging behavior and routing.
Preferred charging speed.
Preferred currency for cost display and billing.
Default payment method ID assigned to the driver.
Optional upper limit on acceptable charging price, in the smallest currency unit per kWh.
Whether to receive notifications about charging status and session progress.
List of preferred charging station IDs.
List of preferred charging network (CPO) IDs.
## Returns
Returns the updated driver.
# Create an Estimation
Source: https://docs.chargeapi.co/api-reference/estimations/create
POST /estimations
Creates a cost estimate for a proposed charging session. Provide the charging goal plus station and vehicle context to receive estimated energy, duration, and pricing.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/estimations \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"battery_level": 28,
"battery_target_level": 80,
"charging_station": "chst_I0GVqyJwBI3Jwd4V6yIA009ZAgLOzTGm",
"vehicle": "veh_f4zwAgxuAkNh6HHUDorkosY6md4BB7A2"
}'
```
```json Response theme={null}
{
"id": "est_ru6IqQbvO5jXuKqAAuVX7ZevKKCHKyAJ",
"object": "estimation",
"battery_level": 28,
"battery_target_level": 80,
"charging_station": "chst_I0GVqyJwBI3Jwd4V6yIA009ZAgLOzTGm",
"cost_breakdown": [
{
"cost": 1542,
"description": "Off-peak energy rate",
"quantity": 18.25,
"tax_percent": "20%",
"type": "energy",
"unit": "kWh",
"unit_price": 85
},
{
"cost": 300,
"description": "Session fee",
"quantity": null,
"tax_percent": null,
"type": "session_fee",
"unit": null,
"unit_price": null
}
],
"created": "2026-04-01T00:46:52.360Z",
"currency": "eur",
"estimated_duration": 3600,
"estimated_energy_kwh": 18.25,
"estimated_total_cost": 1842,
"valid_until": "2026-04-01T01:46:42.724Z",
"vehicle": "veh_f4zwAgxuAkNh6HHUDorkosY6md4BB7A2"
}
```
## Parameters
Current battery level of the vehicle before charging, as a percentage (0-100).
Target battery level for this session, as a percentage (0-100).
ID of the charging station being evaluated.
ID of the vehicle to use for battery capacity and connector checks.
## More parameters
Optional ISO 4217 currency code to override the station default.
## Returns
Returns the created estimation.
# The Estimation object
Source: https://docs.chargeapi.co/api-reference/estimations/object
```json The Estimation object theme={null}
{
"id": "est_4wAzX6Td1H9rgSOK1F04h6t8dAhMvCZO",
"object": "estimation",
"battery_level": 28,
"battery_target_level": 80,
"charging_station": "chst_AW4FwwMQVwSaUWoKLgTZtlRjAUTdyA2t",
"cost_breakdown": [
{
"cost": 1542,
"description": "Off-peak energy rate",
"quantity": 18.25,
"tax_percent": "20%",
"type": "energy",
"unit": "kWh",
"unit_price": 85
},
{
"cost": 300,
"description": "Session fee",
"quantity": null,
"tax_percent": null,
"type": "session_fee",
"unit": null,
"unit_price": null
}
],
"created": "2026-04-01T01:07:39.609Z",
"currency": "eur",
"estimated_duration": 3600,
"estimated_energy_kwh": 18.25,
"estimated_total_cost": 1842,
"valid_until": "2026-04-01T02:07:52.218Z",
"vehicle": "veh_gSUxpyILI2YhUOvd5jcGDyKA4sriI7t7"
}
```
```json The Estimation object theme={null}
{
"id": "est_4wAzX6Td1H9rgSOK1F04h6t8dAhMvCZO",
"object": "estimation",
"battery_level": 28,
"battery_target_level": 80,
"charging_station": "chst_AW4FwwMQVwSaUWoKLgTZtlRjAUTdyA2t",
"cost_breakdown": [
{
"cost": 1542,
"description": "Off-peak energy rate",
"quantity": 18.25,
"tax_percent": "20%",
"type": "energy",
"unit": "kWh",
"unit_price": 85
},
{
"cost": 300,
"description": "Session fee",
"quantity": null,
"tax_percent": null,
"type": "session_fee",
"unit": null,
"unit_price": null
}
],
"created": "2026-04-01T01:07:39.609Z",
"currency": "eur",
"estimated_duration": 3600,
"estimated_energy_kwh": 18.25,
"estimated_total_cost": 1842,
"valid_until": "2026-04-01T02:07:52.218Z",
"vehicle": "veh_gSUxpyILI2YhUOvd5jcGDyKA4sriI7t7"
}
```
This object represents an estimate in Charge. It previews the expected cost, duration, and energy use for a potential charging session.
## Attributes
Unique identifier for the object.
Current battery level of the vehicle before charging, as a percentage (0–100).
Target battery level for this session, as a percentage (0–100).
ID of the charging station used for the estimate.
Itemized list of costs included in the estimate.
Total cost for this line item in the smallest currency unit.
Human-readable label for the line item.
Quantity of the unit, if applicable.
Optional tax rate or tax label applied to the item.
Type of the cost item.
Unit of measurement, if applicable.
Price per unit for this item in the smallest currency unit, if applicable.
Estimated charging duration in seconds.
Total estimated cost for the session in the smallest currency unit.
Expiration timestamp for this estimate. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
ID of the vehicle used for the estimate.
## More attributes
String representing the object's type.
Time at which the estimate was created. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
ISO 4217 three-letter currency code.
Estimated energy needed to reach the target battery level, in kilowatt-hours (kWh).
# Retrieve an Estimation
Source: https://docs.chargeapi.co/api-reference/estimations/retrieve
GET /estimations/{estimation}
Retrieves an estimation. Use this endpoint to display a previously calculated estimate without recalculating it.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/estimations/est_Q2ySLHRmzrj0JGczEMUtd5JL4VfjTAKz \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "est_Q2ySLHRmzrj0JGczEMUtd5JL4VfjTAKz",
"object": "estimation",
"battery_level": 28,
"battery_target_level": 80,
"charging_station": "chst_t9phYKCYoiZARfXm9v95eAyL1gSBv1Qo",
"cost_breakdown": [
{
"cost": 1542,
"description": "Off-peak energy rate",
"quantity": 18.25,
"tax_percent": "20%",
"type": "energy",
"unit": "kWh",
"unit_price": 85
},
{
"cost": 300,
"description": "Session fee",
"quantity": null,
"tax_percent": null,
"type": "session_fee",
"unit": null,
"unit_price": null
}
],
"created": "2026-04-01T00:37:10.811Z",
"currency": "eur",
"estimated_duration": 3600,
"estimated_energy_kwh": 18.25,
"estimated_total_cost": 1842,
"valid_until": "2026-04-01T01:37:40.991Z",
"vehicle": "veh_xtZiyPrudCADvY89nwQtb8xAjsFtnAmV"
}
```
## Parameters
No parameters.
## Returns
Returns the estimation.
# The Event object
Source: https://docs.chargeapi.co/api-reference/events/object
```json The Event object theme={null}
{
"id": "evt_NmNUTThiOjk3oAzDtQpWLV79AFhr78FT",
"object": "event",
"api_version": "2026-03-01",
"created": "2026-05-02T00:15:38.499Z",
"data": {
"object": {
"id": "rpt_cXNADyjylti5TA9JtivLG8LoGAVCXXGn",
"object": "report",
"account": "acct_djHdeh3hqtozOcRPwM9waEvEDlt8aIOf",
"created": "2026-05-02T00:10:54.165Z",
"fleet": "flt_jtLY9FGZyEKTgbjpHAgAEhAGpSWAcDSa",
"parameters": {
"filters": {
"vehicle": ["veh_cMgLbPyKOE8S6znGcN0Sfif38u1VkqSi"]
},
"group_by": "vehicle",
"period_end": "2026-05-02T00:10:49.695Z",
"period_start": "2026-04-01T00:11:03.047Z",
"type": "charging_summary"
},
"size": 48312,
"status": "succeeded",
"succeeded_at": "2026-05-02T00:16:14.012Z",
"type": "csv",
"url": "https://files.chargeapi.co/reports/rpt_cXNADyjylti5TA9JtivLG8LoGAVCXXGn.csv"
},
"previous_attributes": {
"status": "processing"
}
},
"livemode": false,
"pending_webhooks": 1,
"request": {
"id": "req_EyT9KDgAXspoANAnxvmjQPlMoqclRg3j",
"idempotency_key": "idem_6Qu8Ct9AyKLiCftseJA9vuu6a7Wq6NAI"
},
"type": "report.succeeded"
}
```
```json The Event object theme={null}
{
"id": "evt_NmNUTThiOjk3oAzDtQpWLV79AFhr78FT",
"object": "event",
"api_version": "2026-03-01",
"created": "2026-05-02T00:15:38.499Z",
"data": {
"object": {
"id": "rpt_cXNADyjylti5TA9JtivLG8LoGAVCXXGn",
"object": "report",
"account": "acct_djHdeh3hqtozOcRPwM9waEvEDlt8aIOf",
"created": "2026-05-02T00:10:54.165Z",
"fleet": "flt_jtLY9FGZyEKTgbjpHAgAEhAGpSWAcDSa",
"parameters": {
"filters": {
"vehicle": ["veh_cMgLbPyKOE8S6znGcN0Sfif38u1VkqSi"]
},
"group_by": "vehicle",
"period_end": "2026-05-02T00:10:49.695Z",
"period_start": "2026-04-01T00:11:03.047Z",
"type": "charging_summary"
},
"size": 48312,
"status": "succeeded",
"succeeded_at": "2026-05-02T00:16:14.012Z",
"type": "csv",
"url": "https://files.chargeapi.co/reports/rpt_cXNADyjylti5TA9JtivLG8LoGAVCXXGn.csv"
},
"previous_attributes": {
"status": "processing"
}
},
"livemode": false,
"pending_webhooks": 1,
"request": {
"id": "req_EyT9KDgAXspoANAnxvmjQPlMoqclRg3j",
"idempotency_key": "idem_6Qu8Ct9AyKLiCftseJA9vuu6a7Wq6NAI"
},
"type": "report.succeeded"
}
```
This object represents a webhook event in Charge. Events are immutable snapshots of resource changes that Charge delivers to your webhook endpoints.
## Attributes
Unique identifier for the object.
API version used to render `data` when this event was created.
Object containing the resource snapshot for the event.
Resource snapshot relevant to the event.
Object containing the previous values of fields that changed.
Information about the API request that triggered the event, if any.
ID of the API request that caused the event.
Idempotency key transmitted with the originating request, if any.
Type of the event.
Available options: `charge.succeeded`, `report.succeeded`
## More attributes
String representing the object's type.
Available options: `event`
Time at which the event was created. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Indicates whether the event was generated in live or test mode.
Number of webhook endpoints that have not yet acknowledged this event.
# Create a Fleet
Source: https://docs.chargeapi.co/api-reference/fleets/create
POST /fleets
Creates a fleet. Use fleets to group vehicles and drivers and to apply shared billing and reporting preferences.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/fleets \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"name": "Example Fleet"
}'
```
```json Response theme={null}
{
"id": "flt_XcVhxA1qoU3AeQ62khcFJ2U8cM3YvnYJ",
"object": "fleet",
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"created": "2026-04-01T00:18:21.434Z",
"description": null,
"email": "example@example.com",
"metadata": {},
"metric_system": "international_system",
"name": "Example Fleet",
"phone": null,
"policy_ids": [],
"preferences": {
"billing_cycle": "monthly",
"default_currency": "eur",
"default_payment_method": null,
"notifications": true,
"report_frequency": "weekly"
},
"status": "active",
"timezone": "Europe/Paris",
"total_drivers": 0,
"total_energy_consumed_kwh": 0,
"total_sessions": 0,
"total_vehicles": 0,
"updated": "2026-04-01T00:26:27.243Z",
"wallet_balance": 0
}
```
## Parameters
Optional contact email for fleet notifications.
Human-readable name for the fleet.
IANA timezone.
## More parameters
Set of key-value pairs that you can attach to an object.
Preferred unit system for reports.
Available options: `international_system`, `us_customary_system`, `imperial_system`
Account-level settings related to billing, reporting, and charging activity.
Frequency of billing for the fleet (`monthly`, `weekly`, etc.).
Preferred currency for cost estimates and billing.
ID of the default payment method to use for charging sessions.
Whether drivers in this fleet receive session status notifications.
Frequency of automated report delivery (`weekly`, `monthly`, etc.).
## Returns
Returns the created fleet.
# Delete a Fleet
Source: https://docs.chargeapi.co/api-reference/fleets/delete
DELETE /fleets/{fleet}
Permanently deletes a fleet. Historical sessions and reports remain accessible, but the fleet no longer appears in list endpoints.
```bash cURL theme={null}
curl -X DELETE https://api.chargeapi.co/v1/fleets/flt_SJVjnkVAOu40QMHqVlIKtKGg9M0Fvpju \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "flt_SJVjnkVAOu40QMHqVlIKtKGg9M0Fvpju",
"object": "fleet",
"deleted": true
}
```
## Parameters
No parameters.
## Returns
Returns the deleted fleet.
# List Fleets
Source: https://docs.chargeapi.co/api-reference/fleets/list
GET /fleets
Returns a paginated list of fleet objects. Filter by `status`, `driver`, or `vehicle`, then follow the returned page URLs to continue through the result set.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/fleets \
-H "Authorization: Bearer ch_sk_test_..." \
-d status=active \
-d limit=10
```
```json Response theme={null}
{
"data": [
{
"id": "flt_QYNjvq8666Ar0hjA86iwlVrwA3cmyX7q",
"object": "fleet",
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"created": "2026-04-01T00:17:18.631Z",
"description": null,
"email": "example@example.com",
"metadata": {},
"metric_system": "international_system",
"name": "Example Fleet",
"phone": null,
"policy_ids": ["pol_kAEdXgOYG1SpwWQFckETc6i4Bri6J4A2"],
"preferences": {
"billing_cycle": "monthly",
"default_currency": "eur",
"default_payment_method": null,
"notifications": true,
"report_frequency": "weekly"
},
"status": "active",
"timezone": "Europe/Paris",
"total_drivers": 24,
"total_energy_consumed_kwh": 4825.4,
"total_sessions": 186,
"total_vehicles": 18,
"updated": "2026-04-01T01:17:00.697Z",
"wallet_balance": 32150
}
],
"next_page_url": "https://api.chargeapi.co/v1/fleets?page=page_Ea2sjDaQX5sSMXjFDV6LAimqAIt3JLkhFCPnAKowspQ&status=active&limit=10",
"previous_page_url": null
}
```
## Parameters
Limit results to fleets linked to this driver.
Maximum number of objects to return (default 10).
Page token from a previous list response.
Limit results to fleets with this status.
Available options: `active`, `suspended`, `archived`
Limit results to fleets linked to this vehicle.
## Returns
Returns a page of fleets.
Array of fleet objects.
URL for the next page of results, or `null` when there is no next page.
URL for the previous page of results, or `null` when there is no previous page.
# The Fleet object
Source: https://docs.chargeapi.co/api-reference/fleets/object
```json The Fleet object theme={null}
{
"id": "flt_nnMosKd4naheDFTiLmLhZ3Yw64xg9enI",
"object": "fleet",
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"created": "2026-04-01T00:24:36.653Z",
"description": null,
"email": "example@example.com",
"metadata": {},
"metric_system": "international_system",
"name": "Example Fleet",
"phone": null,
"policy_ids": ["pol_AGfBZOUmASNfvtGqjDwK8byoVlMzuAll"],
"preferences": {
"billing_cycle": "monthly",
"default_currency": "eur",
"default_payment_method": null,
"notifications": true,
"report_frequency": "weekly"
},
"status": "active",
"timezone": "Europe/Paris",
"total_drivers": 24,
"total_energy_consumed_kwh": 4825.4,
"total_sessions": 186,
"total_vehicles": 18,
"updated": "2026-04-01T01:24:44.642Z",
"wallet_balance": 32150
}
```
```json The Fleet object theme={null}
{
"id": "flt_nnMosKd4naheDFTiLmLhZ3Yw64xg9enI",
"object": "fleet",
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"created": "2026-04-01T00:24:36.653Z",
"description": null,
"email": "example@example.com",
"metadata": {},
"metric_system": "international_system",
"name": "Example Fleet",
"phone": null,
"policy_ids": ["pol_AGfBZOUmASNfvtGqjDwK8byoVlMzuAll"],
"preferences": {
"billing_cycle": "monthly",
"default_currency": "eur",
"default_payment_method": null,
"notifications": true,
"report_frequency": "weekly"
},
"status": "active",
"timezone": "Europe/Paris",
"total_drivers": 24,
"total_energy_consumed_kwh": 4825.4,
"total_sessions": 186,
"total_vehicles": 18,
"updated": "2026-04-01T01:24:44.642Z",
"wallet_balance": 32150
}
```
This object represents a fleet in Charge. Use it to group drivers, vehicles, payment settings, and reporting under one operational unit.
## Attributes
Unique identifier for the object.
Contact email associated with the fleet.
Human-readable name of the fleet.
Account-level settings related to billing, reporting, and charging activity.
Frequency of billing for the fleet (`monthly`, `weekly`, etc.).
Preferred currency for cost estimates and billing.
ID of the default payment method to use for charging sessions.
Whether drivers in this fleet receive session status notifications.
Frequency of automated report delivery (`weekly`, `monthly`, etc.).
Current operational status of the fleet.
Available options: `active`, `suspended`, `archived`
Number of drivers currently assigned to this fleet.
Number of vehicles currently assigned to this fleet.
## More attributes
String representing the object's type.
Physical address associated with the fleet's headquarters or billing location.
City, district, or town.
Two-letter ISO country code.
First line of the street address.
Second line of the address.
ZIP or postal code.
State, province, or region.
Time at which the fleet was created. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Optional description for the fleet.
Set of key-value pairs that you can attach to an object.
Unit system preferred for reports and distance/energy formats.
Available options: `international_system`, `us_customary_system`, `imperial_system`
Optional phone number associated with the fleet.
A list of policy IDs to apply to this fleet.
IANA timezone identifier used for reporting and scheduling.
Total historical energy consumed by the fleet across all sessions (in kWh).
Total number of charging sessions completed by the fleet.
Time at which the fleet object was last updated. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Fleet's current wallet or prepaid balance in the smallest currency unit.
# Retrieve a Fleet
Source: https://docs.chargeapi.co/api-reference/fleets/retrieve
GET /fleets/{fleet}
Retrieves a fleet.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/fleets/flt_n1WHNYH5qmXKy9nK7hUmxoOVrT7DSGqm \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "flt_n1WHNYH5qmXKy9nK7hUmxoOVrT7DSGqm",
"object": "fleet",
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"created": "2026-04-01T00:46:18.131Z",
"description": null,
"email": "example@example.com",
"metadata": {},
"metric_system": "international_system",
"name": "Example Fleet",
"phone": null,
"policy_ids": ["pol_FmmuAUMHjlw212kNzq4XtmTJcDufurMA"],
"preferences": {
"billing_cycle": "monthly",
"default_currency": "eur",
"default_payment_method": null,
"notifications": true,
"report_frequency": "weekly"
},
"status": "active",
"timezone": "Europe/Paris",
"total_drivers": 24,
"total_energy_consumed_kwh": 4825.4,
"total_sessions": 186,
"total_vehicles": 18,
"updated": "2026-04-01T01:46:20.209Z",
"wallet_balance": 32150
}
```
## Parameters
No parameters.
## Returns
Returns the fleet.
# Update a Fleet
Source: https://docs.chargeapi.co/api-reference/fleets/update
POST /fleets/{fleet}
Updates a fleet. Parameters you omit keep their current values.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/fleets/flt_XnW9iZdHLG0utAlIy1niQrATnLtvAX5e \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{}'
```
```json Response theme={null}
{
"id": "flt_XnW9iZdHLG0utAlIy1niQrATnLtvAX5e",
"object": "fleet",
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"created": "2026-04-01T00:23:21.210Z",
"description": "Updated fleet description.",
"email": "example@example.com",
"metadata": {},
"metric_system": "international_system",
"name": "Example Fleet",
"phone": null,
"policy_ids": ["pol_RUAtrKscpYb1eJAdtfZvXIYyuagqN5qE"],
"preferences": {
"billing_cycle": "monthly",
"default_currency": "eur",
"default_payment_method": null,
"notifications": true,
"report_frequency": "weekly"
},
"status": "active",
"timezone": "Europe/Paris",
"total_drivers": 24,
"total_energy_consumed_kwh": 4825.4,
"total_sessions": 186,
"total_vehicles": 18,
"updated": "2026-04-01T02:23:28.028Z",
"wallet_balance": 32150
}
```
## Parameters
Updated contact email for the fleet.
New display name for the fleet.
Set the operational status of the fleet.
Available options: `active`, `suspended`, `archived`
Updated IANA timezone identifier.
## More parameters
Set of key-value pairs that you can attach to an object.
Updated preferred unit system.
Available options: `international_system`, `us_customary_system`, `imperial_system`
Account-level settings related to billing, reporting, and charging activity.
Frequency of billing for the fleet (`monthly`, `weekly`, etc.).
Preferred currency for cost estimates and billing.
ID of the default payment method to use for charging sessions.
Whether drivers in this fleet receive session status notifications.
Frequency of automated report delivery (`weekly`, `monthly`, etc.).
## Returns
Returns the updated fleet.
# Create an Invoice
Source: https://docs.chargeapi.co/api-reference/invoices/create
POST /invoices
Creates a draft invoice for a time window and, optionally, a single fleet. Finalize the invoice when you are ready to lock line items and collect payment.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/invoices \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"period_end": "2026-05-02T00:25:17.494Z",
"period_start": "2026-04-01T00:25:40.683Z"
}'
```
```json Response theme={null}
{
"id": "inv_AzC78kBZwIQkgmJeyTANcT9HRINBOfr3",
"object": "invoice",
"amount_due": 2500,
"amount_paid": null,
"created": "2026-05-02T00:25:46.191Z",
"currency": "eur",
"description": null,
"due_date": "2026-05-09T00:25:36.789Z",
"fleet": "flt_AAeAlAZzocmSZp6L2mA3rKYNPYyL3GSy",
"line_items": [
{
"amount": 1842,
"description": "Charging sessions for March 2026",
"quantity": 1,
"unit_amount": 1842
},
{
"amount": 658,
"description": "Reservation fees",
"quantity": 2,
"unit_amount": 329
}
],
"metadata": {},
"paid_at": null,
"payment_method": null,
"period_end": "2026-05-02T00:25:17.494Z",
"period_start": "2026-04-01T00:25:40.683Z",
"status": "draft"
}
```
## Parameters
Limit the invoice to a single fleet under the account.
End of the billing window (exclusive). RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Start of the billing window (inclusive). RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
## More parameters
ISO-4217 currency code.
Optional memo that appears on the invoice.
Set of key-value pairs that you can attach to an object.
## Returns
Returns the created invoice.
# Finalize an Invoice
Source: https://docs.chargeapi.co/api-reference/invoices/finalize
POST /invoices/{invoice}/finalize
Finalizes a draft invoice, calculates totals, and changes `status` from `draft` to `open`.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/invoices/inv_fn8XLomaZ8hGbUxUx4ATRMaFj6leGAXd/finalize \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{}'
```
```json Response theme={null}
{
"id": "inv_fn8XLomaZ8hGbUxUx4ATRMaFj6leGAXd",
"object": "invoice",
"amount_due": 2500,
"amount_paid": null,
"created": "2026-05-02T00:38:23.720Z",
"currency": "eur",
"description": null,
"due_date": "2026-05-09T00:38:07.926Z",
"fleet": "flt_z46UY7MfMuWUxwxHcmCHojeAPdBTbFEm",
"line_items": [
{
"amount": 1842,
"description": "Charging sessions for March 2026",
"quantity": 1,
"unit_amount": 1842
},
{
"amount": 658,
"description": "Reservation fees",
"quantity": 2,
"unit_amount": 329
}
],
"metadata": {},
"paid_at": null,
"payment_method": null,
"period_end": "2026-05-02T00:37:55.730Z",
"period_start": "2026-04-01T00:38:04.412Z",
"status": "open"
}
```
## Parameters
No parameters.
## Returns
Returns the updated invoice.
# List Invoices
Source: https://docs.chargeapi.co/api-reference/invoices/list
GET /invoices
Returns a paginated list of invoice objects for the authenticated account, sorted by creation date with the most recent invoices first. Use `fleet` to scope results to one fleet.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/invoices \
-H "Authorization: Bearer ch_sk_test_..." \
-d fleet=flt_cb4mG1v23U4O4yo5FmfSdlfYBs4P1Yvy \
-d limit=10
```
```json Response theme={null}
{
"data": [
{
"id": "inv_GVdfAASxxq3iAz32AWC5ZRg0M8gUF8Zk",
"object": "invoice",
"amount_due": 2500,
"amount_paid": null,
"created": "2026-05-02T00:16:20.899Z",
"currency": "eur",
"description": null,
"due_date": "2026-05-09T00:16:33.313Z",
"fleet": "flt_cb4mG1v23U4O4yo5FmfSdlfYBs4P1Yvy",
"line_items": [
{
"amount": 1842,
"description": "Charging sessions for March 2026",
"quantity": 1,
"unit_amount": 1842
},
{
"amount": 658,
"description": "Reservation fees",
"quantity": 2,
"unit_amount": 329
}
],
"metadata": {},
"paid_at": null,
"payment_method": null,
"period_end": "2026-05-02T00:16:46.130Z",
"period_start": "2026-04-01T00:16:18.310Z",
"status": "draft"
}
],
"next_page_url": "https://api.chargeapi.co/v1/invoices?page=page_e4VJxs8rZX4qOO9ciSFNA17pmGisk5uD17YbZUiQDj0&fleet=flt_cb4mG1v23U4O4yo5FmfSdlfYBs4P1Yvy&limit=10",
"previous_page_url": null
}
```
## Parameters
Limit results to invoices generated for this fleet.
Maximum number of objects to return (default 10).
Page token from a previous list response.
Filter invoices by status.
Available options: `draft`, `open`, `paid`, `void`, `uncollectible`
## Returns
Returns a page of invoices.
Array of invoice objects.
URL for the next page of results, or `null` when there is no next page.
URL for the previous page of results, or `null` when there is no previous page.
# The Invoice object
Source: https://docs.chargeapi.co/api-reference/invoices/object
```json The Invoice object theme={null}
{
"id": "inv_x1QYytVkSXm5EPAsZCFVnnEW4DSSkY8K",
"object": "invoice",
"amount_due": 2500,
"amount_paid": null,
"created": "2026-05-02T00:40:50.892Z",
"currency": "eur",
"description": null,
"due_date": "2026-05-09T00:41:23.968Z",
"fleet": "flt_FCnMkyIiidV4Go6AyA3EkQ8J3to4PYip",
"line_items": [
{
"amount": 1842,
"description": "Charging sessions for March 2026",
"quantity": 1,
"unit_amount": 1842
},
{
"amount": 658,
"description": "Reservation fees",
"quantity": 2,
"unit_amount": 329
}
],
"metadata": {},
"paid_at": null,
"payment_method": null,
"period_end": "2026-05-02T00:41:19.481Z",
"period_start": "2026-04-01T00:41:30.118Z",
"status": "draft"
}
```
```json The Invoice object theme={null}
{
"id": "inv_x1QYytVkSXm5EPAsZCFVnnEW4DSSkY8K",
"object": "invoice",
"amount_due": 2500,
"amount_paid": null,
"created": "2026-05-02T00:40:50.892Z",
"currency": "eur",
"description": null,
"due_date": "2026-05-09T00:41:23.968Z",
"fleet": "flt_FCnMkyIiidV4Go6AyA3EkQ8J3to4PYip",
"line_items": [
{
"amount": 1842,
"description": "Charging sessions for March 2026",
"quantity": 1,
"unit_amount": 1842
},
{
"amount": 658,
"description": "Reservation fees",
"quantity": 2,
"unit_amount": 329
}
],
"metadata": {},
"paid_at": null,
"payment_method": null,
"period_end": "2026-05-02T00:41:19.481Z",
"period_start": "2026-04-01T00:41:30.118Z",
"status": "draft"
}
```
This object represents an invoice in Charge. It records billed items, totals, payment state, and the billing period it covers.
## Attributes
Unique identifier for the object.
Total amount due on the invoice, in the smallest currency unit.
ISO 4217 three-letter currency code.
ID of the fleet billed by this invoice, if the invoice is scoped to a fleet.
Array of individual line items included in the invoice.
Total amount for this line item in the smallest currency unit.
Human-readable description of the billed item.
Quantity billed for this line item.
Unit amount for a single quantity of this line item, in the smallest currency unit.
ID of the payment method used to pay the invoice, if applicable.
Current status of the invoice.
Available options: `draft`, `open`, `paid`, `overdue`, `void`
## More attributes
String representing the object's type.
Total amount paid toward the invoice.
Time at which the invoice was created. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Optional memo or description shown on the invoice.
Time when the invoice is due. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Set of key-value pairs that you can attach to an object.
Time when the invoice was fully paid, if applicable. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
End of the billing period this invoice covers. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Start of the billing period this invoice covers. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
# Pay an Invoice
Source: https://docs.chargeapi.co/api-reference/invoices/pay
POST /invoices/{invoice}/pay
Pays an open invoice using the account default payment method or the `payment_method` you provide. On success, `status` becomes `paid` and `amount_due` becomes zero.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/invoices/inv_SZ5lUXjKQN1PCTTssbNwD4r6mS0PgngF/pay \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"payment_method": "pm_F4cVIoPeTxca9xtzSWESIJSJ6nM22WeS"
}'
```
```json Response theme={null}
{
"id": "inv_SZ5lUXjKQN1PCTTssbNwD4r6mS0PgngF",
"object": "invoice",
"amount_due": 0,
"amount_paid": 2500,
"created": "2026-05-02T00:38:42.809Z",
"currency": "eur",
"description": null,
"due_date": "2026-05-09T00:38:27.507Z",
"fleet": "flt_neUNAfpkQL62qBNzc889RGW3aX1RdIDs",
"line_items": [
{
"amount": 1842,
"description": "Charging sessions for March 2026",
"quantity": 1,
"unit_amount": 1842
},
{
"amount": 658,
"description": "Reservation fees",
"quantity": 2,
"unit_amount": 329
}
],
"metadata": {},
"paid_at": "2026-05-02T01:18:25.570Z",
"payment_method": "pm_F4cVIoPeTxca9xtzSWESIJSJ6nM22WeS",
"period_end": "2026-05-02T00:38:18.941Z",
"period_start": "2026-04-01T00:38:32.568Z",
"status": "paid"
}
```
## Parameters
Override the default payment method with a specific payment method ID.
## Returns
Returns the updated invoice.
# Retrieve an Invoice
Source: https://docs.chargeapi.co/api-reference/invoices/retrieve
GET /invoices/{invoice}
Retrieves an invoice.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/invoices/inv_LGyA6oVDYVWfLyGK7GgHueivA4Fh8Kkn \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "inv_LGyA6oVDYVWfLyGK7GgHueivA4Fh8Kkn",
"object": "invoice",
"amount_due": 2500,
"amount_paid": null,
"created": "2026-05-02T00:12:56.542Z",
"currency": "eur",
"description": null,
"due_date": "2026-05-09T00:12:47.350Z",
"fleet": "flt_r6J1WZH7AUN11389DizTR6NpDW4Mq4Qh",
"line_items": [
{
"amount": 1842,
"description": "Charging sessions for March 2026",
"quantity": 1,
"unit_amount": 1842
},
{
"amount": 658,
"description": "Reservation fees",
"quantity": 2,
"unit_amount": 329
}
],
"metadata": {},
"paid_at": null,
"payment_method": null,
"period_end": "2026-05-02T00:12:57.329Z",
"period_start": "2026-04-01T00:13:07.846Z",
"status": "draft"
}
```
## Parameters
No parameters.
## Returns
Returns the invoice.
# Update an Invoice
Source: https://docs.chargeapi.co/api-reference/invoices/update
POST /invoices/{invoice}
Updates an invoice. Only invoices in `draft` or `open` status can be updated.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/invoices/inv_AAYkYIM6c3Q4daTuAizl4U6SoAcOO2aL \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"description": "Updated invoice memo for the March 2026 billing period."
}'
```
```json Response theme={null}
{
"id": "inv_AAYkYIM6c3Q4daTuAizl4U6SoAcOO2aL",
"object": "invoice",
"amount_due": 2500,
"amount_paid": null,
"created": "2026-05-02T00:26:05.345Z",
"currency": "eur",
"description": "Updated invoice memo for the March 2026 billing period.",
"due_date": "2026-05-09T00:25:49.394Z",
"fleet": "flt_ZvhAb1gYDNx6AnM9BowgxXg1bisZoTNh",
"line_items": [
{
"amount": 1842,
"description": "Charging sessions for March 2026",
"quantity": 1,
"unit_amount": 1842
},
{
"amount": 658,
"description": "Reservation fees",
"quantity": 2,
"unit_amount": 329
}
],
"metadata": {},
"paid_at": null,
"payment_method": null,
"period_end": "2026-05-02T00:26:13.544Z",
"period_start": "2026-04-01T00:26:03.228Z",
"status": "draft"
}
```
## Parameters
Human-readable memo that appears on the invoice.
Override the default due date . RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
## More parameters
Set of key-value pairs that you can attach to an object.
## Returns
Returns the updated invoice.
# Void an Invoice
Source: https://docs.chargeapi.co/api-reference/invoices/void
POST /invoices/{invoice}/void
Voids an open or uncollectible invoice. A voided invoice can't be paid or edited.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/invoices/inv_4IA75AGSsOyAM8AFUdfPpMhm37CYkBTq/void \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{}'
```
```json Response theme={null}
{
"id": "inv_4IA75AGSsOyAM8AFUdfPpMhm37CYkBTq",
"object": "invoice",
"amount_due": 2500,
"amount_paid": null,
"created": "2026-05-02T00:44:58.695Z",
"currency": "eur",
"description": null,
"due_date": "2026-05-09T00:45:18.693Z",
"fleet": "flt_GpvBe9aAL223cNzb3iAEobQNVkofcUNu",
"line_items": [
{
"amount": 1842,
"description": "Charging sessions for March 2026",
"quantity": 1,
"unit_amount": 1842
},
{
"amount": 658,
"description": "Reservation fees",
"quantity": 2,
"unit_amount": 329
}
],
"metadata": {},
"paid_at": null,
"payment_method": null,
"period_end": "2026-05-02T00:45:10.960Z",
"period_start": "2026-04-01T00:45:26.579Z",
"status": "void"
}
```
## Parameters
No parameters.
## Returns
Returns the updated invoice.
# Attach a payment method
Source: https://docs.chargeapi.co/api-reference/payment_methods/attach
POST /payment_methods/{payment_method}/attach
Attaches a payment method to a driver or fleet. Provide either `driver` or `fleet` in the request body.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/payment_methods/pm_YZ2pk06eeGEvSXx7gXPApThoIJ7jv5B8/attach \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"fleet": "flt_yLqHyRXzLr5QRcbDGfqtQAaMesRH9Uvg"
}'
```
```json Response theme={null}
{
"id": "pm_YZ2pk06eeGEvSXx7gXPApThoIJ7jv5B8",
"object": "payment_method",
"bank_account": null,
"billing_details": {
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"email": "example@example.com",
"name": "Example",
"phone": "+33189000023"
},
"card": {
"brand": "visa",
"exp_month": 12,
"exp_year": 2030,
"fingerprint": "fp_card_example",
"last4": "4242"
},
"created": "2026-04-01T00:08:24.683Z",
"driver": null,
"fleet": "flt_yLqHyRXzLr5QRcbDGfqtQAaMesRH9Uvg",
"type": "card",
"wallet": null
}
```
## Parameters
Driver to use for this request.
Fleet to use for this request.
## Returns
Returns the payment method.
# Create a Payment Method
Source: https://docs.chargeapi.co/api-reference/payment_methods/create
POST /payment_methods
Creates a payment method. Use payment methods for charging sessions, reservations, and invoice payments.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/payment_methods \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"card": {
"cvc": "123",
"exp_month": 12,
"exp_year": 2030,
"number": "4242424242424242"
},
"type": "card"
}'
```
```json Response theme={null}
{
"id": "pm_OWLw9r5C9sPDAy5T4ncxNy8JAYTJmnpP",
"object": "payment_method",
"bank_account": null,
"billing_details": {
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"email": "example@example.com",
"name": "Example",
"phone": "+33189000023"
},
"card": {
"brand": "visa",
"exp_month": 12,
"exp_year": 2030,
"fingerprint": "fp_card_example",
"last4": "4242"
},
"created": "2026-04-01T00:08:13.589Z",
"driver": null,
"fleet": null,
"type": "card",
"wallet": null
}
```
## Parameters
Billing details fields for payment method requests.
Billing address fields for payment method requests.
City, town, or district.
ISO 3166-1 alpha-2 country code.
First line of the address.
Second line of the address.
ZIP or postal code.
State, province, or administrative region.
Email address.
Full name.
Billing phone number (including extension).
Type of payment method being created.
Available options: `card`, `bank_account`, `wallet`
## More parameters
Present when type is bank\_account.
Bank account number.
Name of the bank.
Two-letter ISO country code.
Three-letter ISO currency code, in lowercase.
Routing number for the bank account.
Present when type is card.
Card CVC code.
Card expiration month.
Card expiration year.
Card number.
Present when type is wallet.
Currency of the wallet.
## Returns
Returns the created payment method.
# Detach a payment method
Source: https://docs.chargeapi.co/api-reference/payment_methods/detach
POST /payment_methods/{payment_method}/detach
Detaches a payment method from a driver or fleet. Provide either `driver` or `fleet` in the request body.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/payment_methods/pm_CjymBtwzVrngUAFDpo8uzVZSCG60GbqE/detach \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"fleet": "flt_SgU5VcjfHfnyMvuic6QP3n8LCRzuBshb"
}'
```
```json Response theme={null}
{
"id": "pm_CjymBtwzVrngUAFDpo8uzVZSCG60GbqE",
"object": "payment_method",
"bank_account": null,
"billing_details": {
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"email": "example@example.com",
"name": "Example",
"phone": "+33189000023"
},
"card": {
"brand": "visa",
"exp_month": 12,
"exp_year": 2030,
"fingerprint": "fp_card_example",
"last4": "4242"
},
"created": "2026-04-01T00:28:29.791Z",
"driver": null,
"fleet": null,
"type": "card",
"wallet": null
}
```
## Parameters
Driver to use for this request.
Fleet to use for this request.
## Returns
Returns the payment method.
# List Payment Methods
Source: https://docs.chargeapi.co/api-reference/payment_methods/list
GET /payment_methods
Returns a paginated list of payment method objects. Scope results to a specific `driver` or `fleet`, and optionally filter by `type`.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/payment_methods \
-H "Authorization: Bearer ch_sk_test_..." \
-d fleet=flt_cb4mG1v23U4O4yo5FmfSdlfYBs4P1Yvy \
-d limit=10
```
```json Response theme={null}
{
"data": [
{
"id": "pm_nVAhf8kfmRW2FlfXPrFPsyun29A0HbtA",
"object": "payment_method",
"bank_account": null,
"billing_details": {
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"email": "example@example.com",
"name": "Example",
"phone": "+33189000023"
},
"card": {
"brand": "visa",
"exp_month": 12,
"exp_year": 2030,
"fingerprint": "fp_card_example",
"last4": "4242"
},
"created": "2026-04-01T00:35:36.204Z",
"driver": null,
"fleet": "flt_cb4mG1v23U4O4yo5FmfSdlfYBs4P1Yvy",
"type": "card",
"wallet": null
}
],
"next_page_url": "https://api.chargeapi.co/v1/payment_methods?page=page_a5QwckgP2SrgrjAajbNJUtXN9fBCYQfQNuBBctoKAY0&fleet=flt_cb4mG1v23U4O4yo5FmfSdlfYBs4P1Yvy&limit=10",
"previous_page_url": null
}
```
## Parameters
Scope to payment methods attached to this driver.
Scope to payment methods attached to this fleet.
Maximum number of objects to return (default 10).
Page token from a previous list response.
Filter results by payment method type.
Available options: `card`, `bank_account`, `wallet`
## Returns
Returns a page of payment methods.
Array of payment method objects.
URL for the next page of results, or `null` when there is no next page.
URL for the previous page of results, or `null` when there is no previous page.
# The Payment Method object
Source: https://docs.chargeapi.co/api-reference/payment_methods/object
```json The Payment Method object theme={null}
{
"id": "pm_1L2SwaqDAeDmaC1UrDyu9aOOQ0SO2nm3",
"object": "payment_method",
"bank_account": null,
"billing_details": {
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"email": "example@example.com",
"name": "Example",
"phone": "+33189000023"
},
"card": {
"brand": "visa",
"exp_month": 12,
"exp_year": 2030,
"fingerprint": "fp_card_example",
"last4": "4242"
},
"created": "2026-04-01T00:10:56.540Z",
"driver": null,
"fleet": "flt_STpixc0H52WdIXZ4SeWaj9N4ekAbZUsS",
"type": "card",
"wallet": null
}
```
```json The Payment Method object theme={null}
{
"id": "pm_1L2SwaqDAeDmaC1UrDyu9aOOQ0SO2nm3",
"object": "payment_method",
"bank_account": null,
"billing_details": {
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"email": "example@example.com",
"name": "Example",
"phone": "+33189000023"
},
"card": {
"brand": "visa",
"exp_month": 12,
"exp_year": 2030,
"fingerprint": "fp_card_example",
"last4": "4242"
},
"created": "2026-04-01T00:10:56.540Z",
"driver": null,
"fleet": "flt_STpixc0H52WdIXZ4SeWaj9N4ekAbZUsS",
"type": "card",
"wallet": null
}
```
This object represents a payment method in Charge. Use it to store reusable payment details for charging sessions, reservations, and invoices.
## Attributes
Unique identifier for the object.
Billing information associated with the payment method.
Billing address.
City, town, or district.
ISO 3166-1 alpha-2 country code.
First line of the address.
Second line of the address.
ZIP or postal code.
State, province, or administrative region.
Email address.
Full name.
Billing phone number (including extension).
ID of the attached driver, if any.
ID of the attached fleet, if any.
Type of payment method.
Available options: `bank_account`, `card`, `wallet`
## More attributes
String representing the object's type.
Present when type is `bank_account`.
Name of the bank.
Two-letter ISO country code.
Three-letter ISO currency code, in lowercase.
Uniquely identifies this particular bank account.
Last four digits of the bank account number.
Verification status of the bank account.
Available options: `pending`, `verified`, `failed`
Present when type is `card`.
Card brand.
Card expiration month.
Card expiration year.
Uniquely identifies this particular card.
Last four digits of the card number.
Time at which the payment method was created. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Present when type is `wallet`.
Current wallet balance, in the smallest currency unit.
Three-letter ISO currency code, in lowercase.
Uniquely identifies this particular wallet.
Status of the wallet.
Available options: `active`, `blocked`
# Retrieve a Payment Method
Source: https://docs.chargeapi.co/api-reference/payment_methods/retrieve
GET /payment_methods/{payment_method}
Retrieves a payment method. Pass either `driver` or `fleet` to require ownership under that resource.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/payment_methods/pm_zgJxmOi63xwqZq5yaGxAyf0E5dNQdtAg \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "pm_zgJxmOi63xwqZq5yaGxAyf0E5dNQdtAg",
"object": "payment_method",
"bank_account": null,
"billing_details": {
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"email": "example@example.com",
"name": "Example",
"phone": "+33189000023"
},
"card": {
"brand": "visa",
"exp_month": 12,
"exp_year": 2030,
"fingerprint": "fp_card_example",
"last4": "4242"
},
"created": "2026-04-01T00:23:42.503Z",
"driver": null,
"fleet": "flt_beLEbd8EAMgqlATLpQgtXUuAKxuFv79X",
"type": "card",
"wallet": null
}
```
## Parameters
No parameters.
## More parameters
Scope to payment methods attached to this driver.
Scope to payment methods attached to this fleet.
## Returns
Returns the payment method.
# Update a Payment Method
Source: https://docs.chargeapi.co/api-reference/payment_methods/update
POST /payment_methods/{payment_method}
Updates a payment method. Parameters you omit keep their current values.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/payment_methods/pm_oz41yJNcEzfFA9allAbxZZIuWPSwkCdj \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"billing_details": {
"email": "example@example.com"
}
}'
```
```json Response theme={null}
{
"id": "pm_oz41yJNcEzfFA9allAbxZZIuWPSwkCdj",
"object": "payment_method",
"bank_account": null,
"billing_details": {
"address": {
"city": "Paris",
"country": "FR",
"line1": "10 Rue de la Paix",
"line2": "Batiment A",
"postal_code": "75002",
"state": "Ile-de-France"
},
"email": "example@example.com",
"name": "Example",
"phone": "+33189000023"
},
"card": {
"brand": "visa",
"exp_month": 12,
"exp_year": 2030,
"fingerprint": "fp_card_example",
"last4": "4242"
},
"created": "2026-04-01T00:09:45.475Z",
"driver": null,
"fleet": "flt_1QvKE3YNm47BQlStD0FN0h4Tq0gTbsso",
"type": "card",
"wallet": null
}
```
## Parameters
Billing details fields for payment method requests.
Billing address fields for payment method requests.
City, town, or district.
ISO 3166-1 alpha-2 country code.
First line of the address.
Second line of the address.
ZIP or postal code.
State, province, or administrative region.
Email address.
Full name.
Billing phone number (including extension).
## More parameters
Fields for updating bank account details, if type is bank\_account.
Updated bank name.
Updated three-letter ISO currency code, in lowercase.
Fields for updating card details, if type is card.
New expiration month.
New expiration year.
## Returns
Returns the updated payment method.
# Create a Policy
Source: https://docs.chargeapi.co/api-reference/policies/create
POST /policies
Creates a policy for enforcement or suggestion workflows.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/policies \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"mode": "enforcement",
"name": "Business Hours Policy",
"rules": {
"max_price_per_kwh": 25
}
}'
```
```json Response theme={null}
{
"id": "pol_NCq1tX7rpNAqDwGkXA6ygtiHMbPTHtkY",
"object": "policy",
"created": "2026-04-01T00:08:18.314Z",
"description": null,
"metadata": {},
"mode": "enforcement",
"name": "Example Policy",
"rules": {
"allowed_operators": ["example_operator"],
"denied_operators": [],
"geofences": [
{
"center": {
"latitude": 48.8698,
"longitude": 2.3319
},
"name": "Example Zone",
"radius_meters": 1500
}
],
"max_price_per_kwh": 25,
"time_windows": [
{
"days_of_week": ["monday", "tuesday", "wednesday", "thursday", "friday"],
"end_time": "18:00",
"start_time": "09:00"
}
]
},
"status": "active"
}
```
## Parameters
The operational mode of the policy.
Available options: `enforcement`, `suggestion`
A human-readable name for the policy.
Rules that define how the policy behaves.
A list of charging station operator IDs that are permitted.
A list of charging station operator IDs that are explicitly forbidden.
A list of geographic areas where charging is permitted.
No description available.
No description available.
No description available.
A name for the geofenced area.
The radius from the center point in meters.
The maximum allowable price per kilowatt-hour in the account's default currency, in the smallest currency unit.
Defines when charging is permitted.
Days of the week this window applies to.
Available options: `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`
The end of the time window in 24-hour format.
The start of the time window in 24-hour format.
The status of the policy.
Available options: `active`, `inactive`
## More parameters
An optional description of the policy's purpose.
Set of key-value pairs that you can attach to an object.
## Returns
Returns the created policy.
# Delete a Policy
Source: https://docs.chargeapi.co/api-reference/policies/delete
DELETE /policies/{policy}
Permanently deletes a policy. Charge stops applying it immediately.
```bash cURL theme={null}
curl -X DELETE https://api.chargeapi.co/v1/policies/pol_9xe0A6qa63r3SAobPHjSNlxg5FhpHrub \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "pol_9xe0A6qa63r3SAobPHjSNlxg5FhpHrub",
"object": "policy",
"deleted": true
}
```
## Parameters
No parameters.
## Returns
Returns the deleted policy.
# List Policies
Source: https://docs.chargeapi.co/api-reference/policies/list
GET /policies
Returns a paginated list of policy objects for the authenticated account.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/policies \
-H "Authorization: Bearer ch_sk_test_..." \
-d status=active \
-d limit=10
```
```json Response theme={null}
{
"data": [
{
"id": "pol_hbyAN9SMUkmo8AD0bk10VD27dOK0gqah",
"object": "policy",
"created": "2026-04-01T00:17:55.220Z",
"description": null,
"metadata": {},
"mode": "enforcement",
"name": "Example Policy",
"rules": {
"allowed_operators": ["example_operator"],
"denied_operators": [],
"geofences": [
{
"center": {
"latitude": 48.8698,
"longitude": 2.3319
},
"name": "Example Zone",
"radius_meters": 1500
}
],
"max_price_per_kwh": 25,
"time_windows": [
{
"days_of_week": ["monday", "tuesday", "wednesday", "thursday", "friday"],
"end_time": "18:00",
"start_time": "09:00"
}
]
},
"status": "active"
}
],
"next_page_url": "https://api.chargeapi.co/v1/policies?page=page_MHyulbAysB6BGMUs3AFd85UXM2nM5x1F86hzmpqo3uQ&status=active&limit=10",
"previous_page_url": null
}
```
## Parameters
Maximum number of objects to return (default 10).
Page token from a previous list response.
Filter policies by status.
Available options: `active`, `inactive`
## Returns
Returns a page of policies.
Array of policy objects.
URL for the next page of results, or `null` when there is no next page.
URL for the previous page of results, or `null` when there is no previous page.
# The Policy object
Source: https://docs.chargeapi.co/api-reference/policies/object
```json The Policy object theme={null}
{
"id": "pol_BAmcmCVnWzqSlC5BFWKtpgHsOAo22N9N",
"object": "policy",
"created": "2026-04-01T00:39:10.282Z",
"description": null,
"metadata": {},
"mode": "enforcement",
"name": "Example Policy",
"rules": {
"allowed_operators": ["example_operator"],
"denied_operators": [],
"geofences": [
{
"center": {
"latitude": 48.8698,
"longitude": 2.3319
},
"name": "Example Zone",
"radius_meters": 1500
}
],
"max_price_per_kwh": 25,
"time_windows": [
{
"days_of_week": ["monday", "tuesday", "wednesday", "thursday", "friday"],
"end_time": "18:00",
"start_time": "09:00"
}
]
},
"status": "active"
}
```
```json The Policy object theme={null}
{
"id": "pol_BAmcmCVnWzqSlC5BFWKtpgHsOAo22N9N",
"object": "policy",
"created": "2026-04-01T00:39:10.282Z",
"description": null,
"metadata": {},
"mode": "enforcement",
"name": "Example Policy",
"rules": {
"allowed_operators": ["example_operator"],
"denied_operators": [],
"geofences": [
{
"center": {
"latitude": 48.8698,
"longitude": 2.3319
},
"name": "Example Zone",
"radius_meters": 1500
}
],
"max_price_per_kwh": 25,
"time_windows": [
{
"days_of_week": ["monday", "tuesday", "wednesday", "thursday", "friday"],
"end_time": "18:00",
"start_time": "09:00"
}
]
},
"status": "active"
}
```
This object represents a policy in Charge. Use it to define rules that restrict charging behavior or generate charging suggestions.
## Attributes
Unique identifier for the object.
The operational mode of the policy.
Available options: `enforcement`, `suggestion`
A human-readable name for the policy.
Rules that define how the policy behaves.
A list of charging station operator IDs that are permitted.
A list of charging station operator IDs that are explicitly forbidden.
A list of geographic areas where charging is permitted.
No description available.
No description available.
No description available.
A name for the geofenced area.
The radius from the center point in meters.
The maximum allowable price per kilowatt-hour in the account's default currency, in the smallest currency unit.
Defines when charging is permitted.
Days of the week this window applies to.
Available options: `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`
The end of the time window in 24-hour format.
The start of the time window in 24-hour format.
Current status of the policy.
Available options: `active`, `inactive`
## More attributes
String representing the object's type.
Time at which the policy was created. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
An optional description of the policy's purpose.
Set of key-value pairs that you can attach to an object.
# Retrieve a Policy
Source: https://docs.chargeapi.co/api-reference/policies/retrieve
GET /policies/{policy}
Retrieves a policy.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/policies/pol_63RXZHIfXAPPKYRkrWNfTCL9997xFuCP \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "pol_63RXZHIfXAPPKYRkrWNfTCL9997xFuCP",
"object": "policy",
"created": "2026-04-01T00:14:23.114Z",
"description": null,
"metadata": {},
"mode": "enforcement",
"name": "Example Policy",
"rules": {
"allowed_operators": ["example_operator"],
"denied_operators": [],
"geofences": [
{
"center": {
"latitude": 48.8698,
"longitude": 2.3319
},
"name": "Example Zone",
"radius_meters": 1500
}
],
"max_price_per_kwh": 25,
"time_windows": [
{
"days_of_week": ["monday", "tuesday", "wednesday", "thursday", "friday"],
"end_time": "18:00",
"start_time": "09:00"
}
]
},
"status": "active"
}
```
## Parameters
No parameters.
## Returns
Returns the policy.
# Update a Policy
Source: https://docs.chargeapi.co/api-reference/policies/update
POST /policies/{policy}
Updates a policy. Parameters you omit keep their current values.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/policies/pol_dMBjATAAVcbAKtSNnjlfbmnwviSXr8yP \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"name": "Example Policy v2"
}'
```
```json Response theme={null}
{
"id": "pol_dMBjATAAVcbAKtSNnjlfbmnwviSXr8yP",
"object": "policy",
"created": "2026-04-01T00:09:07.493Z",
"description": null,
"metadata": {},
"mode": "enforcement",
"name": "Example Policy v2",
"rules": {
"allowed_operators": ["example_operator"],
"denied_operators": [],
"geofences": [
{
"center": {
"latitude": 48.8698,
"longitude": 2.3319
},
"name": "Example Zone",
"radius_meters": 1500
}
],
"max_price_per_kwh": 25,
"time_windows": [
{
"days_of_week": ["monday", "tuesday", "wednesday", "thursday", "friday"],
"end_time": "18:00",
"start_time": "09:00"
}
]
},
"status": "active"
}
```
## Parameters
Updated operational mode of the policy.
Available options: `enforcement`, `suggestion`
Updated display name of the policy.
Rules that define how the policy behaves.
A list of charging station operator IDs that are permitted.
A list of charging station operator IDs that are explicitly forbidden.
A list of geographic areas where charging is permitted.
No description available.
No description available.
No description available.
A name for the geofenced area.
The radius from the center point in meters.
The maximum allowable price per kilowatt-hour in the account's default currency, in the smallest currency unit.
Defines when charging is permitted.
Days of the week this window applies to.
Available options: `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, `sunday`
The end of the time window in 24-hour format.
The start of the time window in 24-hour format.
Updated status of the policy.
Available options: `active`, `inactive`
## More parameters
Updated description of the policy's purpose.
Set of key-value pairs that you can attach to an object.
## Returns
Returns the updated policy.
# Create a Report
Source: https://docs.chargeapi.co/api-reference/reports/create
POST /reports
Creates a report. Report generation is asynchronous. The initial response returns a report object with `status` set to `pending`. Retrieve the report later or listen for `report.succeeded` to know when the file is ready.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/reports \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"parameters": {
"period_end": "2026-05-02T00:17:49.442Z",
"period_start": "2026-04-01T00:18:06.932Z",
"type": "charging_summary"
}
}'
```
```json Response theme={null}
{
"id": "rpt_kryMLRtfr8HJYs7xUm2lA2MS3pe8RzR9",
"object": "report",
"account": "acct_7XRI8yvnFHeUxJTZyrEHZpvbeoXHAPcn",
"created": "2026-05-02T00:18:03.609Z",
"fleet": "flt_QP37STtAqG1IDAy6Dd6Qwpy2L2jq8rUC",
"parameters": {
"filters": {
"vehicle": ["veh_hMbjoAIhToYAb14hkjgjEHDwJ4eT0Q3c"]
},
"group_by": "vehicle",
"period_end": "2026-05-02T00:17:49.442Z",
"period_start": "2026-04-01T00:18:06.932Z",
"type": "charging_summary"
},
"size": 0,
"status": "pending",
"succeeded_at": null,
"type": "csv",
"url": null
}
```
## Parameters
Limit the report to a single fleet.
Report configuration payload.
Optional filters (vehicle IDs, driver IDs, etc.).
Dimension to group rows by.
Available options: `vehicle`, `driver`, `fleet`, `station`
End of the reporting window (exclusive). RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Start of the reporting window (inclusive). RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Kind of report to generate.
Available options: `charging_summary`, `cost_analysis`, `usage_breakdown`, `fleet_efficiency`
## Returns
Returns the created report.
# List Reports
Source: https://docs.chargeapi.co/api-reference/reports/list
GET /reports
Returns a paginated list of report objects. Results are sorted by creation date, with the most recent reports first.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/reports \
-H "Authorization: Bearer ch_sk_test_..." \
-d status=pending \
-d limit=10
```
```json Response theme={null}
{
"data": [
{
"id": "rpt_pmvPjgaYmrCkk5ZpijdHUsKxeAe8ZlJu",
"object": "report",
"account": "acct_FxzwvKCzrlLEzOFsBXTUcD8olLuLb3qI",
"created": "2026-05-02T00:44:48.904Z",
"fleet": "flt_Za99zoTOnups7KDvySHSXzATBQ86E91B",
"parameters": {
"filters": {
"vehicle": ["veh_SZ7BwCEFF2JsgwmxbvvBmCJUKHa6jmLN"]
},
"group_by": "vehicle",
"period_end": "2026-05-02T00:44:40.825Z",
"period_start": "2026-04-01T00:44:23.896Z",
"type": "charging_summary"
},
"size": 0,
"status": "pending",
"succeeded_at": null,
"type": "csv",
"url": null
}
],
"next_page_url": "https://api.chargeapi.co/v1/reports?page=page_XtZ5qLR3nykqX3aFIK0Kx4ldZJJAlX94uYqGX4BAeR0&status=pending&limit=10",
"previous_page_url": null
}
```
## Parameters
Maximum number of objects to return (default 10).
Page token from a previous list response.
Filter results by report status.
Available options: `pending`, `succeeded`, `failed`
## Returns
Returns a page of reports.
Array of report objects.
URL for the next page of results, or `null` when there is no next page.
URL for the previous page of results, or `null` when there is no previous page.
# The Report object
Source: https://docs.chargeapi.co/api-reference/reports/object
```json The Report object theme={null}
{
"id": "rpt_HmS9nyVBU8YimkBftwAwPp5bqA31LyPd",
"object": "report",
"account": "acct_m1fAaBjTsocSgEAaAJMkNAG4dwP13R7X",
"created": "2026-05-02T00:37:49.915Z",
"fleet": "flt_P8fIJXDlGlEq6KQsUDSvV7DW8OQlZxgO",
"parameters": {
"filters": {
"vehicle": ["veh_ZT57dmneTYSCr4PUAMg5p0Ynr5F85vpk"]
},
"group_by": "vehicle",
"period_end": "2026-05-02T00:37:39.058Z",
"period_start": "2026-04-01T00:37:49.196Z",
"type": "charging_summary"
},
"size": 48312,
"status": "succeeded",
"succeeded_at": "2026-05-02T00:42:20.267Z",
"type": "csv",
"url": "https://files.chargeapi.co/reports/rpt_HmS9nyVBU8YimkBftwAwPp5bqA31LyPd.csv"
}
```
```json The Report object theme={null}
{
"id": "rpt_HmS9nyVBU8YimkBftwAwPp5bqA31LyPd",
"object": "report",
"account": "acct_m1fAaBjTsocSgEAaAJMkNAG4dwP13R7X",
"created": "2026-05-02T00:37:49.915Z",
"fleet": "flt_P8fIJXDlGlEq6KQsUDSvV7DW8OQlZxgO",
"parameters": {
"filters": {
"vehicle": ["veh_ZT57dmneTYSCr4PUAMg5p0Ynr5F85vpk"]
},
"group_by": "vehicle",
"period_end": "2026-05-02T00:37:39.058Z",
"period_start": "2026-04-01T00:37:49.196Z",
"type": "charging_summary"
},
"size": 48312,
"status": "succeeded",
"succeeded_at": "2026-05-02T00:42:20.267Z",
"type": "csv",
"url": "https://files.chargeapi.co/reports/rpt_HmS9nyVBU8YimkBftwAwPp5bqA31LyPd.csv"
}
```
This object represents a report in Charge. Reports are generated asynchronously and summarize charging activity, usage, or costs over a given period.
## Attributes
Unique identifier for the object.
ID of the account associated with this report.
ID of the fleet that this report is scoped to, if applicable.
Parameters used to generate the report.
Filters applied when generating the report.
List of vehicle IDs included in the report filter.
Field used to group data in the report.
End of the reporting period (exclusive). RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Start of the reporting period (inclusive). RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Report type or template used.
Current status of the report generation process.
Available options: `pending`, `processing`, `succeeded`, `failed`
Output format of the generated report.
Public URL to download the generated report file.
## More attributes
String representing the object's type.
Time at which the report was created. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Size of the generated report file in bytes.
Time when the report generation was completed successfully. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
# Retrieve a Report
Source: https://docs.chargeapi.co/api-reference/reports/retrieve
GET /reports/{report}
Retrieves a report. Use the `status` field to determine whether the file is ready. When `status` is `succeeded`, the `url` field points to the download.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/reports/rpt_BxIsIOZ5k77elGAwGtCDui48zzPRTZv7 \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "rpt_BxIsIOZ5k77elGAwGtCDui48zzPRTZv7",
"object": "report",
"account": "acct_cAdKfyeIO2EVqyWjdoDmVAWmZnJnqgon",
"created": "2026-05-02T00:33:58.199Z",
"fleet": "flt_z0SlRrip8A34H8ZHMezWcQ043GBet9zP",
"parameters": {
"filters": {
"vehicle": ["veh_XXKRCKRBlf4fhQfRgTo2zAagANNNpAvz"]
},
"group_by": "vehicle",
"period_end": "2026-05-02T00:34:12.062Z",
"period_start": "2026-04-01T00:34:23.715Z",
"type": "charging_summary"
},
"size": 48312,
"status": "succeeded",
"succeeded_at": "2026-05-02T00:39:36.095Z",
"type": "csv",
"url": "https://files.chargeapi.co/reports/rpt_BxIsIOZ5k77elGAwGtCDui48zzPRTZv7.csv"
}
```
## Parameters
No parameters.
## Returns
Returns the report.
# Cancel a Reservation
Source: https://docs.chargeapi.co/api-reference/reservations/cancel
POST /reservations/{reservation}/cancel
Cancels a reservation. Only reservations in `pending` or `confirmed` status can be canceled. Depending on the cancellation policy, a fee may still apply.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/reservations/res_k5VXjQAdSJx6Mg9iPw7OAjGzXP42Lvqq/cancel \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{}'
```
```json Response theme={null}
{
"id": "res_k5VXjQAdSJx6Mg9iPw7OAjGzXP42Lvqq",
"object": "reservation",
"cancellation_policy": {
"free_until_before": 1800,
"type": "free_cancellation"
},
"charging_station": "chst_Hyw5CaUqODp6ANbdqjXlzbRXWNScdiIW",
"confirmed_at": "2026-04-01T01:08:12.480Z",
"connector_type": ["CCS"],
"created": "2026-04-01T00:40:25.838Z",
"currency": "eur",
"driver": "drv_uSECaMA1R5LW7udEdnW6nmQ5rz6eHor6",
"earliest_start": null,
"failed_reason": null,
"ideal_end": "2026-04-01T03:10:21.561Z",
"ideal_start": "2026-04-01T01:40:23.381Z",
"latest_end": null,
"location": {
"latitude": 48.8698,
"longitude": 2.3319,
"radius": 1500
},
"metadata": {},
"payment_method": "pm_M9ZjflkWuYp82lH7ow4gFwhdxa1eqGxa",
"reservation_fee": 1200,
"reserved_end": "2026-04-01T03:09:54.276Z",
"reserved_start": "2026-04-01T01:40:18.627Z",
"status": "cancelled",
"updated": "2026-04-01T01:38:06.924Z",
"vehicle": "veh_1mQkD2fvFpsQcWjTjh3vCBT9H5jHRfV4"
}
```
## Parameters
No parameters.
## Returns
Returns the updated reservation.
# Confirm a Reservation
Source: https://docs.chargeapi.co/api-reference/reservations/confirm
POST /reservations/{reservation}/confirm
Confirms a reservation by assigning an available charging station and locking a connector. Charge usually calls this automatically about 30 minutes before the preferred charging window, but you can call it manually when needed.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/reservations/res_lcrRzkcv6cLEFu2g1iGk7DSkZA1yskj6/confirm \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"payment_method": "pm_TN6N9IBoEw4b1AzFWyOXOq9p25Kg2sLF"
}'
```
```json Response theme={null}
{
"id": "res_lcrRzkcv6cLEFu2g1iGk7DSkZA1yskj6",
"object": "reservation",
"cancellation_policy": {
"free_until_before": 1800,
"type": "free_cancellation"
},
"charging_station": "chst_raM0DF0MjwbQMfdU2USC2UfryHoclIAh",
"confirmed_at": "2026-04-01T01:41:36.220Z",
"connector_type": ["CCS"],
"created": "2026-04-01T00:45:10.147Z",
"currency": "eur",
"driver": "drv_RRYAcLthaabAvfgSmDljzML1QHm8rsSD",
"earliest_start": null,
"failed_reason": null,
"ideal_end": "2026-04-01T03:15:13.327Z",
"ideal_start": "2026-04-01T01:45:17.307Z",
"latest_end": null,
"location": {
"latitude": 48.8698,
"longitude": 2.3319,
"radius": 1500
},
"metadata": {},
"payment_method": "pm_TN6N9IBoEw4b1AzFWyOXOq9p25Kg2sLF",
"reservation_fee": 1200,
"reserved_end": "2026-04-01T03:14:49.558Z",
"reserved_start": "2026-04-01T01:45:29.301Z",
"status": "confirmed",
"updated": "2026-04-01T01:43:27.849Z",
"vehicle": "veh_eEmXcRXP18sQYOzh6cRWWAAAV8IZ8LA2"
}
```
## Parameters
No parameters.
## More parameters
ID of the payment method to attach to this reservation.
## Returns
Returns the updated reservation.
# Create a Reservation
Source: https://docs.chargeapi.co/api-reference/reservations/create
POST /reservations
Creates a reservation. New reservations start in `pending` status. Charge attempts to confirm them about 30 minutes before the preferred charging window.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/reservations \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"connector_type": [
"CCS"
],
"driver": "drv_MrLs3VDRkma7gHAcmQ8InEi8CKZ91hrS",
"ideal_end": "2026-04-01T02:45:43.318Z",
"ideal_start": "2026-04-01T01:15:19.251Z",
"location": {
"latitude": 48.8698,
"longitude": 2.3319,
"radius": 1500
},
"vehicle": "veh_tnnvFIIM4oBXknF7qBVAy3biBlc0iKiv"
}'
```
```json Response theme={null}
{
"id": "res_BzPpVflI7WIwvfvbLAU7MwYvKweypDnW",
"object": "reservation",
"cancellation_policy": {
"free_until_before": 1800,
"type": "free_cancellation"
},
"charging_station": null,
"confirmed_at": null,
"connector_type": ["CCS"],
"created": "2026-04-01T00:15:05.782Z",
"currency": "eur",
"driver": "drv_MrLs3VDRkma7gHAcmQ8InEi8CKZ91hrS",
"earliest_start": null,
"failed_reason": null,
"ideal_end": "2026-04-01T02:45:43.318Z",
"ideal_start": "2026-04-01T01:15:19.251Z",
"latest_end": null,
"location": {
"latitude": 48.8698,
"longitude": 2.3319,
"radius": 1500
},
"metadata": {},
"payment_method": "pm_TLAK3sXzk1KvcsyGLlU8nKAN05nrF7NV",
"reservation_fee": 1200,
"reserved_end": null,
"reserved_start": null,
"status": "pending",
"updated": "2026-04-01T00:23:12.388Z",
"vehicle": "veh_tnnvFIIM4oBXknF7qBVAy3biBlc0iKiv"
}
```
## Parameters
ID of the driver creating the reservation.
Preferred charging end time . RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Preferred charging start time . RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Payment method ID for reservation fees.
ID of the vehicle to charge.
## More parameters
Preferred connector types for charging.
Available options: `CHAdeMO`, `CCS`, `Type2`
Earliest acceptable charging start time. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Latest acceptable charging end time. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Geographic area within which Charge will attempt to assign a station.
Latitude of the search area center point.
Longitude of the search area center point.
Radius around the location in meters.
Set of key-value pairs that you can attach to an object.
## Returns
Returns the created reservation.
# List Reservations
Source: https://docs.chargeapi.co/api-reference/reservations/list
GET /reservations
Returns a paginated list of reservation objects. Results are sorted by creation date, with the most recent reservations first. You can filter by `status`, `driver`, `vehicle`, or `charging_station`.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/reservations \
-H "Authorization: Bearer ch_sk_test_..." \
-d status=pending \
-d limit=10
```
```json Response theme={null}
{
"data": [
{
"id": "res_c4PukAee4b57fNPiS72AQjlnUq7lOzpx",
"object": "reservation",
"cancellation_policy": {
"free_until_before": 1800,
"type": "free_cancellation"
},
"charging_station": "chst_9hx85w7aepO1o2Ztt38CPmlLoFxQNDIE",
"confirmed_at": "2026-04-01T01:13:49.792Z",
"connector_type": ["CCS"],
"created": "2026-04-01T00:45:21.538Z",
"currency": "eur",
"driver": "drv_dQGu6UkRHzJjKB4vhFA4jtRSsbbbg0vJ",
"earliest_start": null,
"failed_reason": null,
"ideal_end": "2026-04-01T03:15:19.626Z",
"ideal_start": "2026-04-01T01:45:20.858Z",
"latest_end": null,
"location": {
"latitude": 48.8698,
"longitude": 2.3319,
"radius": 1500
},
"metadata": {},
"payment_method": "pm_m2NiRW0OqC9JUkocJUDcQGy27CAERWKi",
"reservation_fee": 1200,
"reserved_end": "2026-04-01T03:15:42.123Z",
"reserved_start": "2026-04-01T01:45:20.166Z",
"status": "pending",
"updated": "2026-04-01T01:19:37.903Z",
"vehicle": "veh_YzV09s3YRRpsV5anQzAlA6ZPwRi6KpiU"
}
],
"next_page_url": "https://api.chargeapi.co/v1/reservations?page=page_peAJoJjnwBV5pAguztZ0zgYfPOxOsHmnoCG6J63E85k&status=pending&limit=10",
"previous_page_url": null
}
```
## Parameters
Filter reservations by charging station ID.
Filter reservations by driver ID.
Maximum number of objects to return (default 10).
Page token from a previous list response.
Filter reservations by status.
Available options: `pending`, `confirmed`, `completed`, `cancelled`, `failed`, `expired`
Filter reservations by vehicle ID.
## Returns
Returns a page of reservations.
Array of reservation objects.
URL for the next page of results, or `null` when there is no next page.
URL for the previous page of results, or `null` when there is no previous page.
# The Reservation object
Source: https://docs.chargeapi.co/api-reference/reservations/object
```json The Reservation object theme={null}
{
"id": "res_nfJiRR1ok35nSfnIpS4tC7SAsUk0K3As",
"object": "reservation",
"cancellation_policy": {
"free_until_before": 1800,
"type": "free_cancellation"
},
"charging_station": "chst_AwAMEuLnH0Umz3DhtEjEaHACtMcscDDY",
"confirmed_at": "2026-04-01T01:04:32.666Z",
"connector_type": ["CCS"],
"created": "2026-04-01T00:36:20.907Z",
"currency": "eur",
"driver": "drv_OAVzBPkaauGK3svjp2YxHyGkZxPjIuSB",
"earliest_start": null,
"failed_reason": null,
"ideal_end": "2026-04-01T03:06:35.302Z",
"ideal_start": "2026-04-01T01:36:39.198Z",
"latest_end": null,
"location": {
"latitude": 48.8698,
"longitude": 2.3319,
"radius": 1500
},
"metadata": {},
"payment_method": "pm_ifwG4OMNnEmqjpi7cP8EJvxiRZAzGOEX",
"reservation_fee": 1200,
"reserved_end": "2026-04-01T03:06:19.700Z",
"reserved_start": "2026-04-01T01:36:39.901Z",
"status": "confirmed",
"updated": "2026-04-01T01:10:19.775Z",
"vehicle": "veh_O3C7oq0HKOkNlpzokFN5eTTVWImdeLKy"
}
```
```json The Reservation object theme={null}
{
"id": "res_nfJiRR1ok35nSfnIpS4tC7SAsUk0K3As",
"object": "reservation",
"cancellation_policy": {
"free_until_before": 1800,
"type": "free_cancellation"
},
"charging_station": "chst_AwAMEuLnH0Umz3DhtEjEaHACtMcscDDY",
"confirmed_at": "2026-04-01T01:04:32.666Z",
"connector_type": ["CCS"],
"created": "2026-04-01T00:36:20.907Z",
"currency": "eur",
"driver": "drv_OAVzBPkaauGK3svjp2YxHyGkZxPjIuSB",
"earliest_start": null,
"failed_reason": null,
"ideal_end": "2026-04-01T03:06:35.302Z",
"ideal_start": "2026-04-01T01:36:39.198Z",
"latest_end": null,
"location": {
"latitude": 48.8698,
"longitude": 2.3319,
"radius": 1500
},
"metadata": {},
"payment_method": "pm_ifwG4OMNnEmqjpi7cP8EJvxiRZAzGOEX",
"reservation_fee": 1200,
"reserved_end": "2026-04-01T03:06:19.700Z",
"reserved_start": "2026-04-01T01:36:39.901Z",
"status": "confirmed",
"updated": "2026-04-01T01:10:19.775Z",
"vehicle": "veh_O3C7oq0HKOkNlpzokFN5eTTVWImdeLKy"
}
```
This object represents a reservation in Charge. It captures a request to reserve charging capacity for a driver and vehicle within a requested time window. Reservations begin in `pending` and move through confirmation, completion, cancellation, failure, or expiration as Charge processes them.
## Attributes
Unique identifier for the object.
ID of the assigned charging station, once the reservation is confirmed.
ID of the driver associated with the reservation.
Ideal reservation end time (requested by driver). RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Ideal reservation start time (requested by driver). RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Current status of the reservation.
Available options: `pending`, `confirmed`, `completed`, `cancelled`, `failed`, `expired`
ID of the vehicle associated with the reservation.
## More attributes
String representing the object's type.
Available options: `reservation`
Cancellation rules for the reservation.
Time in seconds before reservation start when cancellation is free.
Type of cancellation policy applied to this reservation.
Available options: `free_cancellation`, `non_refundable`
Time when reservation status changed to `confirmed`. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Acceptable connector types for charging.
Time at which the reservation was created. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
ISO 4217 currency code for the reservation fee.
Earliest acceptable reservation start time. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Reason why reservation failed, if applicable.
Available options: `no_available_connectors`, `payment_failed`, `other`
Latest acceptable reservation end time. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Geographic area where Charge should search for a station.
Latitude of the search area center point.
Longitude of the search area center point.
Radius around the location in meters.
Set of key-value pairs that you can attach to an object.
ID of the payment method used for the reservation fee.
Reservation fee amount in the smallest currency unit.
Finalized end time after confirmation. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Finalized start time after confirmation. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Time at which the reservation was last updated. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
# Retrieve a Reservation
Source: https://docs.chargeapi.co/api-reference/reservations/retrieve
GET /reservations/{reservation}
Retrieves a reservation.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/reservations/res_2gdGvYdVl4rOAYYZKw9A0NvGcnQBjhwm \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "res_2gdGvYdVl4rOAYYZKw9A0NvGcnQBjhwm",
"object": "reservation",
"cancellation_policy": {
"free_until_before": 1800,
"type": "free_cancellation"
},
"charging_station": "chst_AHcTUvrKsE8tBn2FBr14qm4wUi8tMpxf",
"confirmed_at": "2026-04-01T01:06:22.750Z",
"connector_type": ["CCS"],
"created": "2026-04-01T00:38:32.334Z",
"currency": "eur",
"driver": "drv_8ww8Fgr4hAxF1UVHbUS7leiKvLSTT0SM",
"earliest_start": null,
"failed_reason": null,
"ideal_end": "2026-04-01T03:08:47.086Z",
"ideal_start": "2026-04-01T01:38:50.112Z",
"latest_end": null,
"location": {
"latitude": 48.8698,
"longitude": 2.3319,
"radius": 1500
},
"metadata": {},
"payment_method": "pm_QT2dm0WBie4w8XFKJtYeRckANPtd9yFz",
"reservation_fee": 1200,
"reserved_end": "2026-04-01T03:08:56.058Z",
"reserved_start": "2026-04-01T01:38:30.194Z",
"status": "confirmed",
"updated": "2026-04-01T01:12:39.485Z",
"vehicle": "veh_SddfwxI37wrE3eD7AbiMAXxcLGpIQiys"
}
```
## Parameters
No parameters.
## Returns
Returns the reservation.
# Update a Reservation
Source: https://docs.chargeapi.co/api-reference/reservations/update
POST /reservations/{reservation}
Updates a reservation. Only reservations in `pending` status can be updated.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/reservations/res_wrF0i5e6cAuXxV9ojAl7Bj0ItaN2d2SI \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"metadata": {
"dispatch_id": "dispatch_2048"
}
}'
```
```json Response theme={null}
{
"id": "res_wrF0i5e6cAuXxV9ojAl7Bj0ItaN2d2SI",
"object": "reservation",
"cancellation_policy": {
"free_until_before": 1800,
"type": "free_cancellation"
},
"charging_station": "chst_EWmDp4B9TCVM6SFNP8dqqzCpzHsqh0zV",
"confirmed_at": "2026-04-01T00:53:49.009Z",
"connector_type": ["CCS"],
"created": "2026-04-01T00:25:49.017Z",
"currency": "eur",
"driver": "drv_MYExnPHAPwjl5AFEAoAAxgCpKSAqreju",
"earliest_start": null,
"failed_reason": null,
"ideal_end": "2026-04-01T02:55:47.067Z",
"ideal_start": "2026-04-01T01:25:20.728Z",
"latest_end": null,
"location": {
"latitude": 48.8698,
"longitude": 2.3319,
"radius": 1500
},
"metadata": {
"dispatch_id": "dispatch_2048",
"trip_id": "trip_9384"
},
"payment_method": "pm_QzTUskWh9JcjSzOpnAvccTNKE0lAHz3K",
"reservation_fee": 1200,
"reserved_end": "2026-04-01T02:55:54.025Z",
"reserved_start": "2026-04-01T01:25:30.800Z",
"status": "confirmed",
"updated": "2026-04-01T00:59:15.857Z",
"vehicle": "veh_yophwhitse33A4AGAF4lmU9meQ2Ou9I0"
}
```
## Parameters
Updated preferred end time for charging. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Updated preferred start time for charging. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
## More parameters
Updated acceptable connector types.
Available options: `CHAdeMO`, `CCS`, `Type2`
Updated earliest acceptable start time. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Updated latest acceptable end time. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Geographic area within which Charge will attempt to assign a station.
Latitude of the search area center point.
Longitude of the search area center point.
Radius around the location in meters.
Set of key-value pairs that you can attach to an object.
## Returns
Returns the updated reservation.
# List Transactions
Source: https://docs.chargeapi.co/api-reference/transactions/list
GET /transactions
Returns a paginated list of transaction objects for your account, sorted by creation date with the most recent transactions first. Use `driver` or `fleet` to scope results.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/transactions \
-H "Authorization: Bearer ch_sk_test_..." \
-d driver=drv_MeVPeA4p1YkuWfAFBkMw7ic0tFccgUth \
-d limit=10
```
```json Response theme={null}
{
"data": [
{
"id": "txn_5rwy7R2xxBaH2HIjjPT9yncKSqO2SrKA",
"object": "transaction",
"amount": 1842,
"charging_session": "cs_2qmCwUDxaPiWQIALyo4B2fBMj11XLvLz",
"created": "2026-04-01T02:56:16.124Z",
"currency": "eur",
"description": "Charge for charging session cs_2qmCwUDxaPiWQIALyo4B2fBMj11XLvLz",
"driver": "drv_MeVPeA4p1YkuWfAFBkMw7ic0tFccgUth",
"fleet": "flt_0JWC8KEZMVcyA8Am56LAIK0qLiCCJAo8",
"payment_method": "pm_uNNks8BXwB5faWNFq6xb9T2JE0wpenAg",
"status": "succeeded",
"type": "charge",
"vehicle": "veh_olgw2XevTKqrJxBZT4ZVrGWr0eymuHZq"
}
],
"next_page_url": "https://api.chargeapi.co/v1/transactions?page=page_jRiSZsXBWnSTaK0tGbxbBaCqA8w78FZAkFXtWr4bAOM&driver=drv_MeVPeA4p1YkuWfAFBkMw7ic0tFccgUth&limit=10",
"previous_page_url": null
}
```
## Parameters
Limit results to transactions associated with this driver.
Limit results to transactions associated with this fleet.
Maximum number of objects to return (default 10).
Page token from a previous list response.
## Returns
Returns a page of transactions.
Array of transaction objects.
URL for the next page of results, or `null` when there is no next page.
URL for the previous page of results, or `null` when there is no previous page.
# The Transaction object
Source: https://docs.chargeapi.co/api-reference/transactions/object
```json The Transaction object theme={null}
{
"id": "txn_Bn4hF4izCWt29CHG1jijO5YobJKdy8Of",
"object": "transaction",
"amount": 1842,
"charging_session": "cs_JOfFUrmbtCNKK0fA5OAuGy18dxlrNSp8",
"created": "2026-04-01T03:27:23.812Z",
"currency": "eur",
"description": "Charge for charging session cs_JOfFUrmbtCNKK0fA5OAuGy18dxlrNSp8",
"driver": "drv_xCY8p1p5O6tFt0ccymP2GAQ3Mtd3qfky",
"fleet": "flt_sAnhKFeQ0AVJkLyxdA39GAIrOzGtDFC2",
"payment_method": "pm_9lA2pgJi9fkAiAAGBAABCIO9qASX5egE",
"status": "succeeded",
"type": "charge",
"vehicle": "veh_r9o8w3cvwxvKKkBRIcoxvUCJgiUYqnhb"
}
```
```json The Transaction object theme={null}
{
"id": "txn_Bn4hF4izCWt29CHG1jijO5YobJKdy8Of",
"object": "transaction",
"amount": 1842,
"charging_session": "cs_JOfFUrmbtCNKK0fA5OAuGy18dxlrNSp8",
"created": "2026-04-01T03:27:23.812Z",
"currency": "eur",
"description": "Charge for charging session cs_JOfFUrmbtCNKK0fA5OAuGy18dxlrNSp8",
"driver": "drv_xCY8p1p5O6tFt0ccymP2GAQ3Mtd3qfky",
"fleet": "flt_sAnhKFeQ0AVJkLyxdA39GAIrOzGtDFC2",
"payment_method": "pm_9lA2pgJi9fkAiAAGBAABCIO9qASX5egE",
"status": "succeeded",
"type": "charge",
"vehicle": "veh_r9o8w3cvwxvKKkBRIcoxvUCJgiUYqnhb"
}
```
This object represents a transaction in Charge. It records a finalized financial event linked to charging activity.
## Attributes
Unique identifier for the object.
Total amount of the transaction in the smallest currency unit.
ID of the charging session associated with this transaction.
ISO 4217 currency code used for this transaction.
ID of the payment method used for the transaction, if any.
Current status of the transaction.
Available options: `succeeded`, `failed`, `pending`
Type of transaction.
Available options: `charge`, `refund`, `adjustment`
## More attributes
String representing the object's type.
Time at which the transaction was created. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Optional human-readable description of the transaction.
ID of the driver associated with the transaction, if any.
ID of the fleet associated with the transaction, if any.
ID of the vehicle associated with the transaction, if any.
# Retrieve a Transaction
Source: https://docs.chargeapi.co/api-reference/transactions/retrieve
GET /transactions/{transaction}
Retrieves a transaction.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/transactions/txn_GHIofKwUOLkO9zRNKtICIMgQevon67HV \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "txn_GHIofKwUOLkO9zRNKtICIMgQevon67HV",
"object": "transaction",
"amount": 1842,
"charging_session": "cs_eAiWnuD4jTKzsulAM29yf9SfiGQF4TJv",
"created": "2026-04-01T03:21:30.669Z",
"currency": "eur",
"description": "Charge for charging session cs_eAiWnuD4jTKzsulAM29yf9SfiGQF4TJv",
"driver": "drv_S6ni16XWNGWfIqjAAakfufQobI7SzAeJ",
"fleet": "flt_2RjM7Bq5TvZNmc0aUKLsxHhyPqovjvKf",
"payment_method": "pm_B239tHxpeRLDlqkEfi3BxNnKK7O4fVth",
"status": "succeeded",
"type": "charge",
"vehicle": "veh_hkUHoAqAgekypzthcZ7EOZOjYXgCVV9Y"
}
```
## Parameters
No parameters.
## Returns
Returns the transaction.
# The Vehicle Telemetry object
Source: https://docs.chargeapi.co/api-reference/vehicle_telemetries/object
```json The Vehicle Telemetry object theme={null}
{
"id": "vtel_QqrK9N8ew14uY0Qi7gHlQD0vWQ48hdBP",
"object": "vehicle_telemetry",
"battery": {
"capacity": 82000,
"level": 78,
"range": 320000,
"status": "charging",
"temperature": 24.5,
"updated": "2026-04-01T01:34:31.737Z"
},
"firmware_version": "v1.2.3",
"location": {
"latitude": 48.8698,
"longitude": 2.3319,
"updated": "2026-04-01T01:34:40.112Z"
},
"odometer": {
"unit": "KMS",
"updated": "2026-04-01T01:34:34.348Z",
"value": 32540
},
"vehicle": "veh_eDmko7kTu3LBcfLJ3E5QslrtSRvbsyOZ"
}
```
```json The Vehicle Telemetry object theme={null}
{
"id": "vtel_QqrK9N8ew14uY0Qi7gHlQD0vWQ48hdBP",
"object": "vehicle_telemetry",
"battery": {
"capacity": 82000,
"level": 78,
"range": 320000,
"status": "charging",
"temperature": 24.5,
"updated": "2026-04-01T01:34:31.737Z"
},
"firmware_version": "v1.2.3",
"location": {
"latitude": 48.8698,
"longitude": 2.3319,
"updated": "2026-04-01T01:34:40.112Z"
},
"odometer": {
"unit": "KMS",
"updated": "2026-04-01T01:34:34.348Z",
"value": 32540
},
"vehicle": "veh_eDmko7kTu3LBcfLJ3E5QslrtSRvbsyOZ"
}
```
This object represents vehicle telemetry in Charge. It provides near-real-time battery, range, location, firmware, and odometer data for a connected vehicle.
## Attributes
Unique identifier for the object.
Battery telemetry for the vehicle.
Battery capacity in watt-hours (Wh).
Battery charge level as a percentage (0–100).
Estimated remaining driving range in meters.
Charging status.
Measured battery temperature in Celsius.
Time at which the battery telemetry was last updated. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Current geographic position of the vehicle.
Latitude component of the GPS position.
Longitude component of the GPS position.
Time at which the location was last updated. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Most recent odometer reading reported by the vehicle.
Unit of measurement for the odometer value.
Available options: `KMS`, `MILES`
Time at which the odometer was last updated. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Total distance driven by the vehicle.
ID of the vehicle this telemetry data belongs to.
## More attributes
String representing the object's type.
Firmware version currently running on the vehicle.
# Retrieve a Vehicle Telemetry
Source: https://docs.chargeapi.co/api-reference/vehicle_telemetries/retrieve
GET /vehicles/{vehicle}/telemetry
Retrieves the latest telemetry for a vehicle. Telemetry includes battery state of charge, estimated range, location, odometer, and other runtime data.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/vehicles/veh_88UEAZxzTmfGqHGeic7Te19aCW3373UC/telemetry \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "vtel_OCmE5xXJWTwAQZVBiqAHJWOB86JEA6yB",
"object": "vehicle_telemetry",
"battery": {
"capacity": 82000,
"level": 78,
"range": 320000,
"status": "charging",
"temperature": 24.5,
"updated": "2026-04-01T01:35:36.614Z"
},
"firmware_version": "v1.2.3",
"location": {
"latitude": 48.8698,
"longitude": 2.3319,
"updated": "2026-04-01T01:35:49.395Z"
},
"odometer": {
"unit": "KMS",
"updated": "2026-04-01T01:35:44.285Z",
"value": 32540
},
"vehicle": "veh_88UEAZxzTmfGqHGeic7Te19aCW3373UC"
}
```
## Parameters
No parameters.
## Returns
Returns the vehicle telemetry.
# Attach a vehicle
Source: https://docs.chargeapi.co/api-reference/vehicles/attach
POST /vehicles/{vehicle}/attach
Attaches a vehicle to a driver or fleet. Provide either `driver` or `fleet` in the request body.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/vehicles/veh_H2yOAymUZ942l5BBEIshajSko6Lz5tEk/attach \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"driver": "drv_LlwjMroRKFuUlRfN3zilThU30sP7FA17"
}'
```
```json Response theme={null}
{
"id": "veh_H2yOAymUZ942l5BBEIshajSko6Lz5tEk",
"object": "vehicle",
"battery_capacity": 82000,
"charging_standard": "CCS",
"created": "2026-04-01T00:25:09.740Z",
"drivers": ["drv_LlwjMroRKFuUlRfN3zilThU30sP7FA17"],
"fleet": "flt_PtbLeKsckDpZhf9EFTiOPX7LxSZIU6Qn",
"information": {
"make": "Volvo",
"model": "EX30",
"year": "2025"
},
"metadata": {},
"policy_ids": ["pol_ghOvrOBgehp3NBPHebbcIE0it10MsROU"],
"registration_plate": "AB-123-CD",
"status": "active",
"telemetry": "vtel_VIwJFdJzHbCcIAtjChVK9PWRL7ulL52R",
"updated": "2026-04-01T01:10:25.566Z",
"vin": "YV1XZK5V0S1234567"
}
```
## Parameters
Driver to use for this request.
Fleet to use for this request.
## Returns
Returns the vehicle.
# Create a Vehicle
Source: https://docs.chargeapi.co/api-reference/vehicles/create
POST /vehicles
Creates a vehicle. Vehicles store identity, battery, telemetry, and charging-session context.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/vehicles \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"battery_capacity": 82000,
"charging_standard": "CCS",
"vin": "YV1XZK5V0S1234567"
}'
```
```json Response theme={null}
{
"id": "veh_6bPnSSnEUP1wKOBC0wOE2fsOsAzjZQDp",
"object": "vehicle",
"battery_capacity": 82000,
"charging_standard": "CCS",
"created": "2026-04-01T00:17:03.543Z",
"drivers": [],
"fleet": null,
"information": {
"make": "Volvo",
"model": "EX30",
"year": "2025"
},
"metadata": {},
"policy_ids": [],
"registration_plate": "AB-123-CD",
"status": "active",
"telemetry": "vtel_7zoXnXktRRzW0xIZv8dEUy4jFWDZ3rDp",
"updated": "2026-04-01T00:25:05.882Z",
"vin": "YV1XZK5V0S1234567"
}
```
## Parameters
Manufacturer details for the vehicle.
Vehicle manufacturer or brand.
Model name of the vehicle.
Model year of the vehicle.
License-plate / registration number.
Vehicle Identification Number (VIN).
## More parameters
Battery capacity in watt-hours (Wh).
Primary charging standard supported.
Available options: `CCS`, `CHAdeMO`, `Type2`
Set of key-value pairs that you can attach to an object.
## Returns
Returns the created vehicle.
# Delete a Vehicle
Source: https://docs.chargeapi.co/api-reference/vehicles/delete
DELETE /vehicles/{vehicle}
Permanently deletes a vehicle. Historical charging sessions remain available for reporting, but the vehicle no longer appears in list endpoints.
```bash cURL theme={null}
curl -X DELETE https://api.chargeapi.co/v1/vehicles/veh_2Gaa8A6HEGPUBvZCYwkxWAuv2SuevFOn \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "veh_2Gaa8A6HEGPUBvZCYwkxWAuv2SuevFOn",
"object": "vehicle",
"deleted": true
}
```
## Parameters
No parameters.
## Returns
Returns the deleted vehicle.
# Detach a vehicle
Source: https://docs.chargeapi.co/api-reference/vehicles/detach
POST /vehicles/{vehicle}/detach
Detaches a vehicle from a driver or fleet. Provide either `driver` or `fleet` in the request body.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/vehicles/veh_0FwlvKfDiZ7hsXLUEtgG43jQXPwD9puR/detach \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"driver": "drv_Hrf5ZmpMxoh0ZEJWYK7LzcAZIhJEP4Ii"
}'
```
```json Response theme={null}
{
"id": "veh_0FwlvKfDiZ7hsXLUEtgG43jQXPwD9puR",
"object": "vehicle",
"battery_capacity": 82000,
"charging_standard": "CCS",
"created": "2026-04-01T00:27:39.053Z",
"drivers": [],
"fleet": "flt_zmAvInlAdg9AfFMiqxUVoNAFHS5qdN3v",
"information": {
"make": "Volvo",
"model": "EX30",
"year": "2025"
},
"metadata": {},
"policy_ids": ["pol_O8gCUQ9esm51jZZXbCbAJGr7Q9xE6RkK"],
"registration_plate": "AB-123-CD",
"status": "active",
"telemetry": "vtel_ZL5z0Cm6jPDley7riLoCCd8ebA8HSA2X",
"updated": "2026-04-01T01:12:50.363Z",
"vin": "YV1XZK5V0S1234567"
}
```
## Parameters
Driver to use for this request.
Fleet to use for this request.
## Returns
Returns the vehicle.
# List Vehicles
Source: https://docs.chargeapi.co/api-reference/vehicles/list
GET /vehicles
Returns a paginated list of vehicle objects. Use `driver` to scope results to vehicles attached to a specific driver, or `fleet` to scope results to one fleet.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/vehicles \
-H "Authorization: Bearer ch_sk_test_..." \
-d fleet=flt_cb4mG1v23U4O4yo5FmfSdlfYBs4P1Yvy \
-d limit=10
```
```json Response theme={null}
{
"data": [
{
"id": "veh_mACCWkuROGwwGL0zHbHgZPEA0NChbnxP",
"object": "vehicle",
"battery_capacity": 82000,
"charging_standard": "CCS",
"created": "2026-04-01T00:11:10.857Z",
"drivers": ["drv_Mm9jmTx7b3PBodMypWRkMbFNwfHhZC0v"],
"fleet": "flt_cb4mG1v23U4O4yo5FmfSdlfYBs4P1Yvy",
"information": {
"make": "Volvo",
"model": "EX30",
"year": "2025"
},
"metadata": {},
"policy_ids": ["pol_z2ubWkbw0wtDwMa6jI1rLAnFaDf0kOaK"],
"registration_plate": "AB-123-CD",
"status": "active",
"telemetry": "vtel_a5rw6OOIXfHBnn3LeFdcGEmtCI40MzNV",
"updated": "2026-04-01T00:55:40.221Z",
"vin": "YV1XZK5V0S1234567"
}
],
"next_page_url": "https://api.chargeapi.co/v1/vehicles?page=page_3TV2AeXv2BDgFJiMAGUnVAnOPXhDhdA88YAhUD4NEqo&fleet=flt_cb4mG1v23U4O4yo5FmfSdlfYBs4P1Yvy&limit=10",
"previous_page_url": null
}
```
## Parameters
Limit results to vehicles attached to this driver.
Limit results to vehicles attached to this fleet.
Maximum number of objects to return (default 10).
Page token from a previous list response.
## Returns
Returns a page of vehicles.
Array of vehicle objects.
URL for the next page of results, or `null` when there is no next page.
URL for the previous page of results, or `null` when there is no previous page.
# The Vehicle object
Source: https://docs.chargeapi.co/api-reference/vehicles/object
```json The Vehicle object theme={null}
{
"id": "veh_LYAsb3EGOvpMEVohGGwyONPPQTSO040H",
"object": "vehicle",
"battery_capacity": 82000,
"charging_standard": "CCS",
"created": "2026-04-01T00:39:14.467Z",
"drivers": ["drv_FoGRbA1xhCCfIK7CrlcN5aExVR13Qjc3"],
"fleet": "flt_uKWbgmcY1aNWVFxhxTNYNTLZro9tz4p2",
"information": {
"make": "Volvo",
"model": "EX30",
"year": "2025"
},
"metadata": {},
"policy_ids": ["pol_Jkj1ZTjAH5bxAi05Y5x9qutaaYcH8sef"],
"registration_plate": "AB-123-CD",
"status": "active",
"telemetry": "vtel_UWxuDZZAMbZTyDCSQ4kbKWbWqsSAnfJ0",
"updated": "2026-04-01T01:24:26.833Z",
"vin": "YV1XZK5V0S1234567"
}
```
```json The Vehicle object theme={null}
{
"id": "veh_LYAsb3EGOvpMEVohGGwyONPPQTSO040H",
"object": "vehicle",
"battery_capacity": 82000,
"charging_standard": "CCS",
"created": "2026-04-01T00:39:14.467Z",
"drivers": ["drv_FoGRbA1xhCCfIK7CrlcN5aExVR13Qjc3"],
"fleet": "flt_uKWbgmcY1aNWVFxhxTNYNTLZro9tz4p2",
"information": {
"make": "Volvo",
"model": "EX30",
"year": "2025"
},
"metadata": {},
"policy_ids": ["pol_Jkj1ZTjAH5bxAi05Y5x9qutaaYcH8sef"],
"registration_plate": "AB-123-CD",
"status": "active",
"telemetry": "vtel_UWxuDZZAMbZTyDCSQ4kbKWbWqsSAnfJ0",
"updated": "2026-04-01T01:24:26.833Z",
"vin": "YV1XZK5V0S1234567"
}
```
This object represents a vehicle in Charge. Use it to store vehicle identity, charging capabilities, relationships, and telemetry links.
## Attributes
Unique identifier for the object.
Total battery capacity of the vehicle in watt-hours (Wh).
ID of the attached fleet, if any.
Manufacturer details for the vehicle.
Vehicle manufacturer or brand.
Model name of the vehicle.
Model year of the vehicle.
License plate or vehicle registration number.
Current lifecycle status of the vehicle.
Available options: `active`, `inactive`, `retired`
## More attributes
String representing the object's type.
Standard used for charging the vehicle.
Time at which the vehicle was registered. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
List of driver IDs currently linked to the vehicle.
Set of key-value pairs that you can attach to an object.
A list of policy IDs to apply to this vehicle.
ID of the telemetry object linked to this vehicle (if any).
Time at which the vehicle object was last updated. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
Vehicle Identification Number (VIN), used to uniquely identify the vehicle.
# Retrieve a Vehicle
Source: https://docs.chargeapi.co/api-reference/vehicles/retrieve
GET /vehicles/{vehicle}
Retrieves a vehicle.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/vehicles/veh_APYI94erbUA9gmpkSyHlanQ6Tvt7NhCY \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "veh_APYI94erbUA9gmpkSyHlanQ6Tvt7NhCY",
"object": "vehicle",
"battery_capacity": 82000,
"charging_standard": "CCS",
"created": "2026-04-01T00:20:10.615Z",
"drivers": ["drv_6MknYYZ6IImjefEJfoIRyZ1PfjG89kBR"],
"fleet": "flt_A2V8RqFaDPZKrLWSRemrSl0ouEqhsx7l",
"information": {
"make": "Volvo",
"model": "EX30",
"year": "2025"
},
"metadata": {},
"policy_ids": ["pol_P10v8vOZyg17MA9Een4gApYFP4aEKecg"],
"registration_plate": "AB-123-CD",
"status": "active",
"telemetry": "vtel_e0twfklZaAaY7qEAZY6aAuMjrJEZAK7m",
"updated": "2026-04-01T01:05:50.104Z",
"vin": "YV1XZK5V0S1234567"
}
```
## Parameters
No parameters.
## Returns
Returns the vehicle.
# Update a Vehicle
Source: https://docs.chargeapi.co/api-reference/vehicles/update
POST /vehicles/{vehicle}
Updates a vehicle. Parameters you omit keep their current values.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/vehicles/veh_p4sfQGCKLoOwlnHVfAYGYI6atkAfbAjG \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"metadata": {
"asset_tag": "veh-eu-4096"
}
}'
```
```json Response theme={null}
{
"id": "veh_p4sfQGCKLoOwlnHVfAYGYI6atkAfbAjG",
"object": "vehicle",
"battery_capacity": 82000,
"charging_standard": "CCS",
"created": "2026-04-01T00:08:31.696Z",
"drivers": ["drv_qlVg7yuAIOZQIrYfAQRwrViyDvN9cO3h"],
"fleet": "flt_PGl4g6UktvxZKmz5kAHFoKAz2a4jrABl",
"information": {
"make": "Volvo",
"model": "EX30",
"year": "2025"
},
"metadata": {
"asset_tag": "veh-us-4096"
},
"policy_ids": ["pol_jkmEs7fkshcfJxrNyxo8VZArLSElD0Kd"],
"registration_plate": "AB-123-CD",
"status": "active",
"telemetry": "vtel_lRA1OL9xtVdrgK93GO0XYWRGH1Uerdfj",
"updated": "2026-04-01T00:54:13.236Z",
"vin": "YV1XZK5V0S1234567"
}
```
## Parameters
Manufacturer details for the vehicle.
Vehicle manufacturer or brand.
Model name of the vehicle.
Model year of the vehicle.
Update license-plate / registration number.
Set lifecycle status of the vehicle.
Available options: `active`, `inactive`, `retired`
## More parameters
Updated battery capacity in Wh.
Change the primary charging standard.
Available options: `CCS`, `CHAdeMO`, `Type2`
Set of key-value pairs that you can attach to an object.
## Returns
Returns the updated vehicle.
# Create a Webhook Endpoint
Source: https://docs.chargeapi.co/api-reference/webhook_endpoints/create
POST /webhook_endpoints
Creates a webhook endpoint. Provide the public HTTPS URL Charge should call and the event types to deliver.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/webhook_endpoints \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"enabled_events": [
"report.succeeded"
],
"url": "https://example.com/webhook/endpoint"
}'
```
```json Response theme={null}
{
"id": "wh_9AXfWD8JdB9RKQiX4Q5dO9YlkSllYkAh",
"object": "webhook_endpoint",
"api_version": "2026-03-01",
"application": null,
"created": "2026-04-01T00:34:42.679Z",
"description": null,
"enabled_events": ["report.succeeded", "reservation.confirmed"],
"livemode": false,
"metadata": {},
"secret": "whsec_JXEBYs1mbO4jcAwl9jqdmAkyJdFF5M1s",
"status": "enabled",
"url": "https://example.com/webhook/endpoint"
}
```
## Parameters
List of event types to subscribe to.
Public HTTPS URL that will receive webhook POSTs.
## More parameters
Override the default API version for this endpoint.
Optional description for your own reference.
Set of key-value pairs that you can attach to an object.
## Returns
Returns the created webhook endpoint.
# Delete a Webhook Endpoint
Source: https://docs.chargeapi.co/api-reference/webhook_endpoints/delete
DELETE /webhook_endpoints/{webhook_endpoint}
Permanently deletes a webhook endpoint. Charge stops delivering events to this URL immediately.
```bash cURL theme={null}
curl -X DELETE https://api.chargeapi.co/v1/webhook_endpoints/wh_K54CNln2O0UcHSjqsXUDx88jT4UpdujP \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "wh_K54CNln2O0UcHSjqsXUDx88jT4UpdujP",
"object": "webhook_endpoint",
"deleted": true
}
```
## Parameters
No parameters.
## Returns
Returns the deleted webhook endpoint.
# List Webhook Endpoints
Source: https://docs.chargeapi.co/api-reference/webhook_endpoints/list
GET /webhook_endpoints
Returns a paginated list of webhook endpoint objects. Results are sorted by creation date, with the most recently created endpoints first.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/webhook_endpoints \
-H "Authorization: Bearer ch_sk_test_..." \
-d limit=10
```
```json Response theme={null}
{
"data": [
{
"id": "wh_wYtE1r6UhVvdV3m3GnyiBGr8LCH5EAjJ",
"object": "webhook_endpoint",
"api_version": "2026-03-01",
"application": null,
"created": "2026-04-01T00:10:01.015Z",
"description": null,
"enabled_events": ["report.succeeded", "reservation.confirmed"],
"livemode": false,
"metadata": {},
"secret": "whsec_2u7qKaxpLQBTiAAieuABcqVEohlxb0kg",
"status": "enabled",
"url": "https://example.com/webhook/endpoint"
}
],
"next_page_url": "https://api.chargeapi.co/v1/webhook_endpoints?page=page_34HSsPfro0pZjHwa6RzGNHcXFp6056P63NcfSt0SfWM&limit=10",
"previous_page_url": null
}
```
## Parameters
Maximum number of objects to return (default 10).
Page token from a previous list response.
## Returns
Returns a page of webhook endpoints.
Array of webhook endpoint objects.
URL for the next page of results.
URL for the previous page of results.
# The Webhook Endpoint object
Source: https://docs.chargeapi.co/api-reference/webhook_endpoints/object
```json The Webhook Endpoint object theme={null}
{
"id": "wh_ciX3YSgbziEUrUrZ7eUwNnAJm89uT45f",
"object": "webhook_endpoint",
"api_version": "2026-03-01",
"application": null,
"created": "2026-04-01T00:25:13.233Z",
"description": null,
"enabled_events": ["report.succeeded", "reservation.confirmed"],
"livemode": false,
"metadata": {},
"secret": "whsec_b5YszBNO5VEYUYlqK3fZ6IkhmgDQ4dLA",
"status": "enabled",
"url": "https://example.com/webhook/endpoint"
}
```
```json The Webhook Endpoint object theme={null}
{
"id": "wh_ciX3YSgbziEUrUrZ7eUwNnAJm89uT45f",
"object": "webhook_endpoint",
"api_version": "2026-03-01",
"application": null,
"created": "2026-04-01T00:25:13.233Z",
"description": null,
"enabled_events": ["report.succeeded", "reservation.confirmed"],
"livemode": false,
"metadata": {},
"secret": "whsec_b5YszBNO5VEYUYlqK3fZ6IkhmgDQ4dLA",
"status": "enabled",
"url": "https://example.com/webhook/endpoint"
}
```
This object represents a webhook endpoint in Charge. Use it to configure where Charge delivers signed event notifications and which event types a destination receives.
## Attributes
Unique identifier for the object.
Event types delivered to this endpoint.
Current status of the webhook endpoint.
Available options: `enabled`, `disabled`
The URL that will receive the webhook POST requests.
## More attributes
String representing the object's type.
API version used for events delivered to this endpoint.
ID of the application associated with this webhook, if applicable.
Time at which the webhook endpoint was created. RFC 3339 UTC timestamp with millisecond precision, e.g. `2026-03-03T14:05:23.789Z`.
An optional description for the webhook endpoint.
Indicates whether this webhook endpoint is operating in live or test mode.
Set of key-value pairs that you can attach to an object.
Secret used to sign webhook payloads sent to this endpoint.
# Retrieve a Webhook Endpoint
Source: https://docs.chargeapi.co/api-reference/webhook_endpoints/retrieve
GET /webhook_endpoints/{webhook_endpoint}
Retrieves a webhook endpoint.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/webhook_endpoints/wh_xeDB6AfMS2lsJ2EWBPXTaGQIiBV4bW46 \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"id": "wh_xeDB6AfMS2lsJ2EWBPXTaGQIiBV4bW46",
"object": "webhook_endpoint",
"api_version": "2026-03-01",
"application": null,
"created": "2026-04-01T00:15:19.009Z",
"description": null,
"enabled_events": ["report.succeeded", "reservation.confirmed"],
"livemode": false,
"metadata": {},
"secret": "whsec_GsBj9TK2XnLA1MFQHadquPSTKnjxkwI8",
"status": "enabled",
"url": "https://example.com/webhook/endpoint"
}
```
## Parameters
No parameters.
## Returns
Returns the webhook endpoint.
# Update a Webhook Endpoint
Source: https://docs.chargeapi.co/api-reference/webhook_endpoints/update
POST /webhook_endpoints/{webhook_endpoint}
Updates a webhook endpoint. Parameters you omit keep their current values.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/webhook_endpoints/wh_BGEvrcAAB2Yh06o3XeLANGwlG0snV36F \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"description": "Primary webhook endpoint."
}'
```
```json Response theme={null}
{
"id": "wh_BGEvrcAAB2Yh06o3XeLANGwlG0snV36F",
"object": "webhook_endpoint",
"api_version": "2026-03-01",
"application": null,
"created": "2026-04-01T00:39:31.689Z",
"description": "Primary operations webhook endpoint.",
"enabled_events": ["report.succeeded", "reservation.confirmed", "vehicle.updated"],
"livemode": false,
"metadata": {},
"secret": "whsec_6L4qdzb6RZdAQIfxbo0rMbtLa5TZQEGP",
"status": "enabled",
"url": "https://example.com/webhook/endpoint"
}
```
## Parameters
Full list of event types to subscribe to.
Enable or disable delivery of events.
Available options: `enabled`, `disabled`
## More parameters
New description for the endpoint.
Set of key-value pairs that you can attach to an object.
## Returns
Returns the updated webhook endpoint.
# Authentication
Source: https://docs.chargeapi.co/authentication
Authenticate requests with your secret key in the `Authorization` header.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/accounts/acct_cdxZGYZlXIlJYGA3TaAkXFI2YnUXR6Bv \
-H "Authorization: Bearer ch_sk_test_..."
```
Charge uses API keys to authenticate requests. You can create and manage your API keys in the [Charge Dashboard](https://chargeapi.co/dashboard).
Test mode secret keys start with `ch_sk_test_`. Live mode secret keys start with `ch_sk_live_`.
Your secret key gives access to your Charge account, so keep it secure. Do not share it, do not expose it in client-side code, and do not commit it to source control. If a key is ever exposed, rotate it immediately and update the systems that send Charge requests.
Charge uses Bearer authentication, which means your API key is sent in the `Authorization` header using the `Bearer` scheme. Send that header on every request.
All API requests must be made over `HTTPS`. Requests sent over plain `HTTP` fail, and requests without authentication fail as well. When authentication fails, Charge returns the standard [`error`](/errors) object with a `401` status and an `authentication_error` type.
## Header format
| Header | Format | Description |
| ------------------------------------ | ------------ | -------------------------------------------------------------------------- |
| `Authorization: Bearer ` | `Secret key` | Secret API key passed in the Authorization header using the Bearer scheme. |
# Error Handling
Source: https://docs.chargeapi.co/errors
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/fleets/flt_61R9a6NUWsRmOW3RM41L6nFOS1ekDGHo \
-H "Authorization: Bearer ch_sk_test_..."
```
```json Response theme={null}
{
"code": "fleet_not_found",
"doc_url": "https://docs.chargeapi.co/errors#fleet_not_found",
"message": "Fleet not found.",
"object": "error",
"param": "fleet",
"request": "req_6R3M9pQ4bV2kLs8nT1xY7wEf5cZa0HdJ",
"status": 404,
"type": "invalid_request_error"
}
```
When a request fails, Charge returns a JSON `error` object. The shape stays consistent across the API so your client can handle failures in a predictable way instead of writing endpoint-specific parsing logic for every error response.
Charge uses standard HTTP status codes to signal what kind of failure happened. In general, `4xx` responses mean the request could not be completed as sent, while `5xx` responses mean something unexpected happened on Charge's side.
The most useful fields for debugging are usually `type`, `code`, `message`, and `request`. `type` tells you the broad category of failure, `code` identifies the specific condition when Charge has one, `message` is safe to show in logs and internal tooling, and `request` gives Charge support a concrete request to trace.
Endpoint reference pages may still call out especially relevant statuses or error codes when they matter for that operation, but they all use the same underlying `error` object described here.
## Attributes
Short error code you can use to identify the error.
Available options: `account_not_found`, `charging_session_conflict`, `charging_session_dependency_not_found`, `charging_session_not_found`, `charging_session_state_conflict`, `charging_station_not_found`, `driver_fleet_conflict`, `driver_not_found`, `driver_or_fleet_not_found`, `estimation_not_found`, `estimation_validation_error`, `fleet_not_found`, `invoice_finalize_invalid_state`, `invoice_not_found`, `invoice_payment_invalid_state`, `invoice_update_invalid_state`, `invoice_validation_error`, `invoice_void_invalid_state`, `owner_scope_invalid`, `payment_authorization_failed`, `payment_method_invalid_input`, `payment_method_not_found`, `payment_method_owner_not_found`, `payment_method_scope_invalid`, `payment_method_scope_not_found`, `policy_blocked`, `policy_not_found`, `rate_limit_exceeded`, `report_not_found`, `report_validation_error`, `reservation_cancel_invalid_state`, `reservation_invalid_input`, `reservation_invalid_state`, `reservation_not_found`, `reservation_update_invalid_state`, `transaction_not_found`, `unsupported_expand_value`, `vehicle_not_found`, `vehicle_owner_not_found`, `vehicle_telemetry_not_found`, `webhook_endpoint_not_found`
Human-readable description of the error.
Name of the request parameter that caused the error, if applicable.
Unique identifier for the request. Include this when contacting Charge support about a specific error.
HTTP status code returned with the error.
Broad category of error.
Available options: `invalid_request_error`, `authentication_error`, `rate_limit_error`, `api_error`, `idempotency_error`
## More attributes
String representing the object's type. Objects of the same type share the same value.
Link to the relevant section in the Charge API docs.
### HTTP Status Code Summary
| Status | Meaning | Description |
| ------ | ----------------- | ---------------------------------------------------------------------- |
| `200` | OK | Everything worked as expected. |
| `400` | Bad Request | The request is invalid for this Charge operation. |
| `401` | Unauthorized | The Charge API key is missing, invalid, or could not be authenticated. |
| `402` | Payment Required | The payment step failed or could not be authorized. |
| `403` | Forbidden | The request was blocked by a Charge policy or permission rule. |
| `404` | Not Found | The requested resource does not exist. |
| `409` | Conflict | The request conflicts with the current state of the resource. |
| `429` | Too Many Requests | Your integration is sending requests too quickly. |
| `5xx` | Server Error | An unexpected server-side error occurred while processing the request. |
### Most Common Error Types
| Error type | Description |
| ----------------------- | -------------------------------------------------------------------------------------- |
| `invalid_request_error` | The request is malformed, incomplete, or incompatible with the current resource state. |
| `authentication_error` | The API key is missing, invalid, or not allowed to access the request. |
| `rate_limit_error` | The request rate is too high and the client should slow down before retrying. |
| `api_error` | An unexpected server-side failure occurred while processing the request. |
# Expanding Responses
Source: https://docs.chargeapi.co/expand
Many Charge objects allow related resources to be expanded inline by using the `expand` query parameter.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/reservations/res_nfJiRR1ok35nSfnIpS4tC7SAsUk0K3As \
-H "Authorization: Bearer ch_sk_test_..." \
-d expand=driver \
-d expand=vehicle.fleet
```
```json Response theme={null}
{
"id": "res_nfJiRR1ok35nSfnIpS4tC7SAsUk0K3As",
"object": "reservation",
"charging_station": "chst_AwAMEuLnH0Umz3DhtEjEaHACtMcscDDY",
"driver": {
"id": "drv_OAVzBPkaauGK3svjp2YxHyGkZxPjIuSB",
"object": "driver"
// ...
},
"payment_method": "pm_ifwG4OMNnEmqjpi7cP8EJvxiRZAzGOEX",
"status": "confirmed",
"vehicle": {
"id": "veh_O3C7oq0HKOkNlpzokFN5eTTVWImdeLKy",
"object": "vehicle",
"fleet": {
"id": "flt_nnMosKd4naheDFTiLmLhZ3Yw64xg9enI",
"object": "fleet"
// ...
}
// ...
}
// ...
}
```
By default, expandable fields are returned as IDs. Adding `expand` tells Charge to replace those IDs with full objects in the same response, which is useful when you already know which related records your client needs.
To expand more than one relation, repeat `expand` once per path. That can include nested paths such as `vehicle.fleet` when that relation chain is supported. The exact values you can use depend on the object returned by that endpoint, and they are listed on the relevant object pages and endpoint references. If you send a path that is not supported, Charge returns `unsupported_expand_value`.
Use `expand`, not `expand[]`.
## Where expansion is available
| Returned object | Allowed `expand` values |
| -------------------------------------------------------------- | ------------------------------------------------------------------ |
| [Account](/api-reference/accounts/object) | `preferences.default_payment_method` |
| [Charging Session](/api-reference/charging_sessions/object) | `charging_station`, `driver`, `fleet`, `payment_method`, `vehicle` |
| [Driver](/api-reference/drivers/object) | `preferences.default_payment_method` |
| [Estimation](/api-reference/estimations/object) | `charging_station`, `vehicle` |
| [Fleet](/api-reference/fleets/object) | `preferences.default_payment_method` |
| [Payment Method](/api-reference/payment_methods/object) | `driver`, `fleet` |
| [Report](/api-reference/reports/object) | `account`, `fleet` |
| [Reservation](/api-reference/reservations/object) | `charging_station`, `driver`, `payment_method`, `vehicle` |
| [Transaction](/api-reference/transactions/object) | `charging_session`, `driver`, `payment_method`, `vehicle` |
| [Vehicle](/api-reference/vehicles/object) | `fleet`, `telemetry` |
| [Vehicle Telemetry](/api-reference/vehicle_telemetries/object) | `vehicle` |
# Idempotent requests
Source: https://docs.chargeapi.co/idempotency
Idempotency makes retrying a `POST` request safe when the first attempt is interrupted by a timeout, connection drop, or other network failure and you cannot tell whether the write already succeeded.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/reservations/res_7vS2mQYpLc1aHe8uRk4nDzJfWt0xNbG3/confirm \
-H "Authorization: Bearer ch_sk_test_..." \
-H "Idempotency-Key: 5cf66d3e-8f65-4f18-a0ce-3a4972c2a1ee" \
--json '{
"payment_method": "pm_A8uQn2ZeMw5kLp1XrT7cHsJvBy4dFoN9"
}'
```
To use it, generate an idempotency key in your backend before making the request, send it in the `Idempotency-Key` header, and reuse that exact same key if you retry the same operation.
Charge treats the first request for a given key as the source of truth for that write attempt. If the original request created the resource successfully, a retry with the same key returns that same outcome instead of creating a second resource.
An idempotency key is a client-generated identifier for one logical write attempt. In practice, that means one key per action you want to perform, not one key per HTTP attempt. Generate it server-side, use something with strong uniqueness such as UUIDv4, and log it alongside request IDs so retries are easy to trace. Idempotency keys are up to 255 characters long.
Charge supports idempotency keys on `POST` endpoints. There is no reason to send them on `GET` or `DELETE`, because those methods are already expected to be safe to repeat without creating a second write.
## Header reference
| Header | Required | Type | Description |
| ----------------- | -------- | -------- | ---------------------------------------------------------------------- |
| `Idempotency-Key` | `false` | `string` | Unique key used to make a POST request idempotent across safe retries. |
# Introduction
Source: https://docs.chargeapi.co/introduction
The Charge API is organized around [REST](https://en.wikipedia.org/wiki/REST). It uses predictable, resource-oriented URLs, accepts `application/json` request bodies, returns `application/json` responses, and relies on standard HTTP response codes, authentication, and verbs.
The API is designed around one object per request. Charge does not accept bulk updates, so each write creates, updates, or deletes a single resource at a time.
The Charge API can differ from one account to another as new [versions](/versioning) are released and functionality is tailored over time. [Log in](https://chargeapi.co/login?redirect=https%3A%2F%2Fdocs.chargeapi.co) to see the reference as it applies to your account and your data.
All API requests are made against `https://api.chargeapi.co`. The reference pages in this section describe the available resources, the parameters they accept, and the JSON objects they return.
```text Base URL theme={null}
https://api.chargeapi.co
```
# Metadata
Source: https://docs.chargeapi.co/metadata
Metadata lets you attach custom key-value pairs to supported Charge resources. Use it for IDs, tags, and notes from your own system that do not belong in the main object fields.
```bash cURL theme={null}
curl -X POST https://api.chargeapi.co/v1/vehicles/veh_mK8xDq0RbTw4uNZ7hPLcVfJeQ3sY1nAa \
-H "Authorization: Bearer ch_sk_test_..." \
--json '{
"metadata": {
"invoice_group": "paris-monthly"
}
}'
```
```json Response theme={null}
{
"id": "veh_mK8xDq0RbTw4uNZ7hPLcVfJeQ3sY1nAa",
"object": "vehicle",
"battery_capacity": 77000,
"charging_standard": "CCS",
"created": "2026-04-02T08:17:41.219Z",
"drivers": ["drv_tH4yQm9LcVw2pZr8sJf6xNdA1kBe7uG3"],
"fleet": "flt_Rn3bWk8QzYv6dLp1sTj5mHxA0cFu2eN4",
"information": {
"make": "Nissan",
"model": "Ariya",
"year": "2024"
},
"metadata": {
"invoice_group": "paris-monthly"
},
"policy_ids": ["pol_Vg7mQe2TbRk9pYx4sNc1hDzA6uLf8wJ0"],
"registration_plate": "GH-482-LN",
"status": "active",
"telemetry": "vtel_Pq2nXc8KbLr5tVz1mHs7dYfA4uW9eJ3",
"updated": "2026-04-02T09:03:18.644Z",
"vin": "KMHKR81BFRU123456"
}
```
Do not store secrets, payment credentials, or sensitive personal data in metadata.
Metadata is a set of key-value pairs you can attach to supported Charge objects. It lets you store your own context next to Charge data without changing the core schema.
Use metadata to map Charge objects to your internal workflows. For example, a fleet integration might store `invoice_group`, `external_vehicle_id`, or `dispatch_job_id` so operations and billing systems can reconcile records quickly.
Metadata should stay descriptive, not authoritative. If a value controls permissions, billing decisions, or lifecycle rules, keep that logic in your own system of record instead of metadata.
Metadata is returned with supported objects and included in event payloads, which makes it useful for retrieval, logging, and webhook processing. Keep keys stable and predictable over time, and never store secrets or sensitive personal data.
Some objects return metadata, and selected write endpoints accept it in the request body.
## Metadata support by object
| Object | Endpoints accepting metadata |
| ----------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| [Account](/api-reference/accounts/object) | [Create an account](/api-reference/accounts/create)
[Update an account](/api-reference/accounts/update) |
| [Driver](/api-reference/drivers/object) | [Create a driver](/api-reference/drivers/create)
[Update a driver](/api-reference/drivers/update) |
| [Fleet](/api-reference/fleets/object) | [Create a fleet](/api-reference/fleets/create)
[Update a fleet](/api-reference/fleets/update) |
| [Invoice](/api-reference/invoices/object) | [Create an invoice](/api-reference/invoices/create)
[Update an invoice](/api-reference/invoices/update) |
| [Policy](/api-reference/policies/object) | [Create a policy](/api-reference/policies/create)
[Update a policy](/api-reference/policies/update) |
| [Reservation](/api-reference/reservations/object) | [Create a reservation](/api-reference/reservations/create)
[Update a reservation](/api-reference/reservations/update) |
| [Vehicle](/api-reference/vehicles/object) | [Create a vehicle](/api-reference/vehicles/create)
[Update a vehicle](/api-reference/vehicles/update) |
| [Webhook Endpoint](/api-reference/webhook_endpoints/object) | [Create a webhook endpoint](/api-reference/webhook_endpoints/create)
[Update a webhook endpoint](/api-reference/webhook_endpoints/update) |
## In practice
Keep metadata keys stable across your integration so they remain useful in search, exports, and support tooling. The most effective values are usually short, explicit, and tied to concepts your own operators already recognize.
# Pagination
Source: https://docs.chargeapi.co/pagination
Use list endpoints by making an initial request with your filters and an optional `limit`, then following the page URLs returned by the API.
```bash cURL theme={null}
curl -G https://api.chargeapi.co/v1/policies \
-H "Authorization: Bearer ch_sk_test_..." \
-d status=active \
-d limit=10
```
```json Response theme={null}
{
"data": [
{
"id": "pol_hbyAN9SMUkmo8AD0bk10VD27dOK0gqah",
"object": "policy",
"created": "2026-04-01T00:17:55.220Z",
"mode": "enforcement",
"name": "Example Policy",
"rules": {
"allowed_operators": ["example_operator"],
"max_price_per_kwh": 25,
// ...
},
"status": "active"
}
],
"next_page_url": "https://api.chargeapi.co/v1/policies?page=page_MHyulbAysB6BGMUs3AFd85UXM2nM5x1F86hzmpqo3uQ&status=active&limit=10",
"previous_page_url": null
}
```
Charge paginates top-level list endpoints with opaque page URLs. You make the first request with any supported filters and an optional `limit`, then continue the sequence by requesting the `next_page_url` or `previous_page_url` exactly as returned.
This matters because the `page` token is opaque. Do not construct or mutate page tokens manually. Once a pagination sequence starts, keep following the returned URLs until you reach the end of the result set.
Do not change filters after the first request in a pagination sequence.
## Follow returned page URLs
When the response includes `next_page_url`, request that URL exactly as returned.
```bash cURL theme={null}
curl "https://api.chargeapi.co/v1/policies?page=page_MHyulbAysB6BGMUs3AFd85UXM2nM5x1F86hzmpqo3uQ&status=active&limit=10" \
-H "Authorization: Bearer ch_sk_test_..."
```
If a later response includes `previous_page_url`, use it the same way. In both directions, the safest client behavior is to treat the returned URL as the complete instruction for the next request.
## Parameters
Maximum number of objects to return (default 10).
Allowed range: `1` to `100`.
Page token from a previous list response. Use it only by following `next_page_url` or `previous_page_url`.
## Attributes
List of objects returned for the current page.
URL for the next page of results, or `null` when there is no next page.
URL for the previous page of results, or `null` when there is no previous page.
# Versioning
Source: https://docs.chargeapi.co/versioning
Charge versions the API so it can introduce breaking changes without forcing every integration to change at the same time.
Most integrations do not need to set a version explicitly. If you do nothing, Charge uses your account's default API version, which is the normal starting point for a new integration. When you need to override it for a request, send the `Charge-Version` header.
```bash cURL theme={null}
curl https://api.chargeapi.co/v1/charging_sessions \
-H "Authorization: Bearer ch_sk_test_..." \
-H "Charge-Version: 2026-03-01"
```
In practice, versioning matters when a change would otherwise affect how your integration reads responses or sends data. That can include payload shape, field behavior, or validation rules.
Versioning matters most for webhook delivery. If one consumer needs to stay on a fixed payload shape during an upgrade, set `api_version` on that [Webhook Endpoint](/api-reference/webhook_endpoints/object). If you leave it unset, the endpoint uses the account default version.
Each [Event](/api-reference/events/object) stores the `api_version` that was used to render its payload when the event was created. Treat events as snapshots: changing your account default later does not rewrite older event payloads.
When you upgrade, test the target version first and move webhook consumers deliberately. In most cases, the right approach is to keep using the account default and pin a version only when you need controlled rollout for a specific endpoint.
# Webhooks
Source: https://docs.chargeapi.co/webhooks
Charge uses webhooks to notify your application when something happens asynchronously, so your integration can react to changes without polling the API.
```http Delivery theme={null}
POST /webhooks/charge HTTP/1.1
Host: example.com
Charge-Signature: t=2026-03-03T14:05:23.789Z,v1=4d0f0d7d8ef1bc5e1a0b7ef5d8a26c2ab6f4fce7e9f1a8d06fd30ac2f39c9b1d
Content-Type: application/json
{
"id": "evt_11R9a6NUWsRmOW3RM41L6nFOS1ekDGHo",
"object": "event",
"api_version": "2026-03-01",
"created": "2026-03-03T14:05:23.789Z",
"data": {
"object": {
"id": "rpt_21R9a6NUWsRmOW3RM41L6nFOS1ekDGHo",
"object": "report",
// ...
},
// ...
},
// ...
"type": "report.succeeded"
}
```
```http Response theme={null}
HTTP/1.1 200 OK
```
Each delivery is an HTTPS `POST` request that contains an [Event](/api-reference/events/object) payload. The event includes its `type`, the resource snapshot in `data`, the creation time, whether it was generated in live or test mode, and the `api_version` used to render that payload.
Your endpoint should acknowledge webhook deliveries quickly. Charge treats `200`, `201`, `202`, and `204` as successful responses. If your endpoint does not return one of those statuses in time, Charge retries the delivery according to the retry policy below.
Webhook deliveries must be verified before you trust them. Charge signs each request with the `Charge-Signature` header, and your handler should verify that signature against the endpoint secret using the raw request body, not a re-serialized payload.
Webhook consumers should also be built to handle retries and duplicate deliveries. A delivery can be attempted more than once, so your handler should be idempotent and should not assume that each event ID will only ever be seen once.
You control which events a destination receives through [Webhook Endpoints](/api-reference/webhook_endpoints/object). Each endpoint can subscribe to selected event types, and it can optionally pin `api_version` if one consumer needs to stay on a fixed payload shape during an upgrade.
## Webhook payloads
Charge sends an [Event](/api-reference/events/object) payload to your endpoint for each event type you subscribe to.
The table below shows the event types you can receive today.
## Supported event types
| Event type | Payload object | Description |
| ------------------ | ------------------------------------------------- | ----------------------------------------------------------------------- |
| `charge.succeeded` | [Transaction](/api-reference/transactions/object) | Sent when a charging transaction has been successfully finalized. |
| `report.succeeded` | [Report](/api-reference/reports/object) | Sent when a report run completes successfully and is ready to retrieve. |
## In practice
* Verify the `Charge-Signature` header before trusting the payload.
* Return a `2xx` status only after your handler has accepted the event.
* Store event IDs if you want deduplication on your side.