AutoStop (India)

India AutoStop extension for START_SESSION and EVSE availability.

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:

FieldTypeRequiredNotes
autostop_session_availablebooleanYes (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
  }
}
FieldTypeRequiredNotes
autostop_session.typestringYesENERGY only
autostop_session.valuenumberYesGreater than 0; unit is always kWh (no unit field)

eMSP rules

  • Send autostop_session only when the target EVSE has autostop_session_available === true.
  • After a 2000 response, omit autostop_session or choose another EVSE. Do not retry the same request unchanged.

CPO rules

  1. If the request includes autostop_session and the EVSE has autostop_session_available: false (or AutoStop cannot be honoured), return OCPI status_code: 2000 with a human-readable status_message. Do not use 1000 + REJECTED or an x-cih code for this case.
  2. If accepted, stop charging at the target energy, then send the usual COMPLETED session 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_available on EVSEs; reject unsupported autostop_session with status_code: 2000 and human status_message.
  • eMSP: read the EVSE flag before sending autostop_session; handle 2000 without treating it as an x-cih business code.
  • Hub: forwards location and command payloads. It does not evaluate AutoStop capability.

Certification

  • [ ] CPO publishes autostop_session_available on EVSEs
  • [ ] CPO rejects unsupported autostop_session with OCPI status_code: 2000 and human status_message
  • [ ] eMSP sends autostop_session only when autostop_session_available === true