Create a reservation
Records a reservation request as PENDING; reserve or reject it next. Retrying with the same Idempotency-Key returns the first result.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
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.
Request
This endpoint expects an object.
booking_id
request_id
location_id
period
When the reservation may be used.
booking_terms
Terms accepted for the reservation.
booking_requests
role
country_code
party_id
booking_option
OCPI booking option. The gateway stores the object it received.
booking_tokens
tariff_ids
canceled
OCPI cancellation object.
access_information
last_updated
origin
Allowed values:
ocpi_version
Allowed values:
Response
The created reservation, PENDING.
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
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error
502
Bad Gateway Error
504
Gateway Timeout Error