Get Public Charging Session
curl --request GET \
--url https://app.plugchoice.com/api/v3/public-charging/sessions/{token} \
--header 'Authorization: Bearer <token>'{
"data": {
"status": "<string>",
"failure_reason": "<string>",
"connector_id": 123,
"connector_status": "<string>",
"charger": {
"public_code": "<string>",
"name": "<string>",
"online": true
},
"pricing": {
"currency": "<string>",
"price_per_kwh": 123,
"start_fee": 123
},
"amount_authorized": 123,
"energy_kwh": "<string>",
"cost_amount": 123,
"amount_captured": 123,
"tax_amount": 123,
"driver_email": "<string>",
"created_at": "<string>",
"authorized_at": "<string>",
"charging_started_at": "<string>",
"completed_at": "<string>",
"captured_at": "<string>"
},
"payment": {
"client_secret": "<string>",
"publishable_key": "<string>",
"stripe_account_id": "<string>"
}
}Public Charging
Get Public Charging Session
GET
/
v3
/
public-charging
/
sessions
/
{token}
Get Public Charging Session
curl --request GET \
--url https://app.plugchoice.com/api/v3/public-charging/sessions/{token} \
--header 'Authorization: Bearer <token>'{
"data": {
"status": "<string>",
"failure_reason": "<string>",
"connector_id": 123,
"connector_status": "<string>",
"charger": {
"public_code": "<string>",
"name": "<string>",
"online": true
},
"pricing": {
"currency": "<string>",
"price_per_kwh": 123,
"start_fee": 123
},
"amount_authorized": 123,
"energy_kwh": "<string>",
"cost_amount": 123,
"amount_captured": 123,
"tax_amount": 123,
"driver_email": "<string>",
"created_at": "<string>",
"authorized_at": "<string>",
"charging_started_at": "<string>",
"completed_at": "<string>",
"captured_at": "<string>"
},
"payment": {
"client_secret": "<string>",
"publishable_key": "<string>",
"stripe_account_id": "<string>"
}
}Returns the current state of a public charging session. Poll this endpoint to track the session as it progresses. This endpoint does not require authentication and is rate limited to 30 requests per minute. The session token is the credential. Returns
404 if the token is unknown or has expired.
The session token returned when the session was started.
Response
The session details.
Show session
Show session
The session status. One of
created, authorized, starting, charging, stopping, settling, captured, no_charge, expired, failed, abandoned, capture_failed, requires_review, refunded, written_off.The reason the session failed or was abandoned, if any. May be
null.The OCPP connector ID the session runs on.
The current OCPP status of the connector. One of
Available, Charging, Faulted, Finishing, Preparing, Reserved, SuspendedEV, SuspendedEVSE, Unavailable. May be null.The pre-authorized hold amount in the currency’s minor units. May be
null.The energy delivered in kWh, as a decimal string. While charging, this is an estimate from the latest meter value. May be
null.The running cost in the currency’s minor units, capped at the authorized amount. May be
null.The final amount captured in the currency’s minor units. May be
null.The tax portion of the captured amount in the currency’s minor units. May be
null.The driver’s receipt email. May be
null.ISO 8601 timestamp of when the session was created. May be
null.ISO 8601 timestamp of when the payment was authorized. May be
null.ISO 8601 timestamp of when charging started. May be
null.ISO 8601 timestamp of when charging completed. May be
null.ISO 8601 timestamp of when the payment was captured. May be
null.The Stripe payment context. Only present while the session status is
created; otherwise null.⌘I