Booking page URL parameters control how the Beds24 booking page opens: which property or room it shows, the preselected dates and guests, the language, currency and layout. Add them to the booking page link, form or iframe src.
Add parameters to the booking page URL
Add URL parameters in the format name=value. Put ? before the first parameter and & before each following parameter. The URL must contain at least one of propid, roomid or ownerid.
For example, to change the default of the number of nights selector to 7 nights, change the link to your booking page from
https://beds24.com/booking2.php?propid=2047
to
https://beds24.com/booking2.php?propid=2047&numnight=7
The path to the booking page is https://beds24.com/booking.php.
Examples
Show selected rooms only
Open the page with propid and add &hideroom=22543 to hide a room. To hide multiple rooms, separate them with commas:
https://beds24.com/booking2.php?propid=2048&hideroom=3589,3588
Open the booking page with dates filled in
https://beds24.com/booking2.php?propid=13437&checkin=2017-8-24&numnight=3
Replace these values with your data:
-
checkin=2017-8-24: the date the guest wants to arrive -
&numnight=3: the number of nights the guest wants to book
Open a booking form with dates and room filled in
https://beds24.com/booking2.php?checkin=2017-8-24&numnight=3&numadult=2&numchild=0&br1-32919=Book&roomid=32919
Replace these values with your data:
-
checkin=2017-8-24: the date the guest wants to arrive -
&numnight=3: the number of nights the guest wants to book -
&numadult=2: number of adults -
&numchild=0: number of children -
&br1-32919=Book: replace 32919 with the room id the guest wants to book -
&roomid=32919: replace 32919 with the room id the guest wants to book
Booking form for a preselected room and dates
Create a URL like this:
https://beds24.com/booking2.php?propid=13434&checkin_hide=2016-11-24&numnight=2&numadult=1&br1-32906=Book
You need to define:
propid- one of
checkinorcheckin_hide(different date formats) - one of
checkout,checkout_hideornumnight -
numadultand/ornumchild -
br1-32906=Book, wherebr1is offer 1,br2is offer 2 and so on, and 32906 is the room to book
Parameters
| Parameter | Value | Description |
|---|---|---|
advancedays |
number of days | This will set the initial date to this many days in advance of today. Only applies the first time the page is opened. If advancedays is not used the initial date will be the current date. The first date with availability can be specified by setting advancedays to the value -1. |
checkin |
check-in full date | The page will open at this check-in date |
cssfile |
encoded url | External css file for inclusion in booking page, the file must be available via a secure url (https) and the url must be url encoded. (for example with a URL encoder) |
cur |
AUD, CAD, EUR, GBP, NZD, USD, BGN, BRL, CHF, CNY, CZK, DKK, EEK, HKD, HRK, HUF, IDR, INR, JPY, KRW, MXN, MYR, NOK, PHP, PLN, RON, RUB, SEK, SGD, THB, TRY, VND, ZAR | Opens the page showing the currency converted. (responsive booking page only) |
fdate_date |
check-in date of month | The page will open at this check-in date, must be used with either fdate_monthyear or fdate_month and fdate_year. Must be in format DD |
fdate_monthyear |
check-in month and year | The page will open at this check-in date, must be used with fdate_date and be in the format MM-YYYY |
fdate_month |
check-in month | The page will open at this check-in date, must be used with fdate_date and fdate_year and be in the format MM |
fdate_year |
check-in year | The page will open at this check-in date, must be used with fdate_date and fdate_month and be in the format YYYY |
group |
keyword | Show only properties that have this group keyword |
hidefooter |
yes, no | Do not show the property information at the bottom of the page |
hideheader |
yes, no | Do not show the property information at the top of the page. Do not use this option when using a "Full Width Slider". |
hideoffer |
1,2,3,4 | Do not show this offer on the booking page, multiple ids can be specified with a comma separating them. |
hideprop |
property id | Do not show this property on the booking page, multiple ids can be specified with a comma separating them. |
hideroom |
room id | Do not show this room on the booking page, multiple ids can be specified with a comma separating them. |
invoicee |
integer | Charges and payments will be assigned to this invoicee ID. |
lang |
en (English), ar (Arabic), bg (Bulgarian), ca (Catalan), hr (Croatian), cs (Czech), da (Danish), de (German), el (Greek), es (Spanish), et (Estonian), fi (Finnish), fr (French), he (Hebrew), hu (Hungarian), hy (Armenian), id (Indonesian - Bahasa Indonesia), is (Icelandic), it (Italian), ja (Japanese), ko (Korean), lt (Lithuanian), lv (Latvian) mn (Mongolian), my (Burmese), nl (Dutch), no (Norwegian), pl (Polish), pt (Portuguese), ro (Romanian), ru (Russian), sk (Slovak), sl (Slovenian), sr (Serbian), sv (Swedish), th (Thai), tr (Turkish), vi (Vietnamese), zh (Chinese simplified), zt (Chinese traditional) | Sets the default language to open the booking page. (2013 new style booking pages only) |
layout |
1, 2, 3, 4, 5, 6 | Opens the responsive version of the booking page in this layout. |
maxprop |
number of properties | Show a maximum of this many properties based on the sort order. Additional properties are hidden. |
maxroom |
number of rooms | Only show a maximum of this many rooms based on the sort order. Additional rooms are hidden. |
mobile |
1 = mobile view0 = desktop view |
Display the booking page in mobile view (mobile=1) or desktop view (mobile=0) |
multiroom |
0, 1 | Opens the page with multi-room booking selected or unselected. (2013 new style booking page only) |
numnight |
number of nights | Initial value for the number of nights selector |
numadult |
number of adults | Initial value for the number of adults selector |
numchild |
number of children | Initial value for the number of children selector |
numdisplayed |
number of nights with prices displayed | Only applies to price table pages, use this to reduce the number of nights for narrow designs |
nogroup |
keyword | Exclude properties that have this group keyword |
ownerid |
id number of owner. | The page will open showing all properties and rooms for this owner |
propid |
id number of property. | The page will open showing this property. |
redirect |
encoded url | Redirect to this url, must start with http:// or https:// and be url encoded with a tool like URL encoder. The booking details are stored in session variables and will be available to a booking page in an Iframe at your redirect URL as long as the Iframe is not overriding them in its src url. |
referer |
text | This text will be recorded with any bookings originating from this widget allowing tracking of booking sources |
roomid |
id number of room. | The page will open showing this room. |
toproom |
room always shown on the top of the bookingpage | You can add multiple room IDs separated by a comma (responsive booking page only) |
voucher |
voucher code | Pre populates the discount voucher code |
width |
page width in px | Useful for embedding the booking page in an Iframe of fixed size |
hidename |
yes, no | Do not show the property name heading (old booking page only) |
hidedesc |
yes, no | Do not show the description (old booking page only) |
Note: hidename and hidedesc work on the old booking page only.