Cancel Reservation
Source: OCPP 1.6 Specification — Section 5.1 (Operation), Sections 6.5 / 6.6 (Messages)
Overview
To cancel a reservation the Central System SHALL send a CancelReservation.req PDU to the Charge Point.
If the Charge Point has a reservation matching the reservationId in the request PDU, it SHALL return status Accepted. Otherwise it SHALL return Rejected.
Sequence Diagram
Figure 22. Sequence Diagram: Cancel Reservation
Central System ──── CancelReservation.req ────▶ Charge Point
(reservationId)
Central System ◀─── CancelReservation.conf ──── Charge Point
(status)
Initiator
Central System → Charge Point
Fields
| Field Name | Field Type | Card. | Description |
|---|---|---|---|
| reservationId | integer | 1..1 | Required. Id of the reservation to cancel. |
| Field Name | Field Type | Card. | Description |
|---|---|---|---|
| status | CancelReservationStatus | 1..1 | Required. This indicates the success or failure of the cancelling of a reservation by Central System. |
CancelReservationStatus values
Accepted— Reservation for the identifier has been cancelled.Rejected— Reservation could not be cancelled (e.g. because there is no reservation active with the givenreservationId).
Examples
{
"reservationId": 42
}{
"status": "Accepted"
}Schema
Source:
schemas/CancelReservation.json,schemas/CancelReservationResponse.json(OCPP 1.6, JSON Schema draft-04)