{"openapi":"3.1.0","info":{"title":"ArecaBooking API","description":"The public ArecaBooking API for property integrations. Authenticate every request with the `x-api-key` header, using a key issued for your property under Settings -> API keys in the dashboard. A key is scoped to the property it was created for, so no endpoint takes a property id.","contact":{"name":"API Support","email":"contact@arecabooking.com"},"version":"ce44e85_2026-11-28_21-59-56"},"externalDocs":{"description":"REST API Documentation","url":"https://arecabooking.com/docs/api/get-started/"},"servers":[{"url":"https://api.arecabooking.com","description":"Base URL"}],"tags":[{"name":"Extras","description":"The extras your property sells, and the extras on each reservation"},{"name":"Bookings","description":"Create, read, change, confirm and cancel reservations of your property and update their guests"},{"name":"Rate plans","description":"Read the rate plans of your property"},{"name":"Room types","description":"Read the room types of your property"},{"name":"Payments","description":"Record payments your own systems took and read a reservation's payments"},{"name":"Restrictions","description":"Change the stay restrictions of your property"},{"name":"Availability & rates","description":"Read and change free rooms and prices of your property"},{"name":"Check-in","description":"Collect guest details, check guests in and out"}],"paths":{"/api/v1/bookings/{bookingId}/guests":{"put":{"tags":["Bookings"],"summary":"Replace the guests of a reservation","description":"Saves everyone staying on the reservation, with every detail they gave - what an online check-in collects. Rooms, dates and prices are left as they are. A guest kept on the reservation keeps their room, a guest added is put in a room with space, and a guest left out of the list is taken off the reservation. Each listed guest is saved exactly as sent, so send back what GET returned along with what changed. Only a PENDING, CONFIRMED or CHECKED_IN reservation can be changed.","operationId":"updateGuests","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingGuestsRequest"}}},"required":true},"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"The reservation is not PENDING, CONFIRMED or CHECKED_IN, no guests, a guest without a name, or an unknown guest id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The reservation with its guests as saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/bookings":{"get":{"tags":["Bookings"],"summary":"List reservations","description":"Returns reservations of your property, oldest arrival first. Without date parameters every current reservation is returned, newest page first via offset. Archived reservations are left out.","operationId":"findAll","parameters":[{"name":"from","in":"query","description":"Only stays that still run on or after this day (ISO date)","required":false,"schema":{"type":"string","format":"date"},"example":"2026-09-01"},{"name":"to","in":"query","description":"Only stays that start on or before this day (ISO date)","required":false,"schema":{"type":"string","format":"date"},"example":"2026-09-30"},{"name":"status","in":"query","description":"Only reservations in this state. Archived reservations are never listed","required":false,"schema":{"type":"string","enum":["AWAITING_PAYMENT","PENDING","CONFIRMED","CHECKED_IN","CHECKED_OUT","CANCELLED","NO_SHOW"]},"example":"CONFIRMED"},{"name":"reference","in":"query","description":"Only the reservation with this reference: your own sent when creating it, a channel's, or - for one made in ArecaBooking - the eight-character code on the guest's confirmation email (A1B2C3D4, also accepted as #A1B2C3D4)","required":false,"schema":{"type":"string"},"example":"A1B2C3D4"},{"name":"limit","in":"query","description":"How many reservations to return, 1-200 (default 50)","required":false,"schema":{"type":"integer","format":"int32"},"example":50},{"name":"offset","in":"query","description":"How many reservations to skip, for paging through the list","required":false,"schema":{"type":"integer","format":"int32"},"example":0}],"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"A filter value is out of range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"Reservations matching the filters","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicBookingResponse"}}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicBookingResponse"}}}}}},"security":[{"apiKey":[]}]},"post":{"tags":["Bookings"],"summary":"Create a reservation","description":"Books the room types you name for the dates you name. A free room - or a bed, in a shared room type - is picked for each line, and the stay is priced from your own rate plans, seasons and manual prices: no price is taken from the request. The reservation is created as CONFIRMED, or as PENDING when you send that status. Where the property has it switched on, the guest of a CONFIRMED reservation is sent the confirmation email.","operationId":"create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingCreateRequest"}}},"required":true},"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"The reference is already used by another reservation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"The request is incomplete, the dates run backwards, or nothing is free for them","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"201":{"description":"The reservation that was created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/bookings/{bookingId}/payments":{"get":{"tags":["Payments"],"summary":"List a reservation's payments","description":"Returns every payment and refund recorded on the reservation, oldest first, whoever recorded it: your integration, the booking engine or staff.","operationId":"findAll_1","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"}],"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"Payments and refunds of the reservation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicPaymentResponse"}}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicPaymentResponse"}}}}}},"security":[{"apiKey":[]}]},"post":{"tags":["Payments"],"summary":"Record a payment","description":"Records money your own system took for the reservation, such as a card payment on your website, so its balance due goes down by that amount. Nothing is charged: the money has already moved. The amount is in the reservation's currency. Each call records a new payment, so do not repeat a call that succeeded.","operationId":"create_1","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPaymentCreateRequest"}}},"required":true},"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"The amount is missing or not above zero, the account is unknown, or the currency differs from the reservation's","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"201":{"description":"The reservation, with its updated paid amount and balance due","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/bookings/{bookingId}/extras":{"get":{"tags":["Extras"],"summary":"List a reservation's extras","description":"Returns every extra sold on the reservation, newest first, whoever added it: your integration, the booking engine or staff. Returned and refunded ones are included.","operationId":"findAll_2","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"}],"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"Extras of the reservation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicBookingExtraResponse"}}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicBookingExtraResponse"}}}}}},"security":[{"apiKey":[]}]},"post":{"tags":["Extras"],"summary":"Add an extra to a reservation","description":"Adds one of your property's extras to the reservation. It is added unpaid: the reservation's balance due goes up by its price, and is paid like the rest of it, through POST /api/v1/bookings/{bookingId}/payments. Each call adds a new extra, so do not repeat a call that succeeded.","operationId":"create_2","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingExtraCreateRequest"}}},"required":true},"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"No extra named, the extra is not on sale or has no price in the reservation's currency, a quantity below one, or a guest not on the reservation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation or extra at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"201":{"description":"The extra as added","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingExtraResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingExtraResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/bookings/{bookingId}/extras/{extraId}/return":{"post":{"tags":["Extras"],"summary":"Return an extra","description":"Gives back all or some of the extra. One not paid yet becomes RETURNED and leaves the balance due. One already paid becomes REFUNDED and its money is recorded as paid back, from the account it was paid into unless you name another. Giving back only some splits the extra: the part given back becomes a line of its own. Optionally issues a credit note for the invoice that billed it.","operationId":"returnExtra","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"},{"name":"extraId","in":"path","description":"Identifier of the extra on the reservation, from GET .../extras","required":true,"schema":{"type":"string","format":"uuid"},"example":"9d4b2a71-0c3e-4f58-a6b7-1e2d3c4b5a69"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingExtraReturnRequest"}}}},"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"Already returned, or a quantity outside 1 to how many were sold","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation, or no such extra on it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The extra after the return, and the credit note if one was issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingExtraReturnResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingExtraReturnResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/bookings/{bookingId}/confirm":{"post":{"tags":["Bookings"],"summary":"Confirm a pending reservation","description":"Moves a PENDING reservation to CONFIRMED and, where the property has it switched on, sends the guest the confirmation email. Confirming an already confirmed reservation leaves it unchanged.","operationId":"confirm","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation to confirm","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"}],"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"The reservation is neither PENDING nor CONFIRMED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The confirmed reservation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/bookings/{bookingId}/check-out":{"post":{"tags":["Check-in"],"summary":"Check a reservation out","description":"Marks the guests as departed and releases their rooms. Only a checked-in reservation with nothing left to pay can be checked out; an outstanding balance is settled at the front desk. Checking out a reservation that is already checked out leaves it unchanged.","operationId":"checkOut","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"}],"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"The reservation is not checked in, or has a balance left to pay","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The checked-out reservation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/bookings/{bookingId}/check-in":{"post":{"tags":["Check-in"],"summary":"Check a reservation in","description":"Marks the guests as arrived. Accepted only when GET /check-in/requirements reports ready, from the arrival day on, in your property's time zone. Checking in a reservation that is already checked in leaves it unchanged.","operationId":"checkIn","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"}],"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"The reservation cannot be checked in yet; the message says why","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The checked-in reservation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/bookings/{bookingId}/change-quote":{"post":{"tags":["Bookings"],"summary":"Check a change to a reservation","description":"Answers whether the reservation can move to the dates, the number of guests or the rooms you send, and what it would then cost, without changing anything. Send the body you would send to PATCH /api/v1/bookings/{bookingId}. The reservation's own rooms count as free, which GET /api/v1/availability cannot know. The price is worked out afresh from your rate plans, seasons and manual prices for the whole stay, as the change would price it.","operationId":"quoteChange","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingChangeRequest"}}},"required":true},"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"Nothing is free for the change, the rooms do not take this many guests, the request changes nothing, or the reservation cannot be changed: it is not PENDING or CONFIRMED, came from a channel, or has a coupon","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The change can be made, at this price","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingChangeQuoteResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingChangeQuoteResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/bookings/{bookingId}/cancel":{"post":{"tags":["Bookings"],"summary":"Cancel a reservation","description":"Cancels a PENDING or CONFIRMED reservation and releases the rooms it held. A stay already under way or over is settled at the front desk. Cancelling an already cancelled reservation leaves it unchanged.","operationId":"cancel","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation to cancel","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"}],"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"The reservation is neither PENDING, CONFIRMED nor CANCELLED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The cancelled reservation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/restrictions":{"patch":{"tags":["Restrictions"],"summary":"Change stay restrictions","description":"Applies stay restrictions to one room type on one rate plan, for every day of a range of at most 31 days. Only the fields you send are changed - the rest of each day stays as it was - and sending 0 as minStay or maxStay lifts that limit. Restrictions set here reach your connected channels the same way ones set in the dashboard do.","operationId":"update","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRestrictionUpdateRequest"}}},"required":true},"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"The request changes nothing, the range runs backwards or is longer than 31 days","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such room type or rate plan at your property, or the two are not sold together","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The restrictions in force after the change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRestrictionResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRestrictionResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/bookings/{bookingId}":{"get":{"tags":["Bookings"],"summary":"Get one reservation","description":"Returns a single reservation of your property.","operationId":"findById","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"}],"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The reservation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}}},"security":[{"apiKey":[]}]},"patch":{"tags":["Bookings"],"summary":"Change the dates, guests or rooms of a reservation","description":"Moves a PENDING or CONFIRMED reservation to other dates, another number of guests or other rooms. Send only what changes. Without rooms the reservation keeps the rooms it has, which then have to be free for the new dates; with rooms a free room or bed of each room type is picked for you. The whole stay is priced afresh, as POST /api/v1/bookings/{bookingId}/change-quote shows beforehand. The guests' details, the status and the payments stay as they are, and the property's staff are notified. A reservation from a channel is changed at the channel, and one with a coupon by the property.","operationId":"change","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingChangeRequest"}}},"required":true},"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"Nothing is free for the change, the rooms do not take this many guests, the request changes nothing, or the reservation cannot be changed: it is not PENDING or CONFIRMED, came from a channel, or has a coupon","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The reservation as changed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/bookings/{bookingId}/extras/{extraId}":{"delete":{"tags":["Extras"],"summary":"Remove an extra added by mistake","description":"Removes the extra as if it had never been sold, together with its payment if it had one. Only on the day it was sold and while no issued invoice bills it; after that, return it instead, which keeps both the sale and its refund on record.","operationId":"delete","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"},{"name":"extraId","in":"path","description":"Identifier of the extra on the reservation, from GET .../extras","required":true,"schema":{"type":"string","format":"uuid"},"example":"9d4b2a71-0c3e-4f58-a6b7-1e2d3c4b5a69"}],"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"It can no longer be removed, the message says why","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation, or no such extra on it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"204":{"description":"Removed"},"401":{"description":"The API key is missing, unknown or revoked"}},"security":[{"apiKey":[]}]},"patch":{"tags":["Extras"],"summary":"Change an extra on a reservation","description":"Changes what you send and leaves the rest. The quantity and price can change only while the extra has not been given back and no issued invoice bills it, and for an extra already paid only on the day it was sold; after that, return it instead.","operationId":"update_1","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"},{"name":"extraId","in":"path","description":"Identifier of the extra on the reservation, from GET .../extras","required":true,"schema":{"type":"string","format":"uuid"},"example":"9d4b2a71-0c3e-4f58-a6b7-1e2d3c4b5a69"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingExtraUpdateRequest"}}},"required":true},"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"The change is not allowed any more, the message says why","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation, or no such extra on it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The extra as changed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingExtraResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingExtraResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/availability":{"get":{"tags":["Availability & rates"],"summary":"Read availability and rates","description":"Returns, for every room type of your property and every rate plan it is sold on, how many rooms are still free and what a night costs on each day of the range, together with the stay restrictions that apply. Without dates the next 14 days are returned, starting today. The range may cover at most 31 days.","operationId":"find","parameters":[{"name":"from","in":"query","description":"First day of the range, today when omitted (ISO date)","required":false,"schema":{"type":"string","format":"date"},"example":"2026-09-01"},{"name":"to","in":"query","description":"Last day of the range, 13 days after the first when omitted (ISO date)","required":false,"schema":{"type":"string","format":"date"},"example":"2026-09-14"},{"name":"currency","in":"query","description":"Which of your property's currencies to read prices in (ISO 4217 code). Your property's own currency when omitted","required":false,"schema":{"type":"string"},"example":"EUR"}],"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"The range runs backwards or is longer than 31 days","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"Availability and rates for the requested range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAvailabilityResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAvailabilityResponse"}}}}},"security":[{"apiKey":[]}]},"patch":{"tags":["Availability & rates"],"summary":"Change availability and prices","description":"Sets the price of one room type on one rate plan, how much of that room type is on sale, or both, for every day of a range of at most 31 days. Availability is not a number this system stores - it is rooms minus reservations minus blocks - so a requested count is reached by blocking or unblocking rooms, and a day that is already selling fewer than the count because of reservations is left alone. Putting rooms back on sale only removes blocks that fall entirely inside the requested range. Stay restrictions are changed through PATCH /api/v1/restrictions instead.","operationId":"update_2","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAvailabilityUpdateRequest"}}},"required":true},"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"The request changes nothing, the range runs backwards or is longer than 31 days","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such room type or rate plan at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The room type as it stands after the change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAvailabilityResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAvailabilityResponse"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/room-types":{"get":{"tags":["Room types"],"summary":"List room types","description":"Returns every room type of your property, with the occupancy it takes, the price a night starts from and the amenities and pictures that describe it.","operationId":"findAll_3","responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The room types of your property","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicRoomTypeResponse"}}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicRoomTypeResponse"}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/rate-plans":{"get":{"tags":["Rate plans"],"summary":"List rate plans","description":"Returns every rate plan your property still sells on, with the room types each one may be sold for and the stay lengths it allows. Plans taken off sale are left out, so every identifier returned here can be booked on. Prices are not part of this answer - they move day by day and are read from GET /api/v1/availability.","operationId":"findAll_4","responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The rate plans of your property","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicRatePlanResponse"}}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicRatePlanResponse"}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/guest-fields":{"get":{"tags":["Check-in"],"summary":"List guest fields","description":"Returns the guest details your property asks for at check-in, in the order its own form shows them. A required field has to be given before POST /api/v1/bookings/{bookingId}/check-in accepts the reservation; send the values with PUT /api/v1/bookings/{bookingId}/guests.","operationId":"findAll_5","responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The guest fields of your property","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicGuestFieldResponse"}}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicGuestFieldResponse"}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/financial-accounts":{"get":{"tags":["Payments"],"summary":"List financial accounts","description":"Returns the accounts your property records payments on, as set up under Settings, Financial, Accounts. Send one's id as accountId to POST /api/v1/bookings/{bookingId}/payments.","operationId":"findAll_6","responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The property's financial accounts","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicFinancialAccountResponse"}}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicFinancialAccountResponse"}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/extra-items":{"get":{"tags":["Extras"],"summary":"List extras","description":"Returns every extra your property has set up, on sale or not, with its price in each currency. The id is what POST /api/v1/bookings/{bookingId}/extras takes.","operationId":"findAll_7","responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"The property's extras","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicExtraItemResponse"}}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicExtraItemResponse"}}}}}},"security":[{"apiKey":[]}]}},"/api/v1/bookings/{bookingId}/check-in/requirements":{"get":{"tags":["Check-in"],"summary":"Check whether a reservation can be checked in","description":"Tells whether POST /check-in would succeed now and, if not, why: the reservation is not CONFIRMED (a PENDING one is confirmed first, by POST /api/v1/bookings/{bookingId}/confirm), its arrival day has not come yet or its departure day has, a room is not assigned yet, or a guest detail your property requires is missing - listed per guest.","operationId":"requirements","parameters":[{"name":"bookingId","in":"path","description":"Identifier of the reservation","required":true,"schema":{"type":"string","format":"uuid"},"example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"}],"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such reservation at your property","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"200":{"description":"What stands in the way of checking in","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCheckInRequirementsResponse"}}}},"401":{"description":"The API key is missing, unknown or revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCheckInRequirementsResponse"}}}}},"security":[{"apiKey":[]}]}}},"components":{"schemas":{"ApiError":{"type":"object","properties":{"msg":{"type":"string"},"status":{"type":"integer","format":"int32"},"errors":{"type":"array","items":{"type":"string"}},"permission":{"type":"string"},"planLimit":{"type":"string"},"allowed":{"type":"integer","format":"int32"}}},"PublicBookingGuestRequest":{"type":"object","description":"A guest to put on the reservation. The first one is treated as the booker. GET /api/v1/guest-fields lists which of these fields the property asks for at check-in","properties":{"id":{"type":"string","format":"uuid","description":"Identifier of a guest already on the reservation, to update them. Left out, the guest is added - or matched to a returning guest with the same document, or the same email or phone and name","example":"5c2f9a10-7b3d-4e21-8f0a-6d5c4b3a2918"},"firstName":{"type":"string","description":"Given name","example":"Anna"},"lastName":{"type":"string","description":"Family name","example":"Kowalska"},"email":{"type":"string","description":"Email address, used for the confirmation email when the property sends one","example":"anna.kowalska@example.com"},"phone":{"type":"string","description":"Phone number","example":"+48600100200"},"dateOfBirth":{"type":"string","format":"date","description":"Date of birth","example":"1990-04-21"},"gender":{"type":"string","description":"Gender","enum":["MALE","FEMALE","OTHER"],"example":"FEMALE"},"documentType":{"type":"string","description":"Kind of identity document: ID_CARD, PASSPORT, DRIVING_LICENSE or OTHER, as GET /api/v1/guest-fields lists them. Another value already on the guest is accepted back unchanged","example":"ID_CARD"},"documentNumber":{"type":"string","description":"Number of the identity document","example":"ABC123456"},"documentIssueDate":{"type":"string","format":"date","description":"Day the identity document was issued","example":"2020-01-15"},"documentIssuer":{"type":"string","description":"Authority that issued the identity document","example":"Prezydent Miasta Krakowa"},"documentIssuingCountry":{"type":"string","description":"Country that issued the identity document, as a two-letter ISO 3166-1 code","example":"PL"},"country":{"type":"string","description":"Country of residence, as a two-letter ISO 3166-1 code","example":"PL"},"nationality":{"type":"string","description":"Nationality, as a two-letter ISO 3166-1 code","example":"PL"},"placeOfBirth":{"type":"string","description":"Place of birth","example":"Kraków"},"address":{"type":"string","description":"Street and number","example":"ul. Floriańska 1"},"city":{"type":"string","description":"City","example":"Kraków"},"postalCode":{"type":"string","description":"Postal code","example":"31-019"},"region":{"type":"string","description":"Region or state","example":"Małopolskie"},"cityTaxExemptionCategories":{"type":"array","description":"City tax exemptions the guest declares","items":{"type":"string","enum":["BUSINESS_TRAVELER","LOCAL_RESIDENT","DISABILITY_COMPANION"]}},"customFields":{"type":"object","additionalProperties":{"type":"string"},"description":"Answers to the property's own guest fields, by the key GET /api/v1/guest-fields lists them under","example":{"custom_2f6c1e0a-6b1d-4c8e-9a51-1b2c3d4e5f60":"AB-1234"}}},"required":["firstName","lastName"]},"PublicBookingGuestsRequest":{"type":"object","description":"Everyone staying on the reservation","properties":{"guests":{"type":"array","description":"The full list of guests, the booker first. A guest on the reservation who is not listed is taken off it, and a listed guest is saved exactly as sent: a field left out is cleared, so send back what GET returned along with what changed","items":{"$ref":"#/components/schemas/PublicBookingGuestRequest"}}},"required":["guests"]},"PublicBookingChild":{"type":"object","description":"A child staying on the reservation","properties":{"age":{"type":"integer","format":"int32","description":"Age on arrival, in years from 0 to 17. Children are priced by the property's age brackets and placed in rooms that take children. Left out or null, the child is priced as an adult","example":5}}},"PublicBookingGuestResponse":{"type":"object","description":"A guest staying on a reservation. A field the guest has not given is null","properties":{"id":{"type":"string","format":"uuid","description":"Identifier of the guest","example":"5c2f9a10-7b3d-4e21-8f0a-6d5c4b3a2918"},"firstName":{"type":"string","description":"Given name","example":"Anna"},"lastName":{"type":"string","description":"Family name","example":"Kowalska"},"email":{"type":"string","description":"Email address","example":"anna.kowalska@example.com"},"phone":{"type":"string","description":"Phone number","example":"+48600100200"},"dateOfBirth":{"type":"string","format":"date","description":"Date of birth","example":"1990-04-21"},"gender":{"type":"string","description":"Gender","enum":["MALE","FEMALE","OTHER"],"example":"FEMALE"},"documentType":{"type":"string","description":"Kind of identity document. Usually ID_CARD, PASSPORT, DRIVING_LICENSE or OTHER; a reservation from a channel may carry the channel's own","example":"ID_CARD"},"documentNumber":{"type":"string","description":"Number of the identity document","example":"ABC123456"},"documentIssueDate":{"type":"string","format":"date","description":"Day the identity document was issued","example":"2020-01-15"},"documentIssuer":{"type":"string","description":"Authority that issued the identity document","example":"Prezydent Miasta Krakowa"},"documentIssuingCountry":{"type":"string","description":"Country that issued the identity document, as a two-letter ISO 3166-1 code","example":"PL"},"country":{"type":"string","description":"Country of residence, as a two-letter ISO 3166-1 code","example":"PL"},"nationality":{"type":"string","description":"Nationality, as a two-letter ISO 3166-1 code","example":"PL"},"placeOfBirth":{"type":"string","description":"Place of birth","example":"Kraków"},"address":{"type":"string","description":"Street and number","example":"ul. Floriańska 1"},"city":{"type":"string","description":"City","example":"Kraków"},"postalCode":{"type":"string","description":"Postal code","example":"31-019"},"region":{"type":"string","description":"Region or state","example":"Małopolskie"},"cityTaxExemptionCategories":{"type":"array","description":"City tax exemptions the guest declared","example":["BUSINESS_TRAVELER"],"items":{"type":"string"}},"customFields":{"type":"object","additionalProperties":{"type":"string"},"description":"Answers to the property's own guest fields, by key"}}},"PublicBookingResponse":{"type":"object","description":"A reservation at the property the API key belongs to","properties":{"id":{"type":"string","format":"uuid","description":"Identifier of the reservation, used in every other booking endpoint","example":"8b0a9d2c-1f3e-4a56-9c7b-0d1e2f3a4b5c"},"reference":{"type":"string","description":"Human-readable reference shown to the guest","example":"ARB-000123"},"status":{"type":"string","description":"Current state of the reservation:\n- `AWAITING_PAYMENT`: made in the booking engine while the guest pays online. It holds its rooms and becomes `CONFIRMED` once paid or `CANCELLED` if the payment is not completed. Webhooks hear of it only once it is paid, as `booking.created`.\n- `PENDING`: holds its rooms until the property confirms it (`booking.confirmed`).\n- `CONFIRMED`: booked, the guests have not arrived yet.\n- `CHECKED_IN`: the guests are staying.\n- `CHECKED_OUT`: the stay is over.\n- `CANCELLED`: cancelled, the rooms are free again.\n- `NO_SHOW`: the guests did not arrive, the rooms are free again.\n- `ARCHIVED`: set aside by the property, usually as made by mistake; the rooms are free again. Left out of the reservation list, still returned by id and in webhooks.","enum":["AWAITING_PAYMENT","PENDING","CONFIRMED","CHECKED_IN","CHECKED_OUT","CANCELLED","NO_SHOW","ARCHIVED"],"example":"CONFIRMED"},"checkIn":{"type":"string","format":"date","description":"First night of the stay","example":"2026-09-14"},"checkOut":{"type":"string","format":"date","description":"Departure day - the guest does not stay this night","example":"2026-09-17"},"adults":{"type":"integer","format":"int32","description":"Number of adults staying","example":2},"children":{"type":"array","description":"Children staying, one entry each, with the age they were priced by","items":{"$ref":"#/components/schemas/PublicBookingChild"}},"totalPrice":{"type":"number","description":"Total price of the stay, in the property's currency","example":540.0},"paidAmount":{"type":"number","description":"How much of the total has been paid so far","example":200.0},"balanceDue":{"type":"number","description":"What is still owed for the stay","example":340.0},"currency":{"type":"string","description":"Currency of every amount on this reservation, as an ISO 4217 code","example":"EUR"},"source":{"type":"string","description":"Where the reservation came from - the booking engine, a channel, or staff","example":"Areca Booking"},"guests":{"type":"array","description":"Guests attached to the reservation, the booker first","items":{"$ref":"#/components/schemas/PublicBookingGuestResponse"}},"rooms":{"type":"array","description":"Rooms or beds the reservation occupies","items":{"$ref":"#/components/schemas/PublicBookingRoomResponse"}},"createdAt":{"type":"string","format":"date-time","description":"When the reservation was created","example":"2026-08-20T14:32:11Z"}}},"PublicBookingRoomResponse":{"type":"object","description":"One room or bed a reservation occupies, for the dates it covers","properties":{"roomTypeId":{"type":"string","format":"uuid","description":"Identifier of the room type booked","example":"1a2b3c4d-5e6f-4071-8293-a4b5c6d7e8f9"},"roomTypeName":{"type":"string","description":"Name of the room type booked","example":"Double room"},"roomName":{"type":"string","description":"Name of the assigned room, or null while the room is still unassigned","example":101},"bedName":{"type":"string","description":"Name of the assigned bed in a shared room, null for private rooms","example":"Bed A"},"ratePlanId":{"type":"string","format":"uuid","description":"Identifier of the rate plan this room was sold on, as returned by GET /api/v1/rate-plans","example":"7f9c1d3e-2b4a-4c56-8d7e-9f0a1b2c3d4e"},"ratePlanName":{"type":"string","description":"Name of the rate plan this room was sold on","example":"Standard"},"checkIn":{"type":"string","format":"date","description":"First night this room is occupied","example":"2026-09-14"},"checkOut":{"type":"string","format":"date","description":"Day this room is released","example":"2026-09-17"},"totalPrice":{"type":"number","description":"Price of this room for the dates above","example":540.0}}},"PublicBookingCreateRequest":{"type":"object","description":"A reservation to create at the property the API key belongs to","properties":{"checkIn":{"type":"string","format":"date","description":"First night of the stay","example":"2026-09-14"},"checkOut":{"type":"string","format":"date","description":"Departure day - the guest does not stay this night","example":"2026-09-17"},"adults":{"type":"integer","format":"int32","description":"Number of adults staying","example":2},"children":{"type":"array","description":"Children staying, one entry each. Left out or empty, no children","example":[{"age":5}],"items":{"$ref":"#/components/schemas/PublicBookingChild"}},"rooms":{"type":"array","description":"Rooms to book. A free room or bed of each room type is picked for you","items":{"$ref":"#/components/schemas/PublicBookingRoomRequest"}},"guests":{"type":"array","description":"Guests to put on the reservation, the booker first","items":{"$ref":"#/components/schemas/PublicBookingGuestRequest"}},"source":{"type":"string","description":"Name of the booking source to record, exactly as configured on your property (case-insensitive), not a code. An unknown name is rejected and the error lists the configured ones. Left out, the reservation is recorded with no source","example":"Booking.com"},"reference":{"type":"string","description":"Your own reference for this reservation. Must be unique at the property - sending one that already exists is rejected, which makes a retry safe","example":"EXT-99182"},"notes":{"type":"string","description":"Free-text note for the property's staff","example":"Late arrival, around 23:00"},"status":{"type":"string","description":"What the reservation starts as. PENDING is a temporary reservation that holds the rooms until it is confirmed, by POST /api/v1/bookings/{bookingId}/confirm or by the property's staff; the guest is sent the confirmation email only once it is confirmed. Left out, CONFIRMED","enum":["CONFIRMED","PENDING"],"example":"PENDING"}},"required":["adults","checkIn","checkOut","guests","rooms"]},"PublicBookingRoomRequest":{"type":"object","description":"One line of the booking: a room type sold on a rate plan, and how many of it","properties":{"roomTypeId":{"type":"string","format":"uuid","description":"Room type to book, as returned by GET /api/v1/room-types","example":"1a2b3c4d-5e6f-4071-8293-a4b5c6d7e8f9"},"ratePlanId":{"type":"string","format":"uuid","description":"Rate plan to sell it on, as returned by GET /api/v1/rate-plans","example":"7f9c1d3e-2b4a-4c56-8d7e-9f0a1b2c3d4e"},"quantity":{"type":"integer","format":"int32","description":"How many rooms - or beds, in a shared room type - to take, 1 when omitted","example":2}},"required":["ratePlanId","roomTypeId"]},"PublicPaymentCreateRequest":{"type":"object","description":"A payment taken for a reservation, to record on it","properties":{"amount":{"type":"number","description":"Amount paid, in the reservation's currency (the currency field of the reservation)","example":540.0},"accountId":{"type":"string","format":"uuid","description":"Financial account to record it on, as returned by GET /api/v1/financial-accounts","example":"5e1c7a2b-3d4f-4a6b-9c8d-7e6f5a4b3c2d"},"currency":{"type":"string","description":"Currency of the amount as an ISO 4217 code. Optional; when sent it must match the reservation's currency, which guards against recording an amount in the wrong currency","example":"EUR"},"description":{"type":"string","description":"Note shown with the payment in the dashboard, such as your payment id","example":"Paid online, transaction 4471-AX"}},"required":["accountId","amount"]},"PublicBookingExtraCreateRequest":{"type":"object","description":"An extra to add to a reservation. Only extraItemId is required; every other field is optional and filled in as its description says when left out","properties":{"extraItemId":{"type":"string","format":"uuid","description":"Required. The extra to add, from GET /api/v1/extra-items","example":"3c1e8f20-7a4b-4d9e-b2f1-6a0c5d7e8f91"},"quantity":{"type":"integer","format":"int32","description":"Optional. How many, at least 1. Left out, worked out from the extra's charge type and the reservation: 1 per item, the guests per person, the nights per day, guests times nights per person per day","example":4},"unitPrice":{"type":"number","description":"Optional. Price of one, in the reservation's currency. Left out, the extra's own price in that currency","example":12.5},"deliveryDate":{"type":"string","format":"date","description":"Optional. The day it is for. Left out, the arrival day, or today once the stay has begun","example":"2026-09-15"},"note":{"type":"string","description":"Optional. Note to keep with it, up to 1000 characters","example":"Gluten-free"},"guestId":{"type":"string","format":"uuid","description":"Optional. One of the reservation's guests it is sold to. Left out, the first guest","example":"5f6a7b8c-9d0e-4f12-a345-6b7c8d9e0f12"}},"required":["extraItemId"]},"PublicBookingExtraResponse":{"type":"object","description":"An extra sold on a reservation","properties":{"id":{"type":"string","format":"uuid","description":"Identifier of this extra on the reservation","example":"9d4b2a71-0c3e-4f58-a6b7-1e2d3c4b5a69"},"extraItemId":{"type":"string","format":"uuid","description":"The extra it was sold from (GET /api/v1/extra-items); null once the property deleted it","example":"3c1e8f20-7a4b-4d9e-b2f1-6a0c5d7e8f91"},"name":{"type":"string","description":"Name of the extra when it was sold","example":"Breakfast"},"quantity":{"type":"integer","format":"int32","description":"How many were sold","example":4},"unitPrice":{"type":"number","description":"Price of one, in the reservation's currency","example":15.0},"totalPrice":{"type":"number","description":"Price of all of them, in the reservation's currency","example":60.0},"currency":{"type":"string","description":"ISO 4217 currency code of the prices","example":"EUR"},"status":{"type":"string","description":"UNPAID while it is part of the balance due, PAID once settled (or free), RETURNED when given back unpaid, REFUNDED when given back and its money paid back","enum":["PAID","UNPAID","RETURNED","REFUNDED"],"example":"UNPAID"},"deliveryDate":{"type":"string","format":"date","description":"The day it is for","example":"2026-09-15"},"note":{"type":"string","description":"Note kept with it","example":"Gluten-free"},"guestId":{"type":"string","format":"uuid","description":"The guest it was sold to when one was chosen; null for the reservation's first guest","example":"5f6a7b8c-9d0e-4f12-a345-6b7c8d9e0f12"},"soldAt":{"type":"string","format":"date-time","description":"When it was sold","example":"2026-09-14T16:20:00Z"}}},"PublicBookingExtraReturnRequest":{"type":"object","description":"Which part of an extra is given back. Every field is optional: an empty body gives all of it back, without a credit note","properties":{"quantity":{"type":"integer","format":"int32","description":"Optional. How many to give back, from 1 to how many were sold. Left out, all of them","example":1},"accountId":{"type":"string","format":"uuid","description":"Optional. Financial account a paid extra's money is paid back from, from GET /api/v1/financial-accounts. Left out, the account it was paid into. Ignored for an unpaid extra","example":"2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091"},"creditNote":{"type":"boolean","description":"Optional. Whether to issue a credit note correcting the invoice that billed the extra, when one did. Left out, false: the invoice is left for the property to correct","example":false}}},"PublicBookingExtraReturnResponse":{"type":"object","description":"An extra given back","properties":{"extra":{"$ref":"#/components/schemas/PublicBookingExtraResponse","description":"The extra after the return: RETURNED or REFUNDED when all of it was given back. When only some was, this is the part the guest kept, and the part given back is listed as a line of its own"},"creditNoteNumber":{"type":"string","description":"Number of the credit note issued with the return, if one was","example":"CN/2026/0042"}}},"PublicBookingChangeRequest":{"type":"object","description":"What to change on a reservation. Send only what changes: a field left out keeps what the reservation has","properties":{"checkIn":{"type":"string","format":"date","description":"New first night of the stay","example":"2026-09-15"},"checkOut":{"type":"string","format":"date","description":"New departure day - the guest does not stay this night","example":"2026-09-19"},"adults":{"type":"integer","format":"int32","description":"New number of adults staying","example":3},"children":{"type":"array","description":"Every child staying after the change, one entry each, replacing the children the reservation has. An empty list leaves no children. Left out, the children stay as they are","example":[{"age":5}],"items":{"$ref":"#/components/schemas/PublicBookingChild"}},"rooms":{"type":"array","description":"The whole new set of rooms, replacing the ones the reservation has. A free room or bed of each room type is picked for you, the reservation's own rooms counting as free. Left out, the reservation keeps its rooms, which then have to be free for the new dates","items":{"$ref":"#/components/schemas/PublicBookingRoomRequest"}}}},"PublicBookingChangeQuoteResponse":{"type":"object","description":"What a reservation would cost after the change. Nothing has been changed yet","properties":{"currency":{"type":"string","description":"Currency of every amount here, as an ISO 4217 code","example":"EUR"},"totalPrice":{"type":"number","description":"Total price of the stay after the change","example":720.0},"rooms":{"type":"array","description":"Rooms or beds the reservation would occupy","items":{"$ref":"#/components/schemas/Room"}}}},"Room":{"type":"object","description":"One room or bed the changed reservation would occupy","properties":{"roomTypeId":{"type":"string","format":"uuid","description":"Identifier of the room type","example":"1a2b3c4d-5e6f-4071-8293-a4b5c6d7e8f9"},"ratePlanId":{"type":"string","format":"uuid","description":"Identifier of the rate plan it is sold on","example":"7f9c1d3e-2b4a-4c56-8d7e-9f0a1b2c3d4e"},"checkIn":{"type":"string","format":"date","description":"First night this room is occupied","example":"2026-09-15"},"checkOut":{"type":"string","format":"date","description":"Day this room is released","example":"2026-09-19"},"totalPrice":{"type":"number","description":"Price of this room for the dates above","example":720.0}}},"PublicRestrictionUpdateRequest":{"type":"object","description":"Stay restrictions to apply to a room type on a rate plan over a range of days. Only the fields you send are changed; the rest stay as they are","properties":{"roomTypeId":{"type":"string","format":"uuid","description":"Room type the restrictions apply to","example":"1a2b3c4d-5e6f-4071-8293-a4b5c6d7e8f9"},"ratePlanId":{"type":"string","format":"uuid","description":"Rate plan the restrictions apply to","example":"7f9c1d3e-2b4a-4c56-8d7e-9f0a1b2c3d4e"},"from":{"type":"string","format":"date","description":"First day to change, inclusive","example":"2026-09-01"},"to":{"type":"string","format":"date","description":"Last day to change, inclusive","example":"2026-09-07"},"minStay":{"type":"integer","format":"int32","description":"Shortest stay that may start on these nights. Send 0 to lift the limit","example":2},"maxStay":{"type":"integer","format":"int32","description":"Longest stay that may start on these nights. Send 0 to lift the limit","example":14},"closed":{"type":"boolean","description":"Take these nights off sale entirely","example":false},"closedOnArrival":{"type":"boolean","description":"Stop stays from starting on these nights","example":false},"closedOnDeparture":{"type":"boolean","description":"Stop stays from ending on these nights","example":false}},"required":["from","ratePlanId","roomTypeId","to"]},"PublicRestrictionDayResponse":{"type":"object","description":"The stay restrictions in force on one night after the change","properties":{"date":{"type":"string","format":"date","description":"The night these restrictions apply to","example":"2026-09-01"},"minStay":{"type":"integer","format":"int32","description":"Shortest stay that may start on this night, null when unrestricted","example":2},"maxStay":{"type":"integer","format":"int32","description":"Longest stay that may start on this night, null when unrestricted","example":14},"closed":{"type":"boolean","description":"The night is not for sale at all","example":false},"closedOnArrival":{"type":"boolean","description":"No stay may start on this night","example":false},"closedOnDeparture":{"type":"boolean","description":"No stay may end on this night","example":false}}},"PublicRestrictionResponse":{"type":"object","description":"The stay restrictions of a room type on a rate plan, after the change","properties":{"roomTypeId":{"type":"string","format":"uuid","description":"Room type the restrictions belong to","example":"1a2b3c4d-5e6f-4071-8293-a4b5c6d7e8f9"},"ratePlanId":{"type":"string","format":"uuid","description":"Rate plan the restrictions belong to","example":"7f9c1d3e-2b4a-4c56-8d7e-9f0a1b2c3d4e"},"from":{"type":"string","format":"date","description":"First day covered by the change","example":"2026-09-01"},"to":{"type":"string","format":"date","description":"Last day covered by the change","example":"2026-09-07"},"days":{"type":"array","description":"What is in force on each day of the range now","items":{"$ref":"#/components/schemas/PublicRestrictionDayResponse"}}}},"PublicBookingExtraUpdateRequest":{"type":"object","description":"What to change on an extra of a reservation. Every field is optional: send only what changes, and a field left out stays as it is","properties":{"quantity":{"type":"integer","format":"int32","description":"Optional. How many, at least 1","example":2},"unitPrice":{"type":"number","description":"Optional. Price of one, in the reservation's currency","example":12.5},"deliveryDate":{"type":"string","format":"date","description":"Optional. The day it is for","example":"2026-09-16"},"note":{"type":"string","description":"Optional. Note to keep with it, up to 1000 characters; an empty string removes it","example":"Gluten-free"},"guestId":{"type":"string","format":"uuid","description":"Optional. One of the reservation's guests it is sold to","example":"5f6a7b8c-9d0e-4f12-a345-6b7c8d9e0f12"}}},"PublicAvailabilityUpdateRequest":{"type":"object","description":"What to change about a room type over a range of days: its price on a rate plan, how much of it is on sale, or both","properties":{"roomTypeId":{"type":"string","format":"uuid","description":"Room type to change","example":"1a2b3c4d-5e6f-4071-8293-a4b5c6d7e8f9"},"from":{"type":"string","format":"date","description":"First day to change, inclusive","example":"2026-09-01"},"to":{"type":"string","format":"date","description":"Last day to change, inclusive","example":"2026-09-07"},"ratePlanId":{"type":"string","format":"uuid","description":"Rate plan the price applies to, as returned by GET /api/v1/rate-plans. Required together with price or clearPrice","example":"7f9c1d3e-2b4a-4c56-8d7e-9f0a1b2c3d4e"},"price":{"type":"number","description":"Price of a night on that rate plan, for every day of the range","example":149.0},"currency":{"type":"string","description":"Which of your property's currencies the price is in, as an ISO 4217 code. Your property's own currency when omitted","example":"EUR"},"clearPrice":{"type":"boolean","description":"Drops the manually set price instead, so the seasonal or base price applies again","example":false},"availableRooms":{"type":"integer","format":"int32","description":"How many rooms - or beds, in a shared room type - should be on sale on each day of the range. Rooms are blocked or unblocked to reach it; a day already selling fewer than this because of reservations is left as it is","example":3}},"required":["from","roomTypeId","to"]},"PublicAvailabilityDayResponse":{"type":"object","description":"How much of a room type is left for sale on one day","properties":{"date":{"type":"string","format":"date","description":"The day this entry describes","example":"2026-09-01"},"availableRooms":{"type":"integer","format":"int32","description":"Rooms of this type still free - beds instead, for a shared room type","example":3}}},"PublicAvailabilityRatePlanResponse":{"type":"object","description":"One rate plan a room type is sold on, priced per day","properties":{"id":{"type":"string","format":"uuid","description":"Identifier of the rate plan","example":"7f9c1d3e-2b4a-4c56-8d7e-9f0a1b2c3d4e"},"name":{"type":"string","description":"Name of the rate plan","example":"Standard"},"days":{"type":"array","description":"Price and stay restrictions, one entry per day of the range","items":{"$ref":"#/components/schemas/PublicRatePlanDayResponse"}}}},"PublicAvailabilityResponse":{"type":"object","description":"Free rooms, prices and stay restrictions of the property the API key belongs to","properties":{"from":{"type":"string","format":"date","description":"First day covered by the response","example":"2026-09-01"},"to":{"type":"string","format":"date","description":"Last day covered by the response","example":"2026-09-14"},"currency":{"type":"string","description":"Currency of every price below, as an ISO 4217 code","example":"EUR"},"roomTypes":{"type":"array","description":"Room types of your property, each with its own free rooms and rate plans","items":{"$ref":"#/components/schemas/PublicAvailabilityRoomTypeResponse"}}}},"PublicAvailabilityRoomTypeResponse":{"type":"object","description":"One room type, with how much of it is free and what it is sold for","properties":{"id":{"type":"string","format":"uuid","description":"Identifier of the room type","example":"1a2b3c4d-5e6f-4071-8293-a4b5c6d7e8f9"},"name":{"type":"string","description":"Name of the room type","example":"Double room"},"days":{"type":"array","description":"How many rooms or beds are still free, one entry per day of the range","items":{"$ref":"#/components/schemas/PublicAvailabilityDayResponse"}},"ratePlans":{"type":"array","description":"Rate plans this room type can be sold on","items":{"$ref":"#/components/schemas/PublicAvailabilityRatePlanResponse"}}}},"PublicRatePlanDayResponse":{"type":"object","description":"What one night costs on a rate plan, and the restrictions that apply to it","properties":{"date":{"type":"string","format":"date","description":"The night this price applies to","example":"2026-09-01"},"price":{"type":"number","description":"Price of the night in the property's currency","example":120.0},"minStay":{"type":"integer","format":"int32","description":"Shortest stay that may start on this night, null when unrestricted","example":2},"maxStay":{"type":"integer","format":"int32","description":"Longest stay that may start on this night, null when unrestricted","example":14},"closed":{"type":"boolean","description":"The night is not for sale at all","example":false},"closedOnArrival":{"type":"boolean","description":"No stay may start on this night","example":false},"closedOnDeparture":{"type":"boolean","description":"No stay may end on this night","example":false}}},"PublicRoomTypeFeatureResponse":{"type":"object","description":"One amenity of a room type","properties":{"name":{"type":"string","description":"Name of the amenity","example":"Air conditioning"},"value":{"type":"string","description":"Value of the amenity, when it carries one","example":"Yes"}}},"PublicRoomTypeImageResponse":{"type":"object","description":"One picture of a room type","properties":{"url":{"type":"string","description":"Public URL of the picture","example":"https://cdn.arecabooking.com/room-types/1a2b3c4d/1.jpg"},"sortOrder":{"type":"integer","format":"int32","description":"Where the picture sits in the gallery, lowest first","example":0}}},"PublicRoomTypeResponse":{"type":"object","description":"A room type of the property the API key belongs to","properties":{"id":{"type":"string","format":"uuid","description":"Identifier of the room type, used when booking and when changing availability","example":"1a2b3c4d-5e6f-4071-8293-a4b5c6d7e8f9"},"name":{"type":"string","description":"Name of the room type","example":"Double room"},"description":{"type":"string","description":"Description shown to guests","example":"A double bed, a desk and a city view"},"roomKind":{"type":"string","description":"Whether the room type is sold whole or bed by bed","enum":["PRIVATE","SHARED"],"example":"PRIVATE"},"baseOccupancy":{"type":"integer","format":"int32","description":"How many guests the price covers","example":2},"maxOccupancy":{"type":"integer","format":"int32","description":"How many guests may stay at most","example":3},"allowChildren":{"type":"boolean","description":"Whether children may stay in this room type","example":true},"basePrice":{"type":"number","description":"Price of a night before rate plans, seasons and manual prices apply","example":120.0},"bathroomType":{"type":"string","description":"Kind of bathroom the room type has","enum":["ENSUITE","SHARED_BATHROOM"],"example":"ENSUITE"},"features":{"type":"array","description":"Amenities of the room type","items":{"$ref":"#/components/schemas/PublicRoomTypeFeatureResponse"}},"images":{"type":"array","description":"Pictures of the room type, in gallery order","items":{"$ref":"#/components/schemas/PublicRoomTypeImageResponse"}}}},"PublicRatePlanResponse":{"type":"object","description":"A rate plan of the property the API key belongs to - one of the ways a room type can be sold","properties":{"id":{"type":"string","format":"uuid","description":"Identifier of the rate plan, used when booking and when changing prices or restrictions","example":"7f9c1d3e-2b4a-4c56-8d7e-9f0a1b2c3d4e"},"name":{"type":"string","description":"Name of the rate plan","example":"Standard"},"isDefault":{"type":"boolean","description":"Whether this is the plan the property sells on unless told otherwise","example":true},"includesBreakfast":{"type":"boolean","description":"Whether breakfast is part of the price","example":false},"roomTypeIds":{"type":"array","description":"Room types this plan may be sold on. Empty means every room type of the property","items":{"type":"string","format":"uuid"}},"minStay":{"type":"integer","format":"int32","description":"Shortest stay the plan may be sold for, null when unrestricted. Single days can restrict further - see GET /api/v1/availability","example":2},"maxStay":{"type":"integer","format":"int32","description":"Longest stay the plan may be sold for, null when unrestricted","example":14}}},"PublicGuestFieldResponse":{"type":"object","description":"A guest detail the property asks for at check-in","properties":{"key":{"type":"string","description":"Name of the field on a guest. A property's own field has a key starting with custom_ and is sent in customFields","example":"documentNumber"},"custom":{"type":"boolean","description":"Whether this is one of the property's own fields rather than a built-in one","example":false},"label":{"type":"string","description":"Name the property gave its own field; null for a built-in one","example":"Car plate"},"type":{"type":"string","description":"What kind of value the field holds","enum":["TEXT","EMAIL","PHONE","DATE","COUNTRY","SELECT","MULTI_SELECT","FILE"],"example":"TEXT"},"allowedValues":{"type":"array","description":"The values a SELECT or MULTI_SELECT field accepts; null otherwise","example":["ID_CARD","PASSPORT","DRIVING_LICENSE","OTHER"],"items":{"type":"string"}},"required":{"type":"boolean","description":"Whether check-in is refused until the field is given. A field that is not required is still worth asking for","example":true},"requiredScope":{"type":"string","description":"Who a required field is required of: only the booker - the first guest - or everyone on the reservation. Null when the field is not required","enum":["BOOKER_ONLY","ALL_GUESTS"],"example":"ALL_GUESTS"}}},"PublicFinancialAccountResponse":{"type":"object","description":"An account of the property that payments are recorded on: a cash desk, a card terminal, a bank account","properties":{"id":{"type":"string","format":"uuid","description":"Identifier of the account, sent as accountId when recording a payment","example":"5e1c7a2b-3d4f-4a6b-9c8d-7e6f5a4b3c2d"},"name":{"type":"string","description":"Name of the account, as shown in the dashboard","example":"Online payments"},"type":{"type":"string","description":"Where the money sits","enum":["CASHBOX","CREDIT_CARD","BANK_TRANSFER","OTHER"],"example":"CREDIT_CARD"},"currencies":{"type":"array","description":"Currencies the account holds, as ISO 4217 codes","example":["EUR"],"items":{"type":"string"}}}},"Price":{"type":"object","description":"Price of one unit in one currency","properties":{"currency":{"type":"string","description":"ISO 4217 currency code","example":"EUR"},"price":{"type":"number","description":"Price of one unit","example":15.0}}},"PublicExtraItemResponse":{"type":"object","description":"An extra the property sells, such as breakfast, parking or a late check-out","properties":{"id":{"type":"string","format":"uuid","description":"Identifier of the extra, used to add it to a reservation","example":"3c1e8f20-7a4b-4d9e-b2f1-6a0c5d7e8f91"},"name":{"type":"string","description":"Name of the extra","example":"Breakfast"},"description":{"type":"string","description":"Description of the extra","example":"Continental breakfast served 7:00-10:30"},"category":{"type":"string","description":"Name of the category the extra is filed under","example":"Food & drinks"},"chargeType":{"type":"string","description":"How the quantity is worked out when it is left out on a reservation: PER_ITEM is one, PER_PERSON the guests, PER_DAY the nights, PER_PERSON_PER_DAY guests times nights","enum":["PER_ITEM","PER_PERSON","PER_PERSON_PER_DAY","PER_DAY"],"example":"PER_PERSON_PER_DAY"},"active":{"type":"boolean","description":"Whether it is on sale. An extra that is not cannot be added to a reservation","example":true},"prices":{"type":"array","description":"Price of one unit in each currency the property has priced it in","items":{"$ref":"#/components/schemas/Price"}}}},"PublicPaymentResponse":{"type":"object","description":"A payment or refund recorded on a reservation","properties":{"id":{"type":"string","format":"uuid","description":"Identifier of the payment","example":"3d6f2b1a-9c4e-4b7d-8a1f-2e3c4d5b6a7f"},"type":{"type":"string","description":"PAYMENT for money received, REFUND for money given back to the guest","enum":["PAYMENT","REFUND"],"example":"PAYMENT"},"amount":{"type":"number","description":"Amount, always positive; a REFUND lowers what has been paid","example":540.0},"currency":{"type":"string","description":"Currency of the amount, as an ISO 4217 code","example":"EUR"},"accountId":{"type":"string","format":"uuid","description":"Financial account it was recorded on, as returned by GET /api/v1/financial-accounts","example":"5e1c7a2b-3d4f-4a6b-9c8d-7e6f5a4b3c2d"},"accountName":{"type":"string","description":"Name of that account","example":"Online payments"},"description":{"type":"string","description":"Note recorded with the payment","example":"Paid online, transaction 4471-AX"},"occurredAt":{"type":"string","format":"date-time","description":"When the payment was recorded","example":"2026-08-20T14:32:11Z"}}},"PublicCheckInRequirementsResponse":{"type":"object","description":"Whether the reservation can be checked in now, and what stands in the way","properties":{"ready":{"type":"boolean","description":"True when POST /api/v1/bookings/{bookingId}/check-in would succeed now","example":false},"blockers":{"type":"array","description":"Everything that stands in the way; empty when ready. NOT_CONFIRMED: the reservation is not CONFIRMED - a PENDING one is confirmed first, by POST /api/v1/bookings/{bookingId}/confirm","example":["GUEST_DETAILS_MISSING"],"items":{"type":"string","enum":["NOT_CONFIRMED","TOO_EARLY","STAY_ENDED","ROOM_NOT_ASSIGNED","GUEST_DETAILS_MISSING"]}},"missingFields":{"type":"array","description":"The required guest details still missing, per guest","items":{"$ref":"#/components/schemas/PublicMissingGuestField"}}}},"PublicMissingGuestField":{"type":"object","description":"A required guest detail one guest has not given yet","properties":{"guestId":{"type":"string","format":"uuid","description":"Identifier of the guest","example":"5c2f9a10-7b3d-4e21-8f0a-6d5c4b3a2918"},"field":{"type":"string","description":"Key of the field, as GET /api/v1/guest-fields lists it","example":"documentNumber"}}}},"securitySchemes":{"apiKey":{"type":"apiKey","description":"API Key","name":"x-api-key","in":"header"}}},"webhooks":{"booking.created":{"post":{"summary":"Booking created","description":"A reservation was made - in the dashboard, the booking engine, the API or through a channel. It may arrive as PENDING, which holds its rooms until the property confirms it.\n\nConfigured per property in the dashboard under Settings, Integrations, Webhooks, on the paid plan. ArecaBooking sends a `POST` with a JSON body to the endpoint's HTTPS address for every event it subscribed to. Click an endpoint in that list to open its details, where its signing secret (`whsec_...`) can be shown and copied.\n\n**Verifying a request.** Every request is signed following the [Standard Webhooks](https://www.standardwebhooks.com) specification, so its libraries verify it for you. To do it by hand: take the endpoint's signing secret (`whsec_...`), base64-decode the part after `whsec_`, compute HMAC-SHA256 over `{webhook-id}.{webhook-timestamp}.{raw body}` and compare its base64 form with the value after `v1,` in `webhook-signature`. Reject a timestamp more than a few minutes old.\n\n**Delivery.** Answer with any `2xx` within 10 seconds. Anything else is tried at most twice more, one and then two seconds apart, and then dropped. Messages are sent independently, so they can arrive out of order: deduplicate on `webhook-id`, and read `GET /api/v1/bookings/{id}` when you need the current state.\n","operationId":"booking.created","parameters":[{"name":"webhook-id","in":"header","description":"Unique id of the message, the same on every attempt. Equals `id` in the body.","required":true,"schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","description":"When this attempt was sent, in seconds since the Unix epoch.","required":true,"schema":{"type":"string"}},{"name":"webhook-signature","in":"header","description":"`v1,` followed by the base64 HMAC-SHA256 signature, see above.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique id of the message; the same as the webhook-id header"},"type":{"type":"string","description":"The event","enum":["booking.created"]},"createdAt":{"type":"string","format":"date-time","description":"When the event happened"},"propertyId":{"type":"string","format":"uuid","description":"The property the event belongs to"},"data":{"$ref":"#/components/schemas/PublicBookingResponse","description":"The reservation as it was when the event happened, in the shape GET /api/v1/bookings/{id} returns"}},"required":["id","type","createdAt","propertyId","data"]}}},"required":true},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, counts as a failed attempt."}}}},"booking.confirmed":{"post":{"summary":"Booking confirmed","description":"A reservation's status changed to CONFIRMED from another one: a PENDING reservation was confirmed (by the property's staff or through the API), or a cancellation, no-show or check-in was undone. A reservation created as CONFIRMED, or paid online in the booking engine, is announced as booking.created instead.\n\nConfigured per property in the dashboard under Settings, Integrations, Webhooks, on the paid plan. ArecaBooking sends a `POST` with a JSON body to the endpoint's HTTPS address for every event it subscribed to. Click an endpoint in that list to open its details, where its signing secret (`whsec_...`) can be shown and copied.\n\n**Verifying a request.** Every request is signed following the [Standard Webhooks](https://www.standardwebhooks.com) specification, so its libraries verify it for you. To do it by hand: take the endpoint's signing secret (`whsec_...`), base64-decode the part after `whsec_`, compute HMAC-SHA256 over `{webhook-id}.{webhook-timestamp}.{raw body}` and compare its base64 form with the value after `v1,` in `webhook-signature`. Reject a timestamp more than a few minutes old.\n\n**Delivery.** Answer with any `2xx` within 10 seconds. Anything else is tried at most twice more, one and then two seconds apart, and then dropped. Messages are sent independently, so they can arrive out of order: deduplicate on `webhook-id`, and read `GET /api/v1/bookings/{id}` when you need the current state.\n","operationId":"booking.confirmed","parameters":[{"name":"webhook-id","in":"header","description":"Unique id of the message, the same on every attempt. Equals `id` in the body.","required":true,"schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","description":"When this attempt was sent, in seconds since the Unix epoch.","required":true,"schema":{"type":"string"}},{"name":"webhook-signature","in":"header","description":"`v1,` followed by the base64 HMAC-SHA256 signature, see above.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique id of the message; the same as the webhook-id header"},"type":{"type":"string","description":"The event","enum":["booking.confirmed"]},"createdAt":{"type":"string","format":"date-time","description":"When the event happened"},"propertyId":{"type":"string","format":"uuid","description":"The property the event belongs to"},"data":{"$ref":"#/components/schemas/PublicBookingResponse","description":"The reservation as it was when the event happened, in the shape GET /api/v1/bookings/{id} returns"}},"required":["id","type","createdAt","propertyId","data"]}}},"required":true},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, counts as a failed attempt."}}}},"booking.updated":{"post":{"summary":"Booking updated","description":"Dates, rooms, guests or prices of a reservation changed, including a revision sent by a channel, or it was moved back to PENDING or archived (status ARCHIVED).\n\nConfigured per property in the dashboard under Settings, Integrations, Webhooks, on the paid plan. ArecaBooking sends a `POST` with a JSON body to the endpoint's HTTPS address for every event it subscribed to. Click an endpoint in that list to open its details, where its signing secret (`whsec_...`) can be shown and copied.\n\n**Verifying a request.** Every request is signed following the [Standard Webhooks](https://www.standardwebhooks.com) specification, so its libraries verify it for you. To do it by hand: take the endpoint's signing secret (`whsec_...`), base64-decode the part after `whsec_`, compute HMAC-SHA256 over `{webhook-id}.{webhook-timestamp}.{raw body}` and compare its base64 form with the value after `v1,` in `webhook-signature`. Reject a timestamp more than a few minutes old.\n\n**Delivery.** Answer with any `2xx` within 10 seconds. Anything else is tried at most twice more, one and then two seconds apart, and then dropped. Messages are sent independently, so they can arrive out of order: deduplicate on `webhook-id`, and read `GET /api/v1/bookings/{id}` when you need the current state.\n","operationId":"booking.updated","parameters":[{"name":"webhook-id","in":"header","description":"Unique id of the message, the same on every attempt. Equals `id` in the body.","required":true,"schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","description":"When this attempt was sent, in seconds since the Unix epoch.","required":true,"schema":{"type":"string"}},{"name":"webhook-signature","in":"header","description":"`v1,` followed by the base64 HMAC-SHA256 signature, see above.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique id of the message; the same as the webhook-id header"},"type":{"type":"string","description":"The event","enum":["booking.updated"]},"createdAt":{"type":"string","format":"date-time","description":"When the event happened"},"propertyId":{"type":"string","format":"uuid","description":"The property the event belongs to"},"data":{"$ref":"#/components/schemas/PublicBookingResponse","description":"The reservation as it was when the event happened, in the shape GET /api/v1/bookings/{id} returns"}},"required":["id","type","createdAt","propertyId","data"]}}},"required":true},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, counts as a failed attempt."}}}},"booking.cancelled":{"post":{"summary":"Booking cancelled","description":"A reservation was cancelled.\n\nConfigured per property in the dashboard under Settings, Integrations, Webhooks, on the paid plan. ArecaBooking sends a `POST` with a JSON body to the endpoint's HTTPS address for every event it subscribed to. Click an endpoint in that list to open its details, where its signing secret (`whsec_...`) can be shown and copied.\n\n**Verifying a request.** Every request is signed following the [Standard Webhooks](https://www.standardwebhooks.com) specification, so its libraries verify it for you. To do it by hand: take the endpoint's signing secret (`whsec_...`), base64-decode the part after `whsec_`, compute HMAC-SHA256 over `{webhook-id}.{webhook-timestamp}.{raw body}` and compare its base64 form with the value after `v1,` in `webhook-signature`. Reject a timestamp more than a few minutes old.\n\n**Delivery.** Answer with any `2xx` within 10 seconds. Anything else is tried at most twice more, one and then two seconds apart, and then dropped. Messages are sent independently, so they can arrive out of order: deduplicate on `webhook-id`, and read `GET /api/v1/bookings/{id}` when you need the current state.\n","operationId":"booking.cancelled","parameters":[{"name":"webhook-id","in":"header","description":"Unique id of the message, the same on every attempt. Equals `id` in the body.","required":true,"schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","description":"When this attempt was sent, in seconds since the Unix epoch.","required":true,"schema":{"type":"string"}},{"name":"webhook-signature","in":"header","description":"`v1,` followed by the base64 HMAC-SHA256 signature, see above.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique id of the message; the same as the webhook-id header"},"type":{"type":"string","description":"The event","enum":["booking.cancelled"]},"createdAt":{"type":"string","format":"date-time","description":"When the event happened"},"propertyId":{"type":"string","format":"uuid","description":"The property the event belongs to"},"data":{"$ref":"#/components/schemas/PublicBookingResponse","description":"The reservation as it was when the event happened, in the shape GET /api/v1/bookings/{id} returns"}},"required":["id","type","createdAt","propertyId","data"]}}},"required":true},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, counts as a failed attempt."}}}},"booking.checked_in":{"post":{"summary":"Guest checked in","description":"The guests of a reservation checked in.\n\nConfigured per property in the dashboard under Settings, Integrations, Webhooks, on the paid plan. ArecaBooking sends a `POST` with a JSON body to the endpoint's HTTPS address for every event it subscribed to. Click an endpoint in that list to open its details, where its signing secret (`whsec_...`) can be shown and copied.\n\n**Verifying a request.** Every request is signed following the [Standard Webhooks](https://www.standardwebhooks.com) specification, so its libraries verify it for you. To do it by hand: take the endpoint's signing secret (`whsec_...`), base64-decode the part after `whsec_`, compute HMAC-SHA256 over `{webhook-id}.{webhook-timestamp}.{raw body}` and compare its base64 form with the value after `v1,` in `webhook-signature`. Reject a timestamp more than a few minutes old.\n\n**Delivery.** Answer with any `2xx` within 10 seconds. Anything else is tried at most twice more, one and then two seconds apart, and then dropped. Messages are sent independently, so they can arrive out of order: deduplicate on `webhook-id`, and read `GET /api/v1/bookings/{id}` when you need the current state.\n","operationId":"booking.checked_in","parameters":[{"name":"webhook-id","in":"header","description":"Unique id of the message, the same on every attempt. Equals `id` in the body.","required":true,"schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","description":"When this attempt was sent, in seconds since the Unix epoch.","required":true,"schema":{"type":"string"}},{"name":"webhook-signature","in":"header","description":"`v1,` followed by the base64 HMAC-SHA256 signature, see above.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique id of the message; the same as the webhook-id header"},"type":{"type":"string","description":"The event","enum":["booking.checked_in"]},"createdAt":{"type":"string","format":"date-time","description":"When the event happened"},"propertyId":{"type":"string","format":"uuid","description":"The property the event belongs to"},"data":{"$ref":"#/components/schemas/PublicBookingResponse","description":"The reservation as it was when the event happened, in the shape GET /api/v1/bookings/{id} returns"}},"required":["id","type","createdAt","propertyId","data"]}}},"required":true},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, counts as a failed attempt."}}}},"booking.checked_out":{"post":{"summary":"Guest checked out","description":"The guests of a reservation checked out.\n\nConfigured per property in the dashboard under Settings, Integrations, Webhooks, on the paid plan. ArecaBooking sends a `POST` with a JSON body to the endpoint's HTTPS address for every event it subscribed to. Click an endpoint in that list to open its details, where its signing secret (`whsec_...`) can be shown and copied.\n\n**Verifying a request.** Every request is signed following the [Standard Webhooks](https://www.standardwebhooks.com) specification, so its libraries verify it for you. To do it by hand: take the endpoint's signing secret (`whsec_...`), base64-decode the part after `whsec_`, compute HMAC-SHA256 over `{webhook-id}.{webhook-timestamp}.{raw body}` and compare its base64 form with the value after `v1,` in `webhook-signature`. Reject a timestamp more than a few minutes old.\n\n**Delivery.** Answer with any `2xx` within 10 seconds. Anything else is tried at most twice more, one and then two seconds apart, and then dropped. Messages are sent independently, so they can arrive out of order: deduplicate on `webhook-id`, and read `GET /api/v1/bookings/{id}` when you need the current state.\n","operationId":"booking.checked_out","parameters":[{"name":"webhook-id","in":"header","description":"Unique id of the message, the same on every attempt. Equals `id` in the body.","required":true,"schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","description":"When this attempt was sent, in seconds since the Unix epoch.","required":true,"schema":{"type":"string"}},{"name":"webhook-signature","in":"header","description":"`v1,` followed by the base64 HMAC-SHA256 signature, see above.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique id of the message; the same as the webhook-id header"},"type":{"type":"string","description":"The event","enum":["booking.checked_out"]},"createdAt":{"type":"string","format":"date-time","description":"When the event happened"},"propertyId":{"type":"string","format":"uuid","description":"The property the event belongs to"},"data":{"$ref":"#/components/schemas/PublicBookingResponse","description":"The reservation as it was when the event happened, in the shape GET /api/v1/bookings/{id} returns"}},"required":["id","type","createdAt","propertyId","data"]}}},"required":true},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, counts as a failed attempt."}}}},"booking.no_show":{"post":{"summary":"Booking marked as no-show","description":"The guests of a reservation did not arrive.\n\nConfigured per property in the dashboard under Settings, Integrations, Webhooks, on the paid plan. ArecaBooking sends a `POST` with a JSON body to the endpoint's HTTPS address for every event it subscribed to. Click an endpoint in that list to open its details, where its signing secret (`whsec_...`) can be shown and copied.\n\n**Verifying a request.** Every request is signed following the [Standard Webhooks](https://www.standardwebhooks.com) specification, so its libraries verify it for you. To do it by hand: take the endpoint's signing secret (`whsec_...`), base64-decode the part after `whsec_`, compute HMAC-SHA256 over `{webhook-id}.{webhook-timestamp}.{raw body}` and compare its base64 form with the value after `v1,` in `webhook-signature`. Reject a timestamp more than a few minutes old.\n\n**Delivery.** Answer with any `2xx` within 10 seconds. Anything else is tried at most twice more, one and then two seconds apart, and then dropped. Messages are sent independently, so they can arrive out of order: deduplicate on `webhook-id`, and read `GET /api/v1/bookings/{id}` when you need the current state.\n","operationId":"booking.no_show","parameters":[{"name":"webhook-id","in":"header","description":"Unique id of the message, the same on every attempt. Equals `id` in the body.","required":true,"schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","description":"When this attempt was sent, in seconds since the Unix epoch.","required":true,"schema":{"type":"string"}},{"name":"webhook-signature","in":"header","description":"`v1,` followed by the base64 HMAC-SHA256 signature, see above.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique id of the message; the same as the webhook-id header"},"type":{"type":"string","description":"The event","enum":["booking.no_show"]},"createdAt":{"type":"string","format":"date-time","description":"When the event happened"},"propertyId":{"type":"string","format":"uuid","description":"The property the event belongs to"},"data":{"$ref":"#/components/schemas/PublicBookingResponse","description":"The reservation as it was when the event happened, in the shape GET /api/v1/bookings/{id} returns"}},"required":["id","type","createdAt","propertyId","data"]}}},"required":true},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, counts as a failed attempt."}}}},"webhook.test":{"post":{"summary":"Test message","description":"Sent when \"Send test\" is pressed in the dashboard, to check the receiver. It cannot be subscribed to.\n\nConfigured per property in the dashboard under Settings, Integrations, Webhooks, on the paid plan. ArecaBooking sends a `POST` with a JSON body to the endpoint's HTTPS address for every event it subscribed to. Click an endpoint in that list to open its details, where its signing secret (`whsec_...`) can be shown and copied.\n\n**Verifying a request.** Every request is signed following the [Standard Webhooks](https://www.standardwebhooks.com) specification, so its libraries verify it for you. To do it by hand: take the endpoint's signing secret (`whsec_...`), base64-decode the part after `whsec_`, compute HMAC-SHA256 over `{webhook-id}.{webhook-timestamp}.{raw body}` and compare its base64 form with the value after `v1,` in `webhook-signature`. Reject a timestamp more than a few minutes old.\n\n**Delivery.** Answer with any `2xx` within 10 seconds. Anything else is tried at most twice more, one and then two seconds apart, and then dropped. Messages are sent independently, so they can arrive out of order: deduplicate on `webhook-id`, and read `GET /api/v1/bookings/{id}` when you need the current state.\n","operationId":"webhook.test","parameters":[{"name":"webhook-id","in":"header","description":"Unique id of the message, the same on every attempt. Equals `id` in the body.","required":true,"schema":{"type":"string"}},{"name":"webhook-timestamp","in":"header","description":"When this attempt was sent, in seconds since the Unix epoch.","required":true,"schema":{"type":"string"}},{"name":"webhook-signature","in":"header","description":"`v1,` followed by the base64 HMAC-SHA256 signature, see above.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique id of the message; the same as the webhook-id header"},"type":{"type":"string","description":"The event","enum":["webhook.test"]},"createdAt":{"type":"string","format":"date-time","description":"When the event happened"},"propertyId":{"type":"string","format":"uuid","description":"The property the event belongs to"},"data":{"type":"object","properties":{"message":{"type":"string","description":"Always \"Webhook endpoint reached\""}},"required":["message"]}},"required":["id","type","createdAt","propertyId","data"]}}},"required":true},"responses":{"2XX":{"description":"Received. Any other answer, or none within 10 seconds, counts as a failed attempt."}}}}}}