Beds24 Integration Help

Overview

This integration imports reservations from the property management service Beds24 into UnlockOS and issues a key (unlock code and QR) and a check-in URL for each one. Bookings from Booking.com, Airbnb, Expedia and other channels come through as long as they are in Beds24.

This page walks through the Beds24 side, the UnlockOS settings, checking that it works, and what to know when running it. Work in this order: Beds24 → UnlockOS → check it works.

What it does

Sync mode What happens
1Way (Import only) Beds24 reservations are imported into UnlockOS. Keys and check-in URLs are used inside UnlockOS only
2Way (Import + PIN push) In addition, the issued key and check-in URL are written back to the Beds24 reservation, so you can send them to guests from Beds24 (for example with its messaging)

We recommend starting with 1Way to confirm the import, then switching to 2Way.

What you need

  • A Beds24 account (a trial account can connect)
  • Rooms registered in UnlockOS, and a key for each room (a smart lock such as KEYVOX)
  • Access to App Integration in the UnlockOS admin

The screenshots on this page show the Japanese UI. The English screen has the same layout.


Start here: how it works

From booking to the guest walking in

This is the flow with 2Way. The first row is what happens automatically once setup is done; the second row is what the guest does.

Happens automatically
Booked on Airbnb, Booking.com, etc.The booking lands in Beds24UnlockOS imports itA key and check-in URL are issuedWritten back to the Beds24 booking
What the guest does
Receives a message from Beds24Opens the check-in URLFills in the guest register, etc.Sees the key and walks in
  • Beds24 takes the bookings and sends the messages to guests. UnlockOS works behind the scenes and prepares the key and the check-in URL.
  • KEYVOX does not send a booking confirmation email. This integration creates no booking in KEYVOX; it only issues a key. Send guest messages from Beds24 ("9. Send guests their instructions").

Setup order

In Beds24
1. Account2. Check property and rooms3. Invite code4. Refresh token
In UnlockOS
5. Connect and test6. Map rooms and enable7. Test with a booking
Finishing
8. Webhook (recommended)9. Put the URL in Beds24 messages

When guests can check in

Check-in opens 24 hours before the arrival day's check-in time (default). Before that, the reservation is not found, whether the guest opens the check-in URL or searches by name.

Until 24 hours before arrivalNot open yetReservation not found
24 hours before → check-outCheck-in openFound in search / key shown
After check-outClosedCannot check in
  • Make test bookings with an arrival date of today or tomorrow. A booking months ahead does not show up in search, so it looks as if the connection is broken.
  • You can change when check-in opens with "When check-in opens" in the check-in settings (Check-in settings).

Words used on this page

Word Meaning
PMS Property management system. Here, Beds24
OTA Booking sites such as Airbnb, Booking.com and Expedia
Sync Copying Beds24 bookings into UnlockOS. Runs automatically on a schedule
1Way / 2Way 1Way only imports. 2Way also writes the key and check-in URL back to Beds24
PIN (unlock code) The number entered on the door keypad
Check-in URL The page the guest opens on their phone to check in. Different for each booking
Refresh token The key UnlockOS uses to read your Beds24 bookings. Treat it like a password

1. Create a Beds24 account

If you already use Beds24, skip to "2. Check the property and rooms".

  1. Open https://beds24.com/join.html and fill in the form (Create your account).
  2. Tick "I am a commercial or business user", review the terms, and press Join now.
  3. Your password is sent to the email address you registered. The first login also asks for a login code sent by email.

The Beds24 sign-up form

Field What to enter Note
Business name Your property or business name You can change it later
Property type The kind of property (Hotel, etc.)
Number of properties How many properties you have
Location Your country Sets the property's time zone
First name / Last name The contact person's name
Email address A business address you can receive mail at The password and login code are sent here
Phone A contact number
Create a username Any login ID
Language English The Beds24 admin is in English or German
Referrer code Leave blank

After the first login you are asked to complete your business details (Please complete your business details). Enter your address and save. The language settings and the getting-started screen can be closed as they are.


2. Check the property and rooms

The UnlockOS settings use the Beds24 property ID.

  1. Open Settings (the gear, top left) → Properties.
  2. If you have no property yet, create one with Add New Property. Creating a property also creates one room (Room 1).
  3. Note the number in Property Id on the Description tab. That is the property ID.

Editing a property. The Property Id value is the property ID

  1. Check the room list on the Rooms tab. You will link these rooms to UnlockOS rooms later.

The room list (Properties → Rooms)

One connection covers one property. If you have several properties in Beds24, create one UnlockOS connection per property.


3. Generate an invite code

To connect an outside service to the Beds24 API (API V2), you first generate an invite code.

  1. Open Settings (the gear, top left) → Marketplace → API (or open https://beds24.com/control3.php?pagetype=apiv2 directly).
  2. Press Generate invite code.

The API screen. Invite codes, refresh tokens and long-life tokens are listed from the top

  1. On the scope screen, tick these five boxes.
scope READ WRITE Used by UnlockOS for
bookings ✓ ✓ Reading reservations. In 2Way, writing the key and check-in URL into the reservation
bookings-personal ✓ Guest name, email and phone
bookings-financial ✓ Reservation amounts
properties ✓ The property and room list (used for room mapping)
  1. Leave "Select which properties this token can access" as All owned by account, leave the IP whitelist blank, give it a clear name (for example UnlockOS), and press Generate invite code at the bottom right.

Generating an invite code. Tick the five boxes

Scopes cannot be changed afterwards. Even if you only plan to use 1Way, tick WRITE for bookings from the start. Then switching to 2Way later does not mean starting again from a new invite code.

An invite code expires after 24 hours. Finish "4. Exchange it for a refresh token" on the same day.


4. Exchange it for a refresh token

What you register in UnlockOS is not the invite code but a refresh token. Exchange the invite code on the Beds24 API page (Swagger UI).

  1. Open https://beds24.com/api/v2/.
  2. Under Authentication, open GET /authentication/setup and press Try it out.
  3. Paste the invite code into the code field. deviceName can stay blank.
  4. Press Execute and check that the Server response code is 200.
  5. The Response body lists three items: token, expiresIn and refreshToken. Copy the value of the third one, refreshToken, without the surrounding quotes (").

The exchange screen in Swagger UI (before input)

Do not mix them up. The first item, token, is a temporary key that expires after 24 hours. If you enter it in UnlockOS, the connection breaks the next day. Always copy refreshToken.

  • After the exchange, one row is added under Refresh Tokens on the API screen.
  • A refresh token expires if it is not used for 30 days. As long as UnlockOS keeps syncing, it does not expire.
  • The invite code and refresh token are real access to your Beds24 account. Do not paste them into chats or shared documents; paste them straight into the UnlockOS field, then close the tab that still shows the token.

5. Connect in UnlockOS

  1. In the left menu, open App Integration → the Integrations tab, and open the Beds24 card (or "Connect" if it is not connected yet).
  2. Enter the following.
Field What to enter
Property ID The Property Id you noted in "2. Check the property and rooms"
Sync Mode 1Way (Import only) to begin with
Refresh token The value you copied in "4. Exchange it for a refresh token"
Check-in ownership Check in on UnlockOS (recommended) (already selected for new connections)
  1. Press Save, then Test Connection. "Connection successful" means authentication works.

The UnlockOS integration settings

  • After saving, the refresh token field shows "(saved)". Saving again with the field empty does not erase the saved value.
  • The three check-in ownership options differ in what is written back to Beds24 and where the guest checks in:
Option Written back to Beds24 Where the guest checks in
Check in on the provider Unlock code and QR only The provider side (no UnlockOS check-in charge)
Check in on UnlockOS (recommended) Check-in URL + unlock code and QR UnlockOS (completed check-ins are billable)
Check in on UnlockOS (URL only) Check-in URL only UnlockOS. Stops guests who already have the code from skipping check-in

6. Map rooms and enable the connection

Right after the connection test, nothing is imported yet. Map the rooms first, then enable.

  1. Under Room Mappings near the bottom, press Fetch Rooms from Provider. The Beds24 rooms are listed.
  2. In each row, choose the matching room under UnlockOS Room.
  3. Press Save Mappings.

Room mappings (top) and the sync log (bottom)

  1. Back at the top, turn on Enabled (Enable automatic synchronization) and press Save. The status changes to active and scheduled syncing starts.

The enable toggle and sync status

Room mapping is required for keys. Reservations for unmapped rooms are still imported, but no key is issued for them.


7. Check that it works

Reservations are imported

  1. In Beds24, press the calendar icon at the top and press an empty day (or Add Booking at the top right).
  2. Enter the room, dates, price and guest name. Set the arrival date to today or tomorrow (to try it as a guest afterwards, check-in has to be open).
  3. Press Continue at the very bottom of the form to confirm the booking. A booking number is assigned.

The bottom of the booking form. Confirm with Continue at the bottom right

Save at the top of the form does not create the booking. Always press Continue at the bottom.

  1. In the UnlockOS integration settings, press Sync Now. A reservation_pull entry appears in the Sync Log; "Created: 1" means the reservation was imported. Imported reservations also appear on the UnlockOS reservation calendar.

The Beds24 calendar with a test booking in the mapped room

Keys are written back (2Way)

  1. In the UnlockOS integration settings, change Sync Mode to 2Way (Import + PIN push) and save.
  2. Create a new booking in Beds24, or edit and save an existing one, then press Sync Now in UnlockOS.
  3. Open the booking in Beds24 and look at the Info tab. It works if these three items written by UnlockOS are listed.
Item Content
CHECKINURL The URL where the guest checks in on UnlockOS (includes the reservation ID and check-in / check-out dates)
QR The value of the unlock QR code
PIN The unlock code

The booking's Info tab with CHECKINURL, QR and PIN written back

If check-in ownership is "Check in on UnlockOS (URL only)", only CHECKINURL is written back. If it is "Check in on the provider", only QR and PIN are written back.

When you change a booking's dates in Beds24, the next sync moves the key's validity to the new dates. The PIN and QR stay the same, so the values written back do not change. For a guest who is already staying, auto checkout moves later with the extension (a sync never shortens it).

You can check in as a guest

  1. Copy the value of CHECKINURL from the booking's Info tab in Beds24 and open it in a phone browser.
  2. Follow the screens. It works if a key (unlock code or QR) is shown at the end.
  • You can also open the facility's check-in URL and search by name. Use the spelling registered in Beds24 (Japanese or Latin letters).
  • If you see "reservation not found", check the arrival date first. Check-in opens 24 hours before arrival, so bookings further ahead are not found (see "When guests can check in" under "Start here").

With a webhook, bookings created, changed or cancelled in Beds24 reach UnlockOS right away instead of waiting for the next scheduled sync.

  1. In the Webhook section of the UnlockOS integration settings, press Issue URL and copy the URL.
  2. In Beds24, open Settings (gear) → Properties → Access, paste the URL into Booking Webhook, and save.
  3. Change one booking in Beds24 and check that Last received under Webhook in UnlockOS updates.
  • Without a webhook, reservations are still imported by the scheduled sync; changes just arrive one sync interval later.
  • Reissuing the URL stops the old one immediately. After reissuing, replace the URL registered in Beds24 as well.
  • The webhook URL contains its own secret. Do not share it.

9. Send guests their instructions (Beds24 messages)

Guest instructions are sent from Beds24's automatic messages (email templates). Neither UnlockOS nor KEYVOX sends a booking confirmation email.

With 2Way, write the following in a template and the written-back values are inserted into the email.

What to insert Write in the template
Check-in URL [BOOKINGINFOCODETEXT:CHECKINURL]
Unlock code (PIN) [BOOKINGINFOCODETEXT:PIN]
QR code [BOOKINGINFOCODETEXT:QR]

Example:

You can check in on this page from 24 hours before your arrival. [BOOKINGINFOCODETEXT:CHECKINURL]

  • An email sent right after booking does not have the values yet, because the key is issued after the booking is imported. Insert them into an email sent at least 1 hour after booking (for example, one sent the day before arrival).
  • When guests see the unlock code is up to the facility, through the Beds24 settings (which message it goes into).

Running it day to day

When syncing happens

  • The scheduled sync runs about every 15 minutes. With a webhook, changes arrive almost immediately.
  • When you are in a hurry, press Sync Now in the integration settings.
  • UnlockOS imports only the reservations changed since the previous sync. So reservations imported in 1Way do not get keys written back just because you switched to 2Way. To write back to an existing reservation, open it in Beds24, change any one field (such as Reference), save, and wait for the next sync.

Check-in and check-out times follow Beds24

The times of an imported reservation are decided by Beds24.

Time How it is set
Check-in (start) The reservation's Arrival Time in Beds24. If it is blank, the Check-in Time under Front Desk → Default Time Settings in UnlockOS
Check-out (end) Always the Check-out Time under Front Desk → Default Time Settings in UnlockOS (Beds24 has no check-out time field)
  • For an early check-in, enter a time in the reservation's Arrival Time in Beds24.
  • You can change the times in UnlockOS's reservation editor, but every time the reservation is edited in Beds24, the Beds24 content overwrites them (editing any field, not only Arrival Time). A late check-out works the same way: once the reservation is edited in Beds24, it goes back to the default check-out time.
  • For a reservation whose times must stay, avoid editing it in Beds24 afterwards, or correct it in UnlockOS right after the Beds24 edit.

When a reservation is changed in Beds24 after check-in

Even if you extend a stay, change the number of guests or move rooms in Beds24 after check-in, the UnlockOS reservation stays checked in. Date and room changes are applied, and the key follows them. Check-out works as usual.

When a reservation is cancelled in Beds24

  • The UnlockOS reservation is cancelled and its key is revoked.
  • If the guest is still staying (checked in), the cancellation is held until the stay ends (so the room is not shown as free and double-booked).
  • A completed stay stays "completed" even if it is cancelled in Beds24 afterwards.

Watch out for double bookings

Beds24 does not know about reservations created directly in UnlockOS's reservation management. So the same room on the same dates can still be sold on Beds24 (or a channel connected to Beds24).

  • An overlapping Beds24 reservation is not imported into UnlockOS. It does not appear in the check-in URL search and no key is issued.
  • For now, the only place this shows is the Sync Log in the integration settings.
  • For rooms connected to Beds24, we recommend taking bookings only through Beds24. If you add a reservation directly in UnlockOS, close those dates for sale in Beds24 as well.

Bookings with several rooms (group bookings)

When a guest books several rooms at once, Beds24 creates a separate booking for each room and links them as a group. UnlockOS imports them one per room as well, so keys and check-in are per room.

  • Checking in the first room does not affect the second. Each room's guest checks in their own room.
  • For bookings from OTAs such as Booking.com, every room carries the same OTA booking number. Booking numbers in UnlockOS must not repeat within a facility, so every booking in the group except the master booking (the one Beds24 links the other rooms to) becomes <OTA booking number>-R<Beds24 booking number> (for example BDC12345-R67890). The master booking keeps the OTA booking number.
  • When a guest enters the OTA booking number on the check-in URL, every room in the group appears, and the guest picks their own room to check in.
  • If you send the check-in URL with Beds24 messages, check that it reaches the booking of every room. If group bookings are set to message only the master booking, the guests of the other rooms do not receive it (the master booking's guest can still open every room with the OTA booking number).

Guest names and searching from the check-in URL

  • UnlockOS shows the guest name of a Beds24 reservation as "last name first name" (for example Johnson Emily).
  • When a guest searches for their reservation by name from the check-in URL, differences in name order, spaces and full-width spaces are tolerated (for example, a reservation for "Johnson Emily" is found with "Emily Johnson").
  • Part of a name also works, but a single character does not. Several missed searches in a short time block searching for a while.

FAQ

Q: The connection test says "Connection failed"

A: Check the following.

  • The refresh token field contains the refreshToken value (not token, and no leftover quotes)
  • The property ID matches the Property Id in Beds24
  • The invite code's scopes include READ for bookings and properties

To re-enter it, generate a new invite code on the Beds24 API screen and do the exchange again.

Q: The connection broke the next day

A: You may have entered the token value, which expires after 24 hours, instead of the refresh token. Enter the refreshToken again following "4. Exchange it for a refresh token".

Q: I created a booking in Beds24 but it is not imported

A: Check the following.

  • You pressed Continue at the very bottom of the Beds24 booking form (Save at the top does not create the booking). If the booking shows on the Beds24 calendar, it exists
  • The connection is Enabled
  • There is no UnlockOS reservation for the same room and dates (overlapping bookings are not imported; check the sync log)

Q: The guest enters their name on the check-in URL but the reservation is not found

A: Check these in order.

  1. Arrival date: check-in opens 24 hours before arrival. Bookings further ahead are not found until then. For a test, make a booking arriving today or tomorrow
  2. Import: the booking shows on the UnlockOS reservation calendar. If not, see "I created a booking in Beds24 but it is not imported"
  3. Name spelling: the name is entered as registered in Beds24 (Japanese or Latin letters), with at least 2 characters

Opening the booking's own check-in URL (CHECKINURL on the Beds24 Info tab) goes straight to that booking without entering a name.

Q: KEYVOX does not send a booking confirmation email

A: This is by design. The Beds24 integration creates no booking in KEYVOX; it only issues a key (unlock code), so KEYVOX sends no booking confirmation. Send guest instructions from Beds24's automatic messages ("9. Send guests their instructions").

Q: The reservation was imported but no key was issued

A: Check that its room is linked to an UnlockOS room in Room Mappings. Reservations for unmapped rooms get no key.

Q: I switched to 2Way but nothing is written back to Beds24

A: Reservations imported before the switch are not written back automatically. Edit and save the reservation in Beds24 and it is written back on the next sync. New reservations are written back as soon as they are imported.

Q: I cannot find the save button when editing a booking in Beds24

A: On the edit screen of an existing booking, Save and Save and leave open are at the top right. If the browser window is narrow they can be off screen, so widen the window or scroll sideways. After saving, check the change on the calendar or the Detail tab.

Q: A check-in time I changed in UnlockOS went back

A: Times of imported reservations follow Beds24. When the reservation is edited in Beds24, its content overwrites the times. See "Check-in and check-out times follow Beds24" under "Running it day to day".


Open the MarkdownPaste it into an AI assistant.

Ask about this article

AI answers from this article's content.