Create a bookable site
Opens an OCPI location for reservations. Country code and party id are stored in upper case. 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_location_id
location_id
role
country_code
party_id
booking_option
OCPI booking option. The gateway stores the object it received.
policy
OCPI booking policy. Later fields are kept.
tariff_ids
booking_terms
Terms accepted for the reservation.
calendars
last_updated
origin
Allowed values:
ocpi_version
Allowed values:
Response
The created bookable site.
id
booking_location_id
location_id
last_updated
role
origin
organization_id
country_code
party_id
ocpi_version
created_at
updated_at
booking_option
policy
tariff_ids
booking_terms
Terms accepted for the reservation.
calendars
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