Hotels
Hotel booking passes.
Create a hotel
Creates a hotel, i.e. the pass template (title, colours, advantages, barcode format, address, strip image) shared by all its bookings. The request is sent as `multipart/form-data` and returns the created hotel.
List hotels
Returns the paginated list of the hotels in your wallet. Each hotel is a pass template from which you issue bookings.
Update a hotel
Updates a hotel. Only the fields you send are changed, and the template of the passes already issued is updated accordingly. Accepts `multipart/form-data` (to change the strip image) or `application/json`.
Delete a hotel
Deletes a hotel and its pass template. Returns the deleted hotel.
Get a hotel
Returns the details of a hotel in your wallet from its ID.
Create a hotel pass
Creates a booking pass for a hotel: holder, check-in (`checkin`) and check-out (`checkout`) dates, room and benefits. Returns the created pass.
List the passes of a hotel
Returns the paginated list of the booking passes issued for a hotel, with filters on status and creation date, and a text search.
Get a hotel pass
Returns a booking pass from its ID.
Update a hotel pass
Updates a booking (dates, room, holder, status) and pushes the change to the installed pass. Set `status` to `canceled` to cancel the booking.
Delete a hotel pass
Permanently deletes a booking pass. Returns the deleted pass.
Bulk create hotel passes
Processed asynchronously. Returns a bulk operation: track its status and results with `GET /bulk-operations/{operationId}`.
Bulk update hotel passes
Returns a bulk operation: track its status and results with `GET /bulk-operations/{operationId}`.
Bulk delete hotel passes
Returns a bulk operation: track its status and results with `GET /bulk-operations/{operationId}`.