CancelReservation

Reservation CSMS->CS OCPP 2.0.1

Sent by the CSMS to cancel an existing reservation on the Charging Station.

Quick Reference

Required Fields

reservationId integer

ID of the reservation to cancel

Example Payload

{
  "reservationId": 1
}

Example Full Frame

[
  2,
  "msg-001",
  "CancelReservation",
  {
    "reservationId": 1
  }
]

Format: [MessageType, MessageId, Action, Payload]

Overview

CancelReservation removes an active reservation, freeing the EVSE for general use.

Expected Response

  • status: Accepted or Rejected

After Accepted, the Charging Station sends StatusNotification showing Available and ReservationStatusUpdate with reservationUpdateStatus: Removed.

Testing Tips

  • Cancel an active reservation and verify StatusNotification shows Available
  • Cancel a non-existent reservation and verify Rejected response

Common Errors

GenericError

Cause: reservationId does not match any active reservation

Solution: Charging Station responds with status Rejected if no reservation with the given ID exists