AutoStop lets an eMSP request that a charging session stop automatically after a target energy amount. It is a ChargeIndia India extension — not part of OCPI 2.2.1. Hub forwards the fields unchanged.
Not an x-cih business code
Unsupported AutoStop is a protocol/client error (status_code: 2000), not a 1000 + REJECTED business reject. Business rejects use START_SESSION Error Codes.
EVSE availability
CPOs expose AutoStop support per EVSE with a boolean flag:
| Field | Type | Required | Notes |
|---|---|---|---|
autostop_session_available | boolean | Yes (when publishing EVSEs that support or advertise AutoStop) | true if this EVSE can honour autostop_session |
{
"uid": "EVSE001",
"status": "AVAILABLE",
"connectors": [ ... ],
"autostop_session_available": true,
"last_updated": "2026-12-01T09:30:00Z"
}
Hub stores and forwards this flag with the location catalog. It does not evaluate charger OEM capability itself.
START_SESSION request
START_SESSION may include an optional autostop_session object.
{
"response_url": "https://emsp.example.com/ocpi/callbacks/commands",
"token": { "uid": "TOKEN001", "type": "APP_USER", "contract_id": "CONTRACT001" },
"location_id": "LOC001",
"evse_uid": "EVSE001",
"connector_id": "1",
"authorization_reference": "AUTH-20261201-0001",
"autostop_session": {
"type": "ENERGY",
"value": 1.0
}
}
| Field | Type | Required | Notes |
|---|---|---|---|
autostop_session.type | string | Yes | ENERGY only |
autostop_session.value | number | Yes | Greater than 0; unit is always kWh (no unit field) |
eMSP rules
- Send
autostop_sessiononly when the target EVSE hasautostop_session_available === true. - After a
2000response, omitautostop_sessionor choose another EVSE. Do not retry the same request unchanged.
CPO rules
- If the request includes
autostop_sessionand the EVSE hasautostop_session_available: false(or AutoStop cannot be honoured), return OCPIstatus_code: 2000with a human-readablestatus_message. Do not use1000+REJECTEDor anx-cihcode for this case. - If accepted, stop charging at the target energy, then send the usual
COMPLETEDsession update and CDR.
Reject example (2000)
{
"status_code": 2000,
"status_message": "AutoStop is not supported or enabled on this charger",
"timestamp": "2026-12-01T09:30:00Z"
}
Responsibilities
- CPO: publish
autostop_session_availableon EVSEs; reject unsupportedautostop_sessionwithstatus_code: 2000and humanstatus_message. - eMSP: read the EVSE flag before sending
autostop_session; handle2000without treating it as anx-cihbusiness code. - Hub: forwards location and command payloads. It does not evaluate AutoStop capability.
Certification
- [ ] CPO publishes
autostop_session_availableon EVSEs - [ ] CPO rejects unsupported
autostop_sessionwith OCPIstatus_code: 2000and humanstatus_message - [ ] eMSP sends
autostop_sessiononly whenautostop_session_available === true