Cancel a reservation
Moves a PENDING or RESERVED reservation to CANCELED. Send {}, or an OCPI canceled object to record why.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
booking_id
OCPI id of the reservation.
Headers
Idempotency-Key
A unique key you choose for this call, e.g. a UUID. Retrying with the same key returns the first result instead of acting twice.
Query parameters
country_code
OCPI country code of the party that owns the row, e.g. NL.
party_id
OCPI party id of the party that owns the row, e.g. OCP.
Request
This endpoint expects an object.
canceled
OCPI cancellation object.
Response
The reservation, now CANCELED (it was PENDING or RESERVED).
id
booking_id
request_id
location_id
period
When the reservation may be used.
reservation_status
booking_terms
Terms accepted for the reservation.
booking_requests
last_updated
role
origin
organization_id
country_code
party_id
ocpi_version
created_at
updated_at
booking_option
booking_tokens
tariff_ids
canceled
access_information
deleted_at
Errors
401
Unauthorized Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error
502
Bad Gateway Error
504
Gateway Timeout Error